|
| TypeName ("div") |
|
| div (const word &name, const Time &runTime, const dictionary &dict) |
|
| div (const div &)=delete |
|
void | operator= (const div &)=delete |
|
virtual | ~div ()=default |
|
virtual bool | write () |
|
| 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 | 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 divergence of an input field.
Operands:
Operand | Type | Location |
input | {surfaceScalar,volVector}Field | $FOAM_CASE/<time>/<inpField> |
output file | - | - |
output field | volScalarField | $FOAM_CASE/<time>/<outField> |
- Usage
- Minimal example by using
system/controlDict.functions
: div1
{
// Mandatory entries (unmodifiable)
type div;
libs (fieldFunctionObjects);
// Mandatory (inherited) entry (runtime modifiable)
field \<field\>;
// Inherited entries
...
}
where the entries mean:
Property | Description | Type | Reqd | Deflt |
type | Type name: div | 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 "div(\<field\>)"
- Note
- To execute
div
function object on an input <field>, a numerical scheme should be defined for div
(<field>) in system/fvSchemes.divSchemes
.
- Optionally the user can specify
cellZones
to create a sub-mesh for the div
calculation.
- See also
-
- Source files
-
Definition at line 148 of file div.H.