116 void write(std::ostream& os)
const override;
204 if (std::is_base_of<CGCoordinates::Base_X_Y_Z, Coordinates>::value)
206 function_.setStandardDeviation(radius * sqrt(.2));
208 else if (std::is_base_of<CGCoordinates::Base_XY_XZ_YZ, Coordinates>::value)
210 function_.setStandardDeviation(radius * sqrt(.4));
213 function_.setStandardDeviation(radius * sqrt(.6));
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
IntegralType
Specifies the two points between which a line integral is computed.
Definition: IntegralType.h:34
@ O
Definition: StatisticsVector.h:42
Base class of all CG objects, needed to store the various CG objects in the CGHandler.
Definition: BaseCG.h:57
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
Container that stores all CG objects.
Definition: CGHandler.h:65
Combines the position of the CGPoint (e.g. x, y, z), the parameters of the coarse-graining function (...
Definition: CGPoint.h:44
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:76
void evaluateParticle(const BaseParticle &p)
Contains the basic for loop over all CGPoints, required to do particle statistics.
Function & getFunction()
Definition: CG.h:192
virtual void createMesh()
Creates spatial mesh of CGPoints, the points where the CG-variables are evaluated.
std::string getName() const override
returns the name of the class, which is required by write.
const std::vector< Point > & getPoints() const
Definition: CG.h:187
void evaluateCommon()
The part of evaluate that is used for CG, timeAveragedCG and timeSmoothedCG.
BaseFunction< Coordinates > Function
Because of this typedefs, Point can be used instead of CGPoint<Function> and Function can be used ins...
Definition: CG.h:84
void resetVariables()
set all variables to zero
Point evaluateTotal()
Computes the total value (integrated over space) for each field.
void setStandardDeviation(Mdouble std) override
Definition: CG.h:197
virtual ~CG()=default
Default destructor; does nothing.
void write(std::ostream &os) const override
Writes class content, except for the points, into an output stream.
void evaluateParticleAtPoint(Fields ¤tInteraction, const BaseParticle &p, Point &r)
Function function_
Definition: CG.h:268
CGPoint< Coordinates, Fields > Point
Definition: CG.h:85
void evaluateContact(const BaseInteraction &i)
Contains the basic for loop over all CGPoints, required to do contact statistics.
void writeVariables()
write variables to the stat file
CG(const CG &p)=default
Default copy Constructor; copies all member variables.
std::vector< Point > points_
Contains the CGPoint's, i.e. the positions at which the StandardFields are evaluated.
Definition: CG.h:266
void initialise() override
Called at the beginning of the DPM simulation to initialise the cg evaluation and to open the statFil...
void evaluate() override
Called after a given number of time steps (statFile::saveCount_) to evaluate the CG fields.
const Point & getPoint(size_t i) const
Definition: CG.h:182
CG()=default
Default constructor; does nothing, i.e. no points are created initially.
void writeAll(std::ostream &os) const
Writes class content, including the points_, into an output stream, usually a stat file.
IntegralType getIntegralType(const BaseInteraction &c)
Mdouble getWidth() const override
Definition: CG.h:228
void volumeAverageVariables()
divide each variable by the domain volume
void setWidth(Mdouble width) override
Definition: CG.h:220
void setRadius(Mdouble radius) override
Definition: CG.h:202
Point evaluateAverage()
Computes the spatially-averaged value for each field.
void finish() override
Called at the end of the DPM simulation to finish the cg evaluation and to close the statFile.
void outputSumOfVariables()
plot total to console
CG(Mdouble width, unsigned n)
CG< Coordinates, BaseFunction, Fields > * copy() const override
Copy operator; creates a new'ed CG object.
Template argument; use a member class of CGCoordinates to instantiate.
Template argument; use a member class of CGFunctions to instantiate.
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51