functionObjects: Moved functionObjects namespace documentation into functionObject.H
This commit is contained in:
@ -21,6 +21,70 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Namespace
|
||||
Foam::functionObjects
|
||||
|
||||
Description
|
||||
Namespace for functionObjects.
|
||||
|
||||
OpenFOAM includes a collection of functionObjects selected by the user at
|
||||
run-time to manipulate the simulation and provide mechanisms to extract
|
||||
field and derived quantities. Alternatively, the same actions can be
|
||||
executed after the simulation using the \c execFlowFunctionObjects utility.
|
||||
|
||||
\linebreak
|
||||
The current range of features are sub-divided into the following categories:
|
||||
- \ref grpLagrangianFunctionObjects
|
||||
- \ref grpFieldFunctionObjects
|
||||
- \ref grpForcesFunctionObjects
|
||||
- \ref grpUtilitiesFunctionObjects
|
||||
|
||||
\linebreak
|
||||
\subsection secFunctionObjects Using function objects
|
||||
|
||||
FunctionObjects are selected by additional entries in the
|
||||
$FOAM_CASE/system/controlDict dictionary. Each object is listed in the \c
|
||||
functions sub-dictionary, e.g. to select the \c functionObjectType
|
||||
functionObject the following entry would be specified:
|
||||
|
||||
\verbatim
|
||||
functions
|
||||
{
|
||||
myFunctionObject // Name of functionObject entry
|
||||
{
|
||||
type functionObjectType;
|
||||
functionObjectLibs ("libMyFunctionObjectlib.so");
|
||||
region defaultRegion;
|
||||
enabled yes;
|
||||
timeStart 0;
|
||||
timeEnd 10;
|
||||
outputControl outputTime;
|
||||
outputInterval 1;
|
||||
...
|
||||
}
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
Where:
|
||||
\table
|
||||
Property | Description | Required | Default value
|
||||
type | Type of function object | yes |
|
||||
functionObjectLibs | 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 | Either 'outputTime' or 'timeStep'| no | timeStep
|
||||
outputInterval| Steps between output for outputControl=timeStep | no | 1
|
||||
\endtable
|
||||
|
||||
The sub-dictionary name \c myFunctionObject is chosen by the user, and is
|
||||
typically used as the name of the output directory for any data written by
|
||||
the functionObject. The \c type entry defines the type of function object
|
||||
properties that follow. FunctionObjects are packaged into separate
|
||||
libraries and the \c libs entry is used to specify which library
|
||||
should be loaded.
|
||||
|
||||
Class
|
||||
Foam::functionObject
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,7 +23,7 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
\mainpage OpenFOAM®: open source CFD
|
||||
\mainpage OpenFOAM®: Open-Source CFD
|
||||
|
||||
\section about About OpenFOAM
|
||||
|
||||
@ -36,29 +36,24 @@ License
|
||||
turbulence and heat transfer, to solid dynamics and electromagnetics.
|
||||
<a href="http://www.openfoam.org/features">More ...</a>
|
||||
|
||||
\section layout OpenFOAM Directory Structure
|
||||
|
||||
\section layout Code Layout
|
||||
|
||||
The OpenFOAM source code comprises of four main components:
|
||||
OpenFOAM comprises of four main directories:
|
||||
- src:
|
||||
the core OpenFOAM source code
|
||||
The core OpenFOAM libraries
|
||||
|
||||
- applications:
|
||||
collections of library functionality wrapped up into applications,
|
||||
such as solvers and utilities
|
||||
Solvers and utilities
|
||||
|
||||
- tutorials:
|
||||
a suite of test cases that highlight a broad cross-section of
|
||||
OpenFOAM's capabilities
|
||||
Test-cases that demonstrate a wide-range of OpenFOAM functionality
|
||||
|
||||
- doc:
|
||||
supporting documentation
|
||||
Documentation
|
||||
|
||||
|
||||
\section usingTheCode Using the code
|
||||
\section usingOpenFOAM Using OpenFOAM
|
||||
|
||||
- \subpage pagePostProcessing
|
||||
- \subpage pageBoundaryConditions
|
||||
|
||||
- Post-processing using Foam::functionObjects
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -1,91 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
OpenFOAM is free software: you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License as published by the Free
|
||||
Software Foundation, either version 3 of the License, or (at your option)
|
||||
any later version.
|
||||
|
||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along with
|
||||
OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
\page pagePostProcessing Post-processing
|
||||
|
||||
\section secFunctionObjects Function objects
|
||||
|
||||
OpenFOAM includes a collection of \ref grpFunctionObjects that offer users the
|
||||
opportunity to closely manage their computational analyses. These objects can
|
||||
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.
|
||||
|
||||
\linebreak
|
||||
The current range of features comprises of:
|
||||
- \ref grpLagrangianFunctionObjects
|
||||
- \ref grpFieldFunctionObjects
|
||||
- \ref grpForcesFunctionObjects
|
||||
- \ref grpUtilitiesFunctionObjects
|
||||
|
||||
\linebreak
|
||||
\subsection secFieldFunctionObjectUsage Using function objects
|
||||
|
||||
Function objects are defined by additional entries in the
|
||||
$FOAM_CASE/system/controlDict input dictionary. Each object is listed in a
|
||||
\c functions sub-dictionary entry, e.g. the following shows the input options
|
||||
applicable to `output' -type objects:
|
||||
|
||||
\verbatim
|
||||
functions
|
||||
{
|
||||
myFunctionObject // user-defined name of function object entry
|
||||
{
|
||||
type functionObjectType;
|
||||
functionObjectLibs ("libMyFunctionObjectlib.so");
|
||||
region defaultRegion;
|
||||
enabled yes;
|
||||
timeStart 0;
|
||||
timeEnd 10;
|
||||
outputControl outputTime;
|
||||
outputInterval 1;
|
||||
...
|
||||
}
|
||||
}
|
||||
\endverbatim
|
||||
|
||||
Where:
|
||||
\table
|
||||
Property | Description | Required | Default value
|
||||
type | type of function object | yes |
|
||||
functionObjectLibs | 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
|
||||
typically used as the name of the output directory for any derived data. The
|
||||
\c type entry defines the type of function object properties that follow.
|
||||
Since the function objects are packaged into separate libraries, the user must
|
||||
tell the code where to find the function object implementation, identified
|
||||
using the \c libs entry.
|
||||
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
Reference in New Issue
Block a user