![]() |
ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
|
#include <include/ryujin/output/vtu_output.h>


Public Member Functions | |
Constructor and setup | |
| VTUOutput (const Interface::Simulation< dim, Number > &simulation, bool levelsets=false, const std::string &subsection="/VTUOutput") | |
Task | |
| void | prepare (TaskContext< Number > &context) override |
| void | execute (TaskContext< Number > &context) override |
Public Member Functions inherited from ryujin::Interface::Task< Number > | |
| virtual | ~Task ()=default |
| virtual void | initialize (TaskContext< Number > &) |
| virtual void | start (TaskContext< Number > &) |
| virtual void | finalize (TaskContext< Number > &) |
| virtual void | save (boost::archive::binary_oarchive &) const |
| virtual void | load (boost::archive::binary_iarchive &) |
Additional Inherited Members | |
Protected Member Functions inherited from ryujin::Interface::Task< Number > | |
| Task (const std::string &name, TaskPhase phase) | |
The VTUOutput class implements output of a selection of components of the state vector and of postprocessed quantities.
The postprocessed quantities, "schlieren_<name>" and "vorticity_<name>" (see Postprocessor), are scaled and normalized for visualization as follows:
\[ \text{quantity}[i] = 1 - \exp\left(-\beta \frac{ |q_i| - \min_k |q_k|}{\max_k |q_k| - \min_k |q_k|}\right). \]
The class is the task "vtu output" that writes out full vtu records of the solution, or, if constructed with levelsets set to true, the task "vtu levelsets" that writes out the cells intersecting the given "manifolds". In both cases the analytic solution can be written out in addition.
Definition at line 45 of file vtu_output.h.
| ryujin::VTUOutput< dim, Number >::VTUOutput | ( | const Interface::Simulation< dim, Number > & | simulation, |
| bool | levelsets = false, |
||
| const std::string & | subsection = "/VTUOutput< dim, Number >" |
||
| ) |
Constructor.
|
overridevirtual |
Prepare VTU output for the current mesh: allocate temporary storage for additional (dim + 5) scalar vectors of type OfflineData::scalar_type.
Reimplemented from ryujin::Interface::Task< Number >.
|
overridevirtual |
Write out the solution (and the analytic solution) whenever the trigger fires.
Implements ryujin::Interface::Task< Number >.