Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Public Types | Public Member Functions | List of all members
smith::ParaviewWriter Class Reference

Class which interactions with ParaViewDataCollection to write arbitrary field results to disk. This allows output independent of a particular BasePhysics. More...

#include <paraview_writer.hpp>

Public Types

using StateVecs = std::vector< std::shared_ptr< FiniteElementState > >
 using
 

Public Member Functions

 ParaviewWriter (std::unique_ptr< mfem::ParaViewDataCollection > pv_, const StateVecs &states_, const StateVecs &duals_)
 
void write (size_t step, double time, const std::vector< const FiniteElementState * > &current_states)
 write paraview output from vector of finite element states. states must be passed in with a consistent order as how the ParaviewWriter was constructed (consistent order of spaces)
 
void write (size_t step, double time, const std::vector< const FiniteElementDual * > &current_duals)
 write paraview output from vector of finite element duals. duals must be passed in with a consistent order as how the ParaviewWriter was constructed (consistent order of spaces)
 
void write (int step, double time, const std::vector< FieldState > &current_fields)
 write paraview output from vector of FieldState. These must be passed in with a consistent order as how the ParaviewWriter was constructed (consistent order of spaces). Both the field, and its dual/reaction will be written.
 
void write (size_t step, double time, const std::vector< FieldState > &current_fields)
 overload
 

Detailed Description

Class which interactions with ParaViewDataCollection to write arbitrary field results to disk. This allows output independent of a particular BasePhysics.

Definition at line 25 of file paraview_writer.hpp.

Constructor & Destructor Documentation

◆ ParaviewWriter()

smith::ParaviewWriter::ParaviewWriter ( std::unique_ptr< mfem::ParaViewDataCollection >  pv_,
const StateVecs states_,
const StateVecs duals_ 
)
inline

Construct from ParaViewDataCollection, a vector of shared_ptr to FiniteElementState, and vector of shared_ptr to FiniteElementState which dual fields will be copied into.

Definition at line 31 of file paraview_writer.hpp.


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