|
| TypeName ("mag") |
|
| mag (const word &name, const Time &runTime, const dictionary &dict) |
|
| mag (const mag &)=delete |
|
void | operator= (const mag &)=delete |
|
virtual | ~mag ()=default |
|
| TypeName ("fieldExpression") |
|
| fieldExpression (const word &name, const Time &runTime, const dictionary &dict, const word &fieldName=word::null, const word &resultName=word::null) |
|
| fieldExpression (const fieldExpression &)=delete |
|
void | operator= (const fieldExpression &)=delete |
|
virtual | ~fieldExpression ()=default |
|
virtual bool | read (const dictionary &dict) |
|
virtual bool | execute () |
|
virtual bool | write () |
|
virtual bool | clear () |
|
| 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 |
|
virtual void | updateMesh (const mapPolyMesh &mpm) |
|
virtual void | movePoints (const polyMesh &mesh) |
|
Computes the magnitude of an input field.
Operands:
Operand | Type | Location |
input | {vol,surface}<Type>Field | $FOAM_CASE/<time>/<inpField> |
output file | - | - |
output field | {vol,surface}ScalarField | $FOAM_CASE/<time>/<outField> |
where <Type>=Scalar/Vector/SphericalTensor/SymmTensor/Tensor
.
With the subRegion
option, also supports fields on function object surface output (e.g. sampledSurfaces).
- Usage
- Minimal example by using
system/controlDict.functions
: mag1
{
// Mandatory entries (unmodifiable)
type mag;
libs (fieldFunctionObjects);
// Mandatory (inherited) entries (runtime modifiable)
field <field>;
// Optional (inherited) entries
...
}
where the entries mean:
Property | Description | Type | Req'd | Dflt |
type | Type name: mag | word | yes | - |
libs | Library name: fieldFunctionObjects | word | yes | - |
field | Name of the operand field | word | yes | - |
The inherited entries are elaborated in:
Minimal example by using the postProcess
utility:
postProcess -func "mag(<field>)"
- See also
-
- Source files
-
Definition at line 146 of file mag.H.