Computes linear/angular momentum, reporting integral values and optionally writing the fields.
More...
|
| TypeName ("momentum") |
|
| momentum (const word &name, const Time &runTime, const dictionary &dict, const bool readFields=true) |
|
| momentum (const word &name, const objectRegistry &obr, const dictionary &dict, const bool readFields=true) |
|
| momentum (const momentum &)=delete |
|
void | operator= (const momentum &)=delete |
|
virtual | ~momentum ()=default |
|
virtual bool | read (const dictionary &) |
|
virtual bool | execute () |
|
virtual bool | write () |
|
virtual void | updateMesh (const mapPolyMesh &) |
|
virtual void | movePoints (const polyMesh &) |
|
template<class GeoField > |
Foam::autoPtr< GeoField > | newField (const word &baseName, const dimensionSet &dims, bool registerObject) const |
|
| TypeName ("fvMeshFunctionObject") |
|
| fvMeshFunctionObject (const word &name, const Time &runTime, const dictionary &dict) |
|
| fvMeshFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) |
|
virtual | ~fvMeshFunctionObject ()=default |
|
| TypeName ("regionFunctionObject") |
|
| regionFunctionObject (const word &name, const Time &runTime, const dictionary &dict) |
|
| regionFunctionObject (const word &name, const objectRegistry &obr, const dictionary &dict) |
|
virtual | ~regionFunctionObject ()=default |
|
template<class ObjectType > |
const ObjectType * | lookupObjectPtr (const word &fieldName) const |
|
template<class ObjectType > |
ObjectType * | lookupObjectRefPtr (const word &fieldName) const |
|
| stateFunctionObject (const word &name, const Time &runTime) |
|
virtual | ~stateFunctionObject ()=default |
|
dictionary & | propertyDict () |
|
bool | foundProperty (const word &entryName) const |
|
void | clearTrigger () |
|
label | getTrigger () const |
|
bool | setTrigger (const label triggeri, bool increaseOnly=true) |
|
bool | getDict (const word &entryName, dictionary &dict) const |
|
bool | getObjectDict (const word &objectName, const word &entryName, dictionary &dict) const |
|
template<class Type > |
Type | getProperty (const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getProperty (const word &entryName, Type &value) const |
|
template<class Type > |
void | setProperty (const word &entryName, const Type &value) |
|
template<class Type > |
Type | getObjectProperty (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getObjectProperty (const word &objectName, const word &entryName, Type &value) const |
|
template<class Type > |
void | setObjectProperty (const word &objectName, const word &entryName, const Type &value) |
|
template<class Type > |
void | setResult (const word &entryName, const Type &value) |
|
template<class Type > |
void | setObjectResult (const word &objectName, const word &entryName, const Type &value) |
|
template<class Type > |
Type | getResult (const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
Type | getObjectResult (const word &objectName, const word &entryName, const Type &defaultValue=Type(Zero)) const |
|
template<class Type > |
bool | getObjectResult (const word &objectName, const word &entryName, Type &value) const |
|
word | resultType (const word &entryName) const |
|
word | objectResultType (const word &objectName, const word &entryName) const |
|
wordList | objectResultEntries () const |
|
wordList | objectResultEntries (const word &objectName) const |
|
void | writeResultEntries (Ostream &os) const |
|
void | writeResultEntries (const word &objectName, Ostream &os) const |
|
void | writeAllResultEntries (Ostream &os) const |
|
| timeFunctionObject (const word &name, const Time &runTime) |
|
virtual | ~timeFunctionObject ()=default |
|
const Time & | time () const |
|
objectRegistry & | storedObjects () |
|
const objectRegistry & | storedObjects () const |
|
| declareRunTimeSelectionTable (autoPtr, functionObject, dictionary,(const word &name, const Time &runTime, const dictionary &dict),(name, runTime, dict)) |
|
| functionObject (const word &name, const bool withNamePrefix=defaultUseNamePrefix) |
|
autoPtr< functionObject > | clone () const |
|
virtual | ~functionObject ()=default |
|
virtual const word & | type () const =0 |
|
const word & | name () const noexcept |
|
bool | useNamePrefix () const noexcept |
|
bool | useNamePrefix (bool on) noexcept |
|
virtual bool | execute (const label subIndex) |
|
virtual bool | end () |
|
virtual bool | adjustTimeStep () |
|
virtual bool | filesModified () const |
|
| TypeName ("volRegion") |
|
| volRegion (const fvMesh &mesh, const dictionary &dict) |
|
virtual | ~volRegion ()=default |
|
regionTypes | regionType () const noexcept |
|
const labelList & | cellIDs () const |
|
label | nCells () const |
|
scalar | V () const |
|
bool | update () |
|
| writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true) |
|
| writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true) |
|
| writeFile (const writeFile &wf) |
|
virtual | ~writeFile ()=default |
|
virtual OFstream & | file () |
|
virtual bool | writeToFile () const |
|
virtual bool | canWriteHeader () const |
|
virtual label | charWidth () const |
|
virtual void | writeCommented (Ostream &os, const string &str) const |
|
virtual void | writeTabbed (Ostream &os, const string &str) const |
|
virtual void | writeHeader (Ostream &os, const string &str) const |
|
virtual void | writeCurrentTime (Ostream &os) const |
|
virtual void | writeBreak (Ostream &os) const |
|
template<class Type > |
void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
|
Computes linear/angular momentum, reporting integral values and optionally writing the fields.
Operands:
Operand | Type | Location |
input | - | - |
output file | dat | $FOAM_CASE/postProcessing/<FO>/<time>/<file> |
output field | - | - |
- Usage
- Minimal example by using
system/controlDict.functions
: momentum1
{
// Mandatory entries (unmodifiable)
type momentum;
libs (fieldFunctionObjects);
// Optional entries (runtime modifiable)
regionType all;
writeMomentum yes;
writePosition yes;
writeVelocity yes;
p p;
U U;
rho rho;
rhoRef 1.0;
cylindrical true;
origin (0 0 0);
e1 (1 0 0);
e3 (0 0 1);
// Optional (inherited) entries
...
}
where the entries mean:
Property | Description | Type | Req'd | Dflt |
type | Type name: momentum | word | yes | - |
libs | Library name: fieldFunctionObjects | word | yes | - |
regionType | Selection type: all/cellSet/cellZone | word | no | all |
writeMomentum | Write (linear, angular) momentum fields | bool | no | no |
writePosition | Write angular position component fields | bool | no | no |
writeVelocity | Write angular velocity fields | bool | no | no |
p | Pressure field name | word | no | p |
U | Velocity field name | word | no | U |
rho | Density field name | word | no | rho |
rhoRef | Reference density (incompressible) | scalar | no | 1.0 |
cylindrical | Use cylindrical coordinates | bool | no | no |
origin | Origin for cylindrical coordinates | vector | conditional | - |
name | Name of cellSet/cellZone if required | word | conditional | - |
The inherited entries are elaborated in:
Usage by the postProcess
utility is not available.
- Note
-
- See also
-
- Source files
-
Definition at line 243 of file momentum.H.