This function object writes a scalar field whose value is the local processor ID. The output field name is 'processorID'. More...
Public Member Functions | |
TypeName ("processorField") | |
Runtime type information. More... | |
processorField (const word &name, const objectRegistry &, const dictionary &, const bool loadFromFiles=false) | |
Construct for given objectRegistry and dictionary. More... | |
virtual | ~processorField () |
Destructor. More... | |
virtual const word & | name () const |
Return name of the processorField object. More... | |
virtual void | read (const dictionary &) |
Read the input data. More... | |
virtual void | execute () |
Execute, currently does nothing. More... | |
virtual void | end () |
Execute at the final time-loop, currently does nothing. More... | |
virtual void | timeSet () |
Called when time was set at the end of the Time::operator++. More... | |
virtual void | write () |
Write. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &) |
Update for changes of mesh. More... | |
Protected Member Functions | |
processorField (const processorField &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const processorField &) |
Disallow default bitwise assignment. More... | |
Protected Attributes | |
word | name_ |
Name of this set of nearWallFields object. More... | |
const objectRegistry & | obr_ |
Reference to the database. More... | |
bool | active_ |
on/off switch More... | |
word | resultName_ |
Result name. More... | |
Switch | log_ |
Switch to send output to Info as well as to file. More... | |
This function object writes a scalar field whose value is the local processor ID. The output field name is 'processorID'.
Example of function object specification:
processorField1 { type processorField; functionObjectLibs ("libfieldFunctionObjects.so"); ... }
Function object usage
Property | Description | Required | Default value |
---|---|---|---|
type | type name: processorField | yes | |
log | Log to standard output | no | yes |
Definition at line 98 of file processorField.H.
|
protected |
Disallow default bitwise copy construct.
processorField | ( | const word & | name, |
const objectRegistry & | obr, | ||
const dictionary & | dict, | ||
const bool | loadFromFiles = false |
||
) |
Construct for given objectRegistry and dictionary.
Allow the possibility to load fields from files
Definition at line 41 of file processorField.C.
References dict, Foam::dimless, Foam::endl(), mesh, Foam::read(), and WarningInFunction.
|
virtual |
Destructor.
Definition at line 92 of file processorField.C.
|
protected |
Disallow default bitwise assignment.
TypeName | ( | "processorField" | ) |
Runtime type information.
|
inlinevirtual |
Return name of the processorField object.
Definition at line 155 of file processorField.H.
References processorField::name_.
|
virtual |
|
virtual |
Execute, currently does nothing.
Definition at line 107 of file processorField.C.
References Foam::dimless, and UPstream::myProcNo().
|
virtual |
Execute at the final time-loop, currently does nothing.
Definition at line 120 of file processorField.C.
|
virtual |
Called when time was set at the end of the Time::operator++.
Definition at line 126 of file processorField.C.
|
virtual |
Write.
Definition at line 132 of file processorField.C.
References Foam::endl(), Foam::Info, Foam::nl, and Foam::type().
|
inlinevirtual |
Update for changes of mesh.
Definition at line 176 of file processorField.H.
|
inlinevirtual |
Update for changes of mesh.
Definition at line 180 of file processorField.H.
|
protected |
Name of this set of nearWallFields object.
Definition at line 105 of file processorField.H.
Referenced by processorField::name().
|
protected |
Reference to the database.
Definition at line 108 of file processorField.H.
|
protected |
on/off switch
Definition at line 111 of file processorField.H.
|
protected |
Result name.
Definition at line 114 of file processorField.H.
|
protected |
Switch to send output to Info as well as to file.
Definition at line 117 of file processorField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.