85 virtual ~CG() =
default;
95 void write(std::ostream& os)
const override;
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
IntegralType
Specifies the two points between which a line integral is computed.
Definition: IntegralType.h:14
@ O
Definition: StatisticsVector.h:21
float * p
Definition: Tutorial_Map_using.cpp:9
Base class of all CG objects, needed to store the various CG objects in the CGHandler.
Definition: BaseCG.h:36
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Contains the computed field values, like density, momentum and stress.
Definition: StandardFields.h:33
A specialisation of Polynomials for PolynomialType::Lucy. See Polynomial for details.
Definition: Lucy.h:19
Container that stores all CG objects.
Definition: CGHandler.h:45
Combines the position of the CGPoint (e.g. x, y, z), the parameters of the coarse-graining function (...
Definition: CGPoint.h:24
Evaluates time-resolved continuum fields and writes the data into a stat file.
Definition: CG.h:55
void evaluateParticle(const BaseParticle &p)
Contains the basic for loop over all CGPoints, required to do particle statistics.
Function & getFunction()
Definition: CG.h:171
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:166
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:63
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:176
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:247
CGPoint< Coordinates, Fields > Point
Definition: CG.h:64
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:245
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:161
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:207
void volumeAverageVariables()
divide each variable by the domain volume
void setWidth(Mdouble width) override
Definition: CG.h:199
void setRadius(Mdouble radius) override
Definition: CG.h:181
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.
squared absolute value
Definition: GlobalFunctions.h:87
int c
Definition: calibrate.py:100
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286