This function object controls the time step for classes of the type regionFaModel
. It reads regionFaMaxCo
entry from controlDict
and evaluate the time step based on the finite area Courant Number.
More...
Public Member Functions | |
TypeName ("setTimeStepFaRegion") | |
setTimeStepFaRegionsFunctionObject (const word &name, const Time &runTime, const dictionary &dict) | |
virtual | ~setTimeStepFaRegionsFunctionObject ()=default |
virtual bool | adjustTimeStep () |
virtual bool | read (const dictionary &dict) |
virtual bool | execute () |
virtual bool | write () |
![]() | |
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 | filesModified () const |
virtual void | updateMesh (const mapPolyMesh &mpm) |
virtual void | movePoints (const polyMesh &mesh) |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
![]() | |
bool | log |
![]() | |
static int | debug |
static bool | postProcess |
static bool | defaultUseNamePrefix |
static word | outputPrefix |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
timeFunctionObject (const timeFunctionObject &)=delete | |
void | operator= (const timeFunctionObject &)=delete |
![]() | |
word | scopedName (const word &name) const |
![]() | |
const Time & | time_ |
This function object controls the time step for classes of the type regionFaModel
. It reads regionFaMaxCo
entry from controlDict
and evaluate the time step based on the finite area Courant Number.
Can only be used with solvers using adjustTimeStep
control (e.g. pimpleFoam
). It makes no attempt to co-operate with other time step 'controllers', e.g. maxCo
, other functionObjects. Supports enabled
flag but none of the other options timeStart
, timeEnd
, writeControl
etc.
setTimeStep1 { // Mandatory entries type setTimeStepFaRegion; // Inherited entries ... }
where the entries mean:
Property | Description | Type | Reqd | Deflt |
---|---|---|---|---|
type | Type name: setTimeStepFaRegion | word | yes | - |
enabled | On/off switch | bool | no | yes |
The inherited entries are elaborated in:
Definition at line 104 of file setTimeStepFaRegionsFunctionObject.H.
setTimeStepFaRegionsFunctionObject | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Definition at line 47 of file setTimeStepFaRegionsFunctionObject.C.
References dict, and Foam::blockMeshTools::read().
|
virtualdefault |
TypeName | ( | "setTimeStepFaRegion" | ) |
|
virtual |
Reimplemented from functionObject.
Definition at line 61 of file setTimeStepFaRegionsFunctionObject.C.
References TimeState::deltaTValue(), timeFunctionObject::time_, and TimeState::timeIndex().
|
virtual |
Reimplemented from functionObject.
Definition at line 85 of file setTimeStepFaRegionsFunctionObject.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::nl, and functionObject::read().
|
virtual |
Implements functionObject.
Definition at line 144 of file setTimeStepFaRegionsFunctionObject.C.
|
virtual |
Implements functionObject.
Definition at line 150 of file setTimeStepFaRegionsFunctionObject.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.