Base class for models with state. More...

Public Member Functions | |
| stateModel () | |
| Construct null. More... | |
| stateModel (const stateModel &)=delete | |
| Disallow default bitwise copy construction. More... | |
| virtual | ~stateModel () |
| Destructor. More... | |
| virtual const word & | name () const =0 |
| Return the model name. More... | |
| virtual const objectRegistry & | db () const =0 |
| Return the model's database. More... | |
| bool | writeState (const bool write) const |
| Write state. More... | |
| virtual void | writeState (Ostream &os) const |
| Write state. More... | |
| virtual void | writeProcessorState (Ostream &os) const |
| Write processor state. More... | |
| void | operator= (const stateModel &)=delete |
| Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
| static dictionary | stateDict (const word &name, const objectRegistry &db) |
| Construct and return the state dictionary for reading. More... | |
| stateModel | ( | ) |
Construct null.
Definition at line 76 of file stateModel.C.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 82 of file stateModel.C.
|
pure virtual |
Return the model name.
Implemented in LagrangianModel.
|
pure virtual |
Return the model's database.
Implemented in LagrangianModel.
| bool writeState | ( | const bool | write | ) | const |
Write state.
Definition at line 104 of file stateModel.C.
References UPstream::parRun(), and Foam::vtkWriteOps::write().
Referenced by diskInjection::writeState(), patchInjection::writeState(), pointInjection::writeState(), and volumeInjection::writeState().


|
virtual |
Write state.
Reimplemented in volumeInjection, pointInjection, patchInjection, and diskInjection.
Definition at line 128 of file stateModel.C.
|
virtual |
Write processor state.
Reimplemented in volumeInjection, turbulentDispersion, and patchInjection.
Definition at line 132 of file stateModel.C.
Referenced by patchInjection::writeProcessorState(), turbulentDispersion::writeProcessorState(), and volumeInjection::writeProcessorState().

|
static |
Construct and return the state dictionary for reading.
Definition at line 136 of file stateModel.C.
References dictionary::merge(), Foam::name(), and UPstream::parRun().

|
delete |
Disallow default bitwise assignment.