SPH
Stress.h
Go to the documentation of this file.
1 #pragma once
2 
7 
9 #include "sph/kernel/Kernel.h"
10 
12 
21 class StressAV : public IEquationTerm {
22 private:
23  LutKernel<3> kernel;
24 
25  template <typename TDiscr>
26  class Derivative;
27 
28 public:
29  StressAV(const RunSettings& settings);
30 
31  virtual void setDerivatives(DerivativeHolder& derivatives, const RunSettings& settings) override;
32 
33  virtual void initialize(IScheduler& scheduler, Storage& storage, const Float t) override;
34 
35  virtual void finalize(IScheduler& scheduler, Storage& storage, const Float t) override;
36 
37  virtual void create(Storage& storage, IMaterial& material) const override;
38 };
39 
NAMESPACE_SPH_BEGIN
Definition: BarnesHut.cpp:13
Right-hand side term of SPH equations.
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
Definition: Globals.h:13
SPH kernels.
#define NAMESPACE_SPH_END
Definition: Object.h:12
Container holding derivatives and the storage they accumulate to.
Definition: Derivative.h:173
Represents a term or terms appearing in evolutionary equations.
Definition: EquationTerm.h:22
Material settings and functions specific for one material.
Definition: IMaterial.h:110
Interface that allows unified implementation of sequential and parallelized versions of algorithms.
Definition: Scheduler.h:27
Container storing all quantities used within the simulations.
Definition: Storage.h:230
Artificial stress for simulations including stress tensor.
Definition: Stress.h:21
virtual void create(Storage &storage, IMaterial &material) const override
Creates all quantities needed by the term using given material.
Definition: Stress.cpp:120
virtual void initialize(IScheduler &scheduler, Storage &storage, const Float t) override
Initialize all the derivatives and/or quantity values before derivatives are computed.
Definition: Stress.cpp:96
virtual void finalize(IScheduler &scheduler, Storage &storage, const Float t) override
Computes all the derivatives and/or quantity values based on accumulated derivatives.
Definition: Stress.cpp:118
StressAV(const RunSettings &settings)
Definition: Stress.cpp:60
virtual void setDerivatives(DerivativeHolder &derivatives, const RunSettings &settings) override
Sets derivatives required by this term.
Definition: Stress.cpp:64