PrimitiveVariablesPostProcessor< dim, number, View > Class Template Reference

Developer Documentation: MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View > Class Template Reference
Developer Documentation
MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View > Class Template Reference

#include <output_post_processor.hpp>

Inheritance diagram for MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >:
[legend]
Collaboration diagram for MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >:
[legend]

Public Member Functions

 PrimitiveVariablesPostProcessor (const std::function< View(typename View::state_type &)> &view_creator)
 
std::vector< std::string > get_names () const override
 
std::vector< dealii::DataComponentInterpretation::DataComponentInterpretation > get_data_component_interpretation () const override
 
dealii::UpdateFlags get_needed_update_flags () const override
 
void evaluate_vector_field (const dealii::DataPostprocessorInputs::Vector< dim > &inputs, std::vector< dealii::Vector< number > > &computed_quantities) const override
 

Public Attributes

const std::function< View(typename View::state_type &)> view_creator
 

Private Types

enum class  PrimitiveVariablesIndex : unsigned int { velocity = 0 , pressure = dim , temperature }
 

Static Private Attributes

static constexpr unsigned int n_primitive_variables = dim + 2
 

Detailed Description

template<int dim, typename number, IsPrimitiveView View>
requires requires { typename View::state_type; }
class MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >

Post-processor for computing primitive variables. The computation of these variables is defined by the provided view and might involve computations based on the conserved variables in the solution vector. The post-processor can directly interact with the deal.II data post-processing framework and can be attached to a GenericDataOut object for output generation.

Member Enumeration Documentation

◆ PrimitiveVariablesIndex

template<int dim, typename number , IsPrimitiveView View>
enum class MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor::PrimitiveVariablesIndex : unsigned int
strongprivate
Enumerator
velocity 
pressure 
temperature 

Constructor & Destructor Documentation

◆ PrimitiveVariablesPostProcessor()

template<int dim, typename number , IsPrimitiveView View>
MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::PrimitiveVariablesPostProcessor ( const std::function< View(typename View::state_type &)> &  view_creator)
inline

Constructor for the primitive variables post-processor.

Parameters
view_creatorA function that defines how to construct the view for computing the primitive variables based on the solution values at a specified node. The function should take a reference to the state type defined by the view and return an instance of the view.

Member Function Documentation

◆ evaluate_vector_field()

template<int dim, typename number , IsPrimitiveView View>
void MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::evaluate_vector_field ( const dealii::DataPostprocessorInputs::Vector< dim > &  inputs,
std::vector< dealii::Vector< number > > &  computed_quantities 
) const
inlineoverride

Based on the provided solution values, compute the primitive variables and store them in the computed_quantities vector. The computation of the primitive variables is defined by the provided view.

Parameters
inputsThe input data containing solution values at the evaluation points.
computed_quantitiesThe vector where the computed primitive variables will be stored. Each entry corresponds to an evaluation point and should be filled with the primitive variable values in the order defined by get_names().

◆ get_data_component_interpretation()

template<int dim, typename number , IsPrimitiveView View>
std::vector< dealii::DataComponentInterpretation::DataComponentInterpretation > MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::get_data_component_interpretation ( ) const
inlineoverride

◆ get_names()

template<int dim, typename number , IsPrimitiveView View>
std::vector< std::string > MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::get_names ( ) const
inlineoverride

◆ get_needed_update_flags()

template<int dim, typename number , IsPrimitiveView View>
dealii::UpdateFlags MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::get_needed_update_flags ( ) const
inlineoverride

Member Data Documentation

◆ n_primitive_variables

template<int dim, typename number , IsPrimitiveView View>
constexpr unsigned int MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::n_primitive_variables = dim + 2
staticconstexprprivate

◆ view_creator

template<int dim, typename number , IsPrimitiveView View>
const std::function<View(typename View::state_type &)> MeltPoolDG::CompressibleFlow::PrimitiveVariablesPostProcessor< dim, number, View >::view_creator

Function defining how to construct the view for computing the primitive variables based on the solution values at a specified node.


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