ryujin 2.5.0 revision 3a6c8d57210175dea14d8116e1fe878f349f8c1c
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ryujin::Interface::HyperbolicSystem Class Reference

#include <include/ryujin/interface/hyperbolic_system.h>

Inheritance diagram for ryujin::Interface::HyperbolicSystem:
Inheritance graph
[legend]
Collaboration diagram for ryujin::Interface::HyperbolicSystem:
Collaboration graph
[legend]

Public Member Functions

const std::vector< std::string > & primitive_names (const unsigned int dim) const
 
const std::vector< std::string > & initial_precomputed_names (const unsigned int dim) const
 
- Public Member Functions inherited from ryujin::Interface::System
const std::vector< std::string > & state_names (const unsigned int dim) const
 
const std::vector< std::string > & precomputed_names (const unsigned int dim) const
 

Protected Member Functions

 HyperbolicSystem (const std::string &problem_name, const Names &state_names, const Names &primitive_names, const Names &precomputed_names, const Names &initial_precomputed_names, const std::string &subsection)
 
- Protected Member Functions inherited from ryujin::Interface::System
 System (const std::string &problem_name, const Names &state_names, const Names &precomputed_names, const std::string &subsection)
 

Protected Attributes

Names primitive_names_
 
Names initial_precomputed_names_
 
- Protected Attributes inherited from ryujin::Interface::System
std::string problem_name_
 
Names state_names_
 
Names precomputed_names_
 

Additional Inherited Members

- Public Types inherited from ryujin::Interface::System
using Names = std::array< std::vector< std::string >, 3 >
 

Detailed Description

The description-free part of a hyperbolic system: its name and the names of its components.

The first View<dim>::problem_dimension state names and the first View<dim>::n_precomputed_values precomputed names are static: they are stored interleaved in StateVector::state and StateVector::precomputed. All remaining names are dynamic: they are stored as scalar vectors in StateVector::dynamic_state and StateVector::dynamic_precomputed.

The primitive names (View<dim>::problem_dimension entries) name the primitive state returned by View::to_primitive_state(), and the initial precomputed names (View<dim>::n_initial_precomputed_values entries) name the time-independent initial precomputed values.

Definition at line 38 of file hyperbolic_system.h.

Constructor & Destructor Documentation

◆ HyperbolicSystem()

ryujin::Interface::HyperbolicSystem::HyperbolicSystem ( const std::string &  problem_name,
const Names &  state_names,
const Names &  primitive_names,
const Names &  precomputed_names,
const Names &  initial_precomputed_names,
const std::string &  subsection 
)
inlineprotected

Constructor.

Definition at line 72 of file hyperbolic_system.h.

Member Function Documentation

◆ primitive_names()

const std::vector< std::string > & ryujin::Interface::HyperbolicSystem::primitive_names ( const unsigned int  dim) const
inline

The names of the primitive state components for dimension dim.

Note
Valid once the run time parameters are parsed.

Definition at line 47 of file hyperbolic_system.h.

References primitive_names_.

◆ initial_precomputed_names()

const std::vector< std::string > & ryujin::Interface::HyperbolicSystem::initial_precomputed_names ( const unsigned int  dim) const
inline

The names of the initial precomputed values for dimension dim.

Initial precomputed values are time-independent and stored outside of the state vector.

Note
Valid once the run time parameters are parsed.

Definition at line 62 of file hyperbolic_system.h.

References initial_precomputed_names_.

Member Data Documentation

◆ primitive_names_

Names ryujin::Interface::HyperbolicSystem::primitive_names_
protected

The names of the primitive state components for every dimension.

Note
A derived class may update them once the run time parameters are known.

Definition at line 90 of file hyperbolic_system.h.

Referenced by primitive_names().

◆ initial_precomputed_names_

Names ryujin::Interface::HyperbolicSystem::initial_precomputed_names_
protected

The names of the initial precomputed values for every dimension.

Note
A derived class may update them once the run time parameters are known.

Definition at line 98 of file hyperbolic_system.h.

Referenced by initial_precomputed_names().


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