ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
|
#include <source/quantities.h>
Public Types | |
Typedefs and constexpr constants | |
using | HyperbolicSystem = typename Description::HyperbolicSystem |
using | ParabolicSystem = typename Description::ParabolicSystem |
using | View = typename Description::template HyperbolicSystemView< dim, Number > |
using | state_type = typename View::state_type |
using | StateVector = typename View::StateVector |
Public Member Functions | |
Constructor and setup | |
Quantities (const MPIEnsemble &mpi_ensemble, const OfflineData< dim, Number > &offline_data, const HyperbolicSystem &hyperbolic_system, const ParabolicSystem ¶bolic_system, const std::string &subsection="/Quantities") | |
void | prepare (const std::string &name) |
void | accumulate (const StateVector &state_vector, const Number t) |
void | write_out (const StateVector &state_vector, const Number t, unsigned int cycle) |
A postprocessor class for quantities of interest.
Definition at line 30 of file quantities.h.
using ryujin::Quantities< Description, dim, Number >::HyperbolicSystem = typename Description::HyperbolicSystem |
Definition at line 38 of file quantities.h.
using ryujin::Quantities< Description, dim, Number >::ParabolicSystem = typename Description::ParabolicSystem |
Definition at line 39 of file quantities.h.
using ryujin::Quantities< Description, dim, Number >::View = typename Description::template HyperbolicSystemView<dim, Number> |
Definition at line 41 of file quantities.h.
using ryujin::Quantities< Description, dim, Number >::state_type = typename View::state_type |
Definition at line 44 of file quantities.h.
using ryujin::Quantities< Description, dim, Number >::StateVector = typename View::StateVector |
Definition at line 46 of file quantities.h.
ryujin::Quantities< Description, dim, Number >::Quantities | ( | const MPIEnsemble & | mpi_ensemble, |
const OfflineData< dim, Number > & | offline_data, | ||
const HyperbolicSystem & | hyperbolic_system, | ||
const ParabolicSystem & | parabolic_system, | ||
const std::string & | subsection = "/Quantities< Description, dim, Number >" |
||
) |
Constructor.
Definition at line 51 of file quantities.template.h.
void ryujin::Quantities< Description, dim, Number >::prepare | ( | const std::string & | name | ) |
Prepare evaluation. A call to prepare() allocates temporary storage and is necessary before accumulate() and write_out() can be called.
Calling prepare() allocates temporary storage for various boundary and interior maps. The storage requirement varies according to the supplied manifold descriptions.
The string parameter name
is used as base name for output files.
Definition at line 91 of file quantities.template.h.
void ryujin::Quantities< Description, dim, Number >::accumulate | ( | const StateVector & | state_vector, |
const Number | t | ||
) |
Takes a state vector U
at time t (obtained at the end of a full Strang step) and accumulates statistics for quantities of interests for all defined manifolds.
Definition at line 501 of file quantities.template.h.
References RYUJIN_UNLIKELY.
void ryujin::Quantities< Description, dim, Number >::write_out | ( | const StateVector & | state_vector, |
const Number | t, | ||
unsigned int | cycle | ||
) |
Write quantities of interest to designated output files.
Definition at line 572 of file quantities.template.h.