Performs a file copy/replacement once a specified time has been reached. More...
Public Member Functions | |
TypeName ("timeActivatedFileUpdate") | |
Runtime type information. More... | |
timeActivatedFileUpdate (const word &name, const Time &runTime, const dictionary &dict) | |
Construct from Time and dictionary. More... | |
virtual | ~timeActivatedFileUpdate ()=default |
Destructor. More... | |
virtual bool | read (const dictionary &) |
Read the timeActivatedFileUpdate data. More... | |
virtual bool | execute () |
Execute file updates. More... | |
virtual bool | write () |
Do nothing. More... | |
virtual bool | filesModified () const |
Did any file get changed during execution? More... | |
![]() | |
timeFunctionObject (const word &name, const Time &runTime) | |
Construct from Time. More... | |
virtual | ~timeFunctionObject ()=default |
Destructor. More... | |
const Time & | time () const |
Return time database. More... | |
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) | |
Construct from components. More... | |
autoPtr< functionObject > | clone () const |
Return clone. More... | |
virtual | ~functionObject ()=default |
Destructor. More... | |
virtual const word & | type () const =0 |
Runtime type information. More... | |
const word & | name () const noexcept |
Return the name of this functionObject. More... | |
bool | useNamePrefix () const noexcept |
Return the flag for adding a scoping name prefix. More... | |
bool | useNamePrefix (bool on) noexcept |
Modify the flag for adding a scoping name prefix. More... | |
virtual bool | execute (const label subIndex) |
Execute using the specified subIndex. More... | |
virtual bool | end () |
Called when Time::run() determines that the time-loop exits. More... | |
virtual bool | adjustTimeStep () |
Called at the end of Time::adjustDeltaT() if adjustTime is true. More... | |
virtual void | updateMesh (const mapPolyMesh &mpm) |
Update for changes of mesh. More... | |
virtual void | movePoints (const polyMesh &mesh) |
Update for changes of mesh. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< functionObject > | New (const word &name, const Time &runTime, const dictionary &dict) |
Select from dictionary, based on its "type" entry. More... | |
![]() | |
bool | log |
Flag to write log into Info. More... | |
![]() | |
static int | debug |
Flag to execute debug content. More... | |
static bool | postProcess |
Global post-processing mode switch. More... | |
static bool | defaultUseNamePrefix |
Global default for useNamePrefix. More... | |
static word | outputPrefix |
Directory prefix. More... | |
![]() | |
void | clearOutputObjects (const wordList &objNames) |
Remove specified items from "functionObjectObjects". More... | |
timeFunctionObject (const timeFunctionObject &)=delete | |
No copy construct. More... | |
void | operator= (const timeFunctionObject &)=delete |
No copy assignment. More... | |
![]() | |
word | scopedName (const word &name) const |
Return a scoped (prefixed) name. More... | |
![]() | |
const Time & | time_ |
Reference to the time database. More... | |
Performs a file copy/replacement once a specified time has been reached.
fileUpdate1 { type timeActivatedFileUpdate; libs (utilityFunctionObjects); writeControl timeStep; writeInterval 1; fileToUpdate "<system>/fvSolution"; timeVsFile ( (-1 "<system>/fvSolution.0") (0.10 "<system>/fvSolution.10") (0.20 "<system>/fvSolution.20") (0.35 "<system>/fvSolution.35") ); ... }
Where the entries comprise:
Property | Description | Required | Default value |
---|---|---|---|
type | Type name: timeActivatedFileUpdate | yes | |
fileToUpdate | Name of file to update | yes | |
timeVsFile | List of time vs file | yes |
Definition at line 113 of file timeActivatedFileUpdate.H.
timeActivatedFileUpdate | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Construct from Time and dictionary.
Definition at line 89 of file timeActivatedFileUpdate.C.
References dict, and Foam::read().
|
virtualdefault |
Destructor.
TypeName | ( | "timeActivatedFileUpdate" | ) |
Runtime type information.
|
virtual |
Read the timeActivatedFileUpdate data.
Reimplemented from functionObject.
Definition at line 108 of file timeActivatedFileUpdate.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::Info, Foam::isFile(), Foam::name(), Foam::nl, functionObject::read(), Foam::tab, and Foam::type().
|
virtual |
Execute file updates.
Implements functionObject.
Definition at line 144 of file timeActivatedFileUpdate.C.
|
virtual |
|
virtual |
Did any file get changed during execution?
Reimplemented from functionObject.
Definition at line 158 of file timeActivatedFileUpdate.C.