118 #ifndef Foam_functionObjects_momentum_H 119 #define Foam_functionObjects_momentum_H 135 namespace functionObjects
144 public fvMeshFunctionObject,
157 template<
class GeoField>
158 autoPtr<GeoField> newField
160 const word& baseName,
161 const dimensionSet& dims,
162 bool registerObject=
true 193 coordSystem::cylindrical
csys_;
236 const dictionary&
dict,
269 virtual bool write();
Computes linear/angular momentum, reporting integral values and optionally writing the fields...
bool writeMomentum_
Write fields flag.
void operator=(const momentum &)=delete
No copy assignment.
momentum(const word &name, const Time &runTime, const dictionary &dict, const bool readFields=true)
Construct from name, Time and dictionary.
Forwards and collection of common volume field types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
vector sumMomentum_
Integral (linear) momentum.
bool hasCsys_
Are we using the cylindrical coordinate system?
bool writePosition_
Write fields flag.
virtual bool execute()
Execute the function-object operations.
scalar rhoRef_
Reference density (for incompressible)
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
const word & name() const noexcept
Return the name of this functionObject.
bool initialised_
Initialised flag.
word UName_
The velocity field name (optional)
coordSystem::cylindrical csys_
Coordinate system for evaluating angular momentum.
A class for handling words, derived from Foam::string.
vector sumAngularMom_
Integral angular momentum.
void writeValues(Ostream &os)
Write momentum data.
void initialise()
Initialise the fields.
Reads fields from the time directories and adds them to the mesh database for further post-processing...
OBJstream os(runTime.globalPath()/outputName)
virtual ~momentum()=default
Destructor.
TypeName("momentum")
Runtime type information.
word pName_
The pressure field name (optional)
word rhoName_
The density field name (optional)
virtual bool write()
Write the function-object results.
virtual void updateMesh(const mapPolyMesh &)
Update for changes of mesh.
Mesh consisting of general polyhedral cells.
virtual void writeFileHeader(Ostream &os)
Output file header information.
bool writeVelocity_
Write fields flag.
Registry of regIOobjects.
virtual bool read(const dictionary &dict)
Read the function-object dictionary.
virtual void movePoints(const polyMesh &)
Update for mesh point-motion.
virtual const objectRegistry & obr() const
The region or sub-region registry being used.