Abstract base class for DMD models to handle DMD characteristics for the DMD
function object.
More...
Public Member Functions | |
TypeName ("DMDModel") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, DMDModel, dictionary,(const fvMesh &mesh, const word &name, const dictionary &dict),(mesh, name, dict)) | |
DMDModel (const fvMesh &mesh, const word &name, const dictionary &dict) | |
Construct from components. More... | |
DMDModel (const DMDModel &)=delete | |
No copy construct. More... | |
void | operator= (const DMDModel &)=delete |
No copy assignment. More... | |
virtual | ~DMDModel ()=default |
Destructor. More... | |
virtual bool | initialise (const RMatrix &snapshot)=0 |
Initialise model data members with a given snapshot. More... | |
virtual bool | update (const RMatrix &snapshot)=0 |
Update model data members with a given snapshot. More... | |
virtual bool | fit ()=0 |
virtual void | reconstruct (const wordList modes) |
label | nComponents (const word &fieldName) const |
Return number of components of the base type of a given field. More... | |
template<class Type > | |
bool | nComponents (const word &fieldName, label &nComps) const |
Get the number of components of the base type of a given field. More... | |
virtual bool | read (const dictionary &dict)=0 |
Read model settings. More... | |
![]() | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name="undefined", const bool writeToFile=true) | |
Construct from objectRegistry, prefix, fileName. More... | |
writeFile (const objectRegistry &obr, const fileName &prefix, const word &name, const dictionary &dict, const bool writeToFile=true) | |
writeFile (const writeFile &wf) | |
Construct copy. More... | |
virtual | ~writeFile ()=default |
Destructor. More... | |
virtual OFstream & | file () |
Return access to the file (if only 1) More... | |
virtual bool | writeToFile () const |
Flag to allow writing to file. More... | |
virtual bool | canWriteHeader () const |
Flag to allow writing the header. More... | |
virtual label | charWidth () const |
Return width of character stream output. More... | |
virtual void | writeCommented (Ostream &os, const string &str) const |
Write a commented string to stream. More... | |
virtual void | writeTabbed (Ostream &os, const string &str) const |
Write a tabbed string to stream. More... | |
virtual void | writeHeader (Ostream &os, const string &str) const |
Write a commented header to stream. More... | |
virtual void | writeCurrentTime (Ostream &os) const |
Write the current time to stream. More... | |
virtual void | writeBreak (Ostream &os) const |
Write a break marker to the stream. More... | |
template<class Type > | |
void | writeHeaderValue (Ostream &os, const string &property, const Type &value) const |
Write a (commented) header property and value pair. More... | |
Static Public Member Functions | |
static autoPtr< DMDModel > | New (const fvMesh &mesh, const word &name, const dictionary &dict) |
Return a reference to the selected DMD model. More... | |
Protected Member Functions | |
virtual bool | dynamics ()=0 |
Compute and write mode dynamics. More... | |
virtual bool | modes ()=0 |
Compute and write modes. More... | |
![]() | |
void | initStream (Ostream &os) const |
Initialise the output stream for writing. More... | |
fileName | baseFileDir () const |
Return the base directory for output. More... | |
fileName | baseTimeDir () const |
Return the base directory for the current time value. More... | |
virtual autoPtr< OFstream > | createFile (const word &name, scalar timeValue) const |
Return autoPtr to a new file for a given time. More... | |
virtual autoPtr< OFstream > | createFile (const word &name) const |
Return autoPtr to a new file using the simulation start time. More... | |
virtual void | resetFile (const word &name) |
Reset internal file pointer to new file with new name. More... | |
Omanip< int > | valueWidth (const label offset=0) const |
Return the value width when writing to stream with optional offset. More... | |
void | operator= (const writeFile &)=delete |
No copy assignment. More... | |
Protected Attributes | |
const fvMesh & | mesh_ |
Reference to the mesh. More... | |
const word | name_ |
Name of operand function object. More... | |
![]() | |
const objectRegistry & | fileObr_ |
Reference to the region objectRegistry. More... | |
const fileName | prefix_ |
Prefix. More... | |
word | fileName_ |
Name of file. More... | |
autoPtr< OFstream > | filePtr_ |
File pointer. More... | |
label | writePrecision_ |
Write precision. More... | |
bool | writeToFile_ |
Flag to enable/disable writing to file. More... | |
bool | updateHeader_ |
bool | writtenHeader_ |
Flag to identify whether the header has been written. More... | |
bool | useUserTime_ |
scalar | startTime_ |
Start time value. More... | |
Additional Inherited Members | |
![]() | |
static label | addChars = 8 |
Additional characters for writing. More... | |
Abstract base class for DMD models to handle DMD characteristics for the DMD
function object.
Definition at line 65 of file DMDModel.H.
DMDModel | ( | const fvMesh & | mesh, |
const word & | name, | ||
const dictionary & | dict | ||
) |
Construct from components.
Definition at line 42 of file DMDModel.C.
|
virtualdefault |
Destructor.
|
protectedpure virtual |
Compute and write mode dynamics.
|
protectedpure virtual |
Compute and write modes.
TypeName | ( | "DMDModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
DMDModel | , | ||
dictionary | , | ||
(const fvMesh &mesh, const word &name, const dictionary &dict) | , | ||
(mesh, name, dict) | |||
) |
|
static |
Return a reference to the selected DMD model.
Definition at line 33 of file DMDModelNew.C.
References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, mesh, and Foam::name().
|
delete |
No copy assignment.
Initialise model data members with a given snapshot.
Implemented in STDMD.
Update model data members with a given snapshot.
Implemented in STDMD.
|
pure virtual |
Compute and write modes and mode dynamics of model data members
Implemented in STDMD.
|
inlinevirtual |
Compute and write a reconstruction of flow field based on given modes and mode dynamics (currently no-op)
Definition at line 165 of file DMDModel.H.
References NotImplemented.
Foam::label nComponents | ( | const word & | fieldName | ) | const |
Return number of components of the base type of a given field.
Definition at line 56 of file DMDModel.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and Foam::nl.
Get the number of components of the base type of a given field.
Definition at line 34 of file DMDModelTemplates.C.
References objectRegistry::foundObject(), and DMDModel::mesh_.
|
pure virtual |
|
protected |
Reference to the mesh.
Definition at line 78 of file DMDModel.H.
Referenced by DMDModel::nComponents().
|
protected |
Name of operand function object.
Definition at line 81 of file DMDModel.H.