Abstract Base Class of a probe.
More...
#include <probes.h>
|
virtual PetscErrorCode | init (const MPI_Comm &comm, const YAML::Node &node, const type::Mesh &mesh)=0 |
| Initialize the probe. More...
|
|
virtual PetscErrorCode | monitorVec (const DM &da, const Vec &fvec, const PetscInt &n, const PetscReal &t)=0 |
| Monitor a sub-region of a vector and possibly output data to file. More...
|
|
◆ ProbeBase() [1/2]
petibm::misc::ProbeBase::ProbeBase |
( |
| ) |
|
|
default |
◆ ProbeBase() [2/2]
petibm::misc::ProbeBase::ProbeBase |
( |
const MPI_Comm & |
comm, |
|
|
const YAML::Node & |
node, |
|
|
const type::Mesh & |
mesh |
|
) |
| |
Constructor. Initialize the probe.
- Parameters
-
comm | [in] MPI communicator |
node | [in] YAML configuration node |
◆ ~ProbeBase()
petibm::misc::ProbeBase::~ProbeBase |
( |
| ) |
|
|
virtual |
◆ destroy()
PetscErrorCode petibm::misc::ProbeBase::destroy |
( |
| ) |
|
|
virtual |
◆ init()
PetscErrorCode petibm::misc::ProbeBase::init |
( |
const MPI_Comm & |
comm, |
|
|
const YAML::Node & |
node, |
|
|
const type::Mesh & |
mesh |
|
) |
| |
|
protectedpure virtual |
◆ monitor()
PetscErrorCode petibm::misc::ProbeBase::monitor |
( |
const type::Solution & |
solution, |
|
|
const type::Mesh & |
mesh, |
|
|
const PetscInt & |
n, |
|
|
const PetscReal & |
t |
|
) |
| |
Monitor the field solution and output data to file.
- Parameters
-
solution | [in] Data object with the field solutions |
mesh | [in] Cartesian mesh object |
n | [in] Time-step index |
t | [in] Time |
- Returns
- PetscErrorCode
Definition at line 114 of file probes.cpp.
◆ monitorVec()
virtual PetscErrorCode petibm::misc::ProbeBase::monitorVec |
( |
const DM & |
da, |
|
|
const Vec & |
fvec, |
|
|
const PetscInt & |
n, |
|
|
const PetscReal & |
t |
|
) |
| |
|
protectedpure virtual |
Monitor a sub-region of a vector and possibly output data to file.
- Parameters
-
da | [in] Parallel layout of the full-domain vector |
fvec | [in] Full-domain PETSc Vec object to monitor |
n | [in] Time-step index |
t | [in] Time |
Implemented in petibm::misc::ProbeVolume, and petibm::misc::ProbePoint.
◆ comm
MPI_Comm petibm::misc::ProbeBase::comm |
|
protected |
MPI communicator.
Definition at line 90 of file probes.h.
◆ commRank
PetscMPIInt petibm::misc::ProbeBase::commRank |
|
protected |
Rank of the local process in the MPI communicator.
Definition at line 96 of file probes.h.
◆ commSize
PetscMPIInt petibm::misc::ProbeBase::commSize |
|
protected |
Number of processes in the MPI communicator.
Definition at line 93 of file probes.h.
◆ field
Type of the field to monitor.
Definition at line 72 of file probes.h.
◆ n_monitor
PetscInt petibm::misc::ProbeBase::n_monitor |
|
protected |
Frequency of monitoring the solution (number of time steps).
Definition at line 75 of file probes.h.
◆ name
std::string petibm::misc::ProbeBase::name |
|
protected |
Name of the probe as a string.
Definition at line 66 of file probes.h.
◆ path
std::string petibm::misc::ProbeBase::path |
|
protected |
Path of the file to output the solution.
Definition at line 69 of file probes.h.
◆ t_end
PetscReal petibm::misc::ProbeBase::t_end |
|
protected |
Monitoring ending time.
Definition at line 81 of file probes.h.
◆ t_start
PetscReal petibm::misc::ProbeBase::t_start |
|
protected |
Monitoring starting time.
Definition at line 78 of file probes.h.
◆ viewer
PetscViewer petibm::misc::ProbeBase::viewer |
|
protected |
PETSc viewer to output the solution.
Definition at line 84 of file probes.h.
◆ viewerType
PetscViewerType petibm::misc::ProbeBase::viewerType |
|
protected |
Type of the PETSc viewer to use.
Definition at line 87 of file probes.h.
The documentation for this class was generated from the following files: