#include <fieldMonitor.hpp>
Public Member Functions | |
const std::string & | GetId () const override |
void | Register (std::shared_ptr< solver::Solver > solverIn) override |
void | Register (std::string id, std::shared_ptr< solver::Solver > solverIn, std::vector< std::shared_ptr< domain::FieldDescriptor >> fields) |
PetscErrorCode | Save (PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override |
PetscErrorCode | Restore (PetscViewer viewer, PetscInt sequenceNumber, PetscReal time) override |
Public Member Functions inherited from ablate::monitors::Monitor | |
virtual PetscMonitorFunction | GetPetscFunction () |
virtual void * | GetContext () |
Public Member Functions inherited from ablate::io::Serializable | |
virtual SerializerType | Serialize () const |
Protected Attributes | |
std::shared_ptr< ablate::domain::SubDomain > | monitorSubDomain = nullptr |
Additional Inherited Members | |
Public Types inherited from ablate::io::Serializable | |
enum class | SerializerType { none , collective , serial } |
Protected Member Functions inherited from ablate::monitors::Monitor | |
std::shared_ptr< solver::Solver > | GetSolver () |
Static Protected Member Functions inherited from ablate::io::Serializable | |
static PetscErrorCode | SaveKeyValue (PetscViewer viewer, const char *name, PetscScalar value) |
static PetscErrorCode | RestoreKeyValue (PetscViewer viewer, const char *name, PetscScalar &value) |
template<class T > | |
static PetscErrorCode | SaveKeyValue (PetscViewer viewer, const char *name, T value) |
template<class T > | |
static PetscErrorCode | RestoreKeyValue (PetscViewer viewer, const char *name, T &value) |
template<class T > | |
static SerializerType | DetermineSerializerType (const T &types) |
An abstract class that provides support for creating, writing, and outputting new fields
|
inlineoverridevirtual |
only required function, returns the id of the object. Should be unique for the simulation
Implements ablate::io::Serializable.
|
inlineoverridevirtual |
In order to use the base class, the Register call must be overridden and Register(std::shared_ptr<solver::Solver> solverIn, std::vector<domain::FieldDescription> fields) must be called from the method
solverIn |
Reimplemented from ablate::monitors::Monitor.
Reimplemented in ablate::monitors::MixtureFractionMonitor.
void ablate::monitors::FieldMonitor::Register | ( | std::string | id, |
std::shared_ptr< solver::Solver > | solverIn, | ||
std::vector< std::shared_ptr< domain::FieldDescriptor >> | fields | ||
) |
In order to use the base class, the Register call must be overridden and
solverIn |
|
overridevirtual |
Restore the state from the PetscViewer
viewer | |
sequenceNumber | |
time |
Implements ablate::io::Serializable.
Reimplemented in ablate::monitors::TurbFlowStats.
|
overridevirtual |
Save the state to the PetscViewer
viewer | |
sequenceNumber | |
time |
Implements ablate::io::Serializable.
Reimplemented in ablate::monitors::TurbFlowStats, ablate::monitors::RadiationFieldMonitor, and ablate::monitors::MixtureFractionMonitor.