ENH: Updated function object documentation

This commit is contained in:
andy
2012-08-13 14:29:42 +01:00
parent 93e7d6e392
commit 536c4aa210
2 changed files with 53 additions and 20 deletions

View File

@ -28,7 +28,7 @@ Group
grpCloudFunctionObjects grpCloudFunctionObjects
Description Description
This function object outputs lagrangian cloud information to a file. The This function object outputs Lagrangian cloud information to a file. The
current outputs include: current outputs include:
- total current number of parcels - total current number of parcels
- total current mass of parcels - total current mass of parcels
@ -37,13 +37,9 @@ Description
\verbatim \verbatim
cloudInfo1 cloudInfo1
{ {
// Type of functionObject type cloudInfo;
type cloudInfo;
// Where to load it from (if not already in solver)
functionObjectLibs ("libcloudFunctionObjects.so"); functionObjectLibs ("libcloudFunctionObjects.so");
// Clouds to process
clouds clouds
( (
kinematicCloud1 kinematicCloud1
@ -52,6 +48,21 @@ Description
} }
\endverbatim \endverbatim
\heading Function object usage
\table
Property | Description | Required | Default value
type | type name: cloudInfo | yes |
clouds | list of clouds names to process |yes |
\endtable
The output data of each cloud is written to a file named \<cloudName\>.dat
SeeAlso
functionObject.H
OutputFilterFunctionObject.H
SourceFiles SourceFiles
cloudInfo.C cloudInfo.C
IOcloudInfo.H IOcloudInfo.H

View File

@ -27,9 +27,15 @@ License
\section secFunctionObjects Function objects \section secFunctionObjects Function objects
OpenFOAM includes a variety of \ref grpFunctionObjects that can be applied during OpenFOAM includes a collection of \ref grpFunctionObjects that offer users the
the calculation, or afterwards using the execFlowFunctionObjects utility. The opportunity to closely manage their computational analyses. These objects can
range of uses include: be applied to manipulate the workflow process, and provide a mechanism to
extract predicted field and derived quantities at run-time. Alternatively,
the actions can be executed afterwards using the \c execFlowFunctionObjects
utility.
<br>
The current range of features comprises of:
- \ref grpCloudFunctionObjects - \ref grpCloudFunctionObjects
- \ref grpFieldFunctionObjects - \ref grpFieldFunctionObjects
- \ref grpForcesFunctionObjects - \ref grpForcesFunctionObjects
@ -40,31 +46,47 @@ range of uses include:
<br> <br>
\subsection secFieldFunctionObjectUsage Using function objects \subsection secFieldFunctionObjectUsage Using function objects
To employ function objects, additional entries are required in the Function objects are defined by additional entries in the
$FOAM_CASE/system/controlDict input dictionary. Each object is listed in a $FOAM_CASE/system/controlDict input dictionary. Each object is listed in a
\c functions sub-dictionary entry, e.g. \c functions sub-dictionary entry, e.g. for `output' type objects:
\verbatim \verbatim
functions functions
{ {
myFunctionObject myFunctionObject // user-defined name of function object entry
{ {
type functionObjectType; type functionObjectType;
libs ("libMyFunctionObjectlib.so"); libs ("libMyFunctionObjectlib.so");
active yes; // active by default region defaultRegion;
outputControl outputTime; // output or timeStep enabled yes;
outputInterval 1; // only necessary for outputControl=timeStep timeStart 0;
timeEnd 10;
outputControl outputTime;
outputInterval 1;
... ...
} }
} }
\endverbatim \endverbatim
Where:
\table
Property | Description | Required | Default value
type | type of function object | yes |
libs | libraries containing object implementation | yes |
region | name of region for multi-region cases | no |
enabled | on/off switch | no | yes
timeStart| start time | no |
timeEnd | end time | no |
outputControl | when to output: either 'outputTime' or 'timeStep'| no | timeStep
outputInterval| steps between output when outputControl=timeStep | no | 1
\endtable
The sub-dictionary name \c myFunctionObject is chosen by the user, and is The sub-dictionary name \c myFunctionObject is chosen by the user, and is
often used as the name of the output folder of any generated data. The \c type typically used as the name of the output folder for any derived data. The
entry defines the type of function object properties that follow. Since the \c type entry defines the type of function object properties that follow.
function objects are packaged into separate libraries, the user must tell the Since the function objects are packaged into separate libraries, the user must
code where to find the function object implementation, identified using the tell the code where to find the function object implementation, identified
\c libs entry. using the \c libs entry.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/