Performs a file copy/replacement once a specified time has been reached. More...
Public Member Functions | |
TypeName ("timeActivatedFileUpdate") | |
timeActivatedFileUpdate (const word &name, const Time &runTime, const dictionary &dict) | |
virtual | ~timeActivatedFileUpdate ()=default |
virtual bool | read (const dictionary &) |
virtual bool | execute () |
virtual bool | write () |
virtual bool | filesModified () 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 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_ |
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 109 of file timeActivatedFileUpdate.H.
timeActivatedFileUpdate | ( | const word & | name, |
const Time & | runTime, | ||
const dictionary & | dict | ||
) |
Definition at line 82 of file timeActivatedFileUpdate.C.
References dict, and Foam::read().
|
virtualdefault |
TypeName | ( | "timeActivatedFileUpdate" | ) |
|
virtual |
Reimplemented from functionObject.
Definition at line 101 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 |
Implements functionObject.
Definition at line 137 of file timeActivatedFileUpdate.C.
|
virtual |
Implements functionObject.
Definition at line 145 of file timeActivatedFileUpdate.C.
|
virtual |
Reimplemented from functionObject.
Definition at line 151 of file timeActivatedFileUpdate.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.