25 #ifndef TimeSmoothedCG_H
26 #define TimeSmoothedCG_H
89 void write(std::ostream& os)
const override;
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:60
Definition: BaseParticle.h:54
Contains the computed field values, like density, momentum and stress.
Definition: StandardFields.h:51
A specialisation of Polynomials for PolynomialType::Lucy. See Polynomial for details.
Definition: Lucy.h:39
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:76
The DPMBase header includes quite a few header files, defining all the handlers, which are essential....
Definition: DPMBase.h:77
Template argument; use a member class of CGFunctions to instantiate.
Evaluates time-smoothed continuum fields and writes the data into a stat file.
Definition: TimeSmoothedCG.h:60
TimeSmoothedCG< Coordinates, BaseFunction, Fields > * copy() const override
Copy operator. Required for BaseHandler::copyAndAddObject.
TimeSmoothedCG()
Default constructor; does nothing, i.e. no points are created initially.
Mdouble getTimeStep() const
Mdouble cutoffTime_
Definition: TimeSmoothedCG.h:138
void setTimeStep(Mdouble timeStep)
Mdouble getWidthTime() const
BaseFunction< Coordinates > Function
Definition: TimeSmoothedCG.h:62
Mdouble nextTime_
Definition: TimeSmoothedCG.h:146
virtual ~TimeSmoothedCG()=default
Destructor, it simply destructs the TimeSmoothedCGFunction and all the objects it contains.
void finish() override
Called at the end of the DPM simulation to finish the cg evaluation and to close the statFile.
void setWidthTime(Mdouble widthTime)
Mdouble widthTime_
Definition: TimeSmoothedCG.h:131
void evaluate() override
Called after a given number of time steps (statFile::saveCount_) to evaluate the CG fields.
std::vector< TimeSmoothedFields< Fields > > averages_
Definition: TimeSmoothedCG.h:159
Mdouble timeStep_
Definition: TimeSmoothedCG.h:153
void writeAll(std::ostream &os, TimeSmoothedFields< Fields > &average) const
void write(std::ostream &os) const override
Writes class content into an output stream, usually a stat file.
std::string getName() const override
A purely virtual function.
void initialise() override
Called at the beginning of the DPM simulation to initialise the cg evaluation and to open the statFil...
TimeSmoothedCG(const TimeSmoothedCG &p)=default
Copy constructor. It copies the TimeSmoothedCGFunction and all objects it contains.
A helper class for TimeSmoothedCG containing the time-smoothed variables.
Definition: TimeSmoothedFields.h:52