ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
Loading...
Searching...
No Matches
List of all members
ryujin::VTUOutput< dim, Number > Class Template Referencefinal

#include <include/ryujin/output/vtu_output.h>

Inheritance diagram for ryujin::VTUOutput< dim, Number >:
Inheritance graph
[legend]
Collaboration diagram for ryujin::VTUOutput< dim, Number >:
Collaboration graph
[legend]

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)
 

Detailed Description

template<int dim, typename Number = double>
class ryujin::VTUOutput< dim, Number >

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.

Constructor & Destructor Documentation

◆ VTUOutput()

template<int dim, typename Number = double>
ryujin::VTUOutput< dim, Number >::VTUOutput ( const Interface::Simulation< dim, Number > &  simulation,
bool  levelsets = false,
const std::string &  subsection = "/VTUOutput< dim, Number >" 
)

Constructor.

Member Function Documentation

◆ prepare()

template<int dim, typename Number = double>
void ryujin::VTUOutput< dim, Number >::prepare ( TaskContext< Number > &  context)
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 >.

◆ execute()

template<int dim, typename Number = double>
void ryujin::VTUOutput< dim, Number >::execute ( TaskContext< Number > &  context)
overridevirtual

Write out the solution (and the analytic solution) whenever the trigger fires.

Implements ryujin::Interface::Task< Number >.


The documentation for this class was generated from the following file: