ryujin 2.1.1 revision 9391072059490dd712e0ea92785f21acd6605f00
List of all members
ryujin::InitialValues< Description, dim, Number > Class Template Reference

#include <source/initial_values.h>

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

Public Member Functions

Interpolate initial states
 InitialValues (const HyperbolicSystem &hyperbolic_system, const OfflineData< dim, Number > &offline_data, const std::string &subsection="/InitialValues")
 
void parse_parameters_callback ()
 
DEAL_II_ALWAYS_INLINE state_type initial_state (const dealii::Point< dim > &point, Number t) const
 
DEAL_II_ALWAYS_INLINE initial_precomputed_type initial_precomputed (const dealii::Point< dim > &point) const
 
HyperbolicVector interpolate_hyperbolic_vector (Number t=0) const
 
InitialPrecomputedVector interpolate_initial_precomputed_vector () const
 

Typedefs and constexpr constants

using HyperbolicSystem = typename Description::HyperbolicSystem
 
using View = typename Description::template HyperbolicSystemView< dim, Number >
 
using state_type = typename View::state_type
 
using initial_precomputed_type = typename View::initial_precomputed_type
 
using HyperbolicVector = typename View::HyperbolicVector
 
using InitialPrecomputedVector = typename View::InitialPrecomputedVector
 
static constexpr auto problem_dimension = View::problem_dimension
 
static constexpr auto n_initial_precomputed_values
 

Detailed Description

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

A class implementing a number of different initial value configurations.

Given a position point the member function InitialValues::initial_state() returns the corresponding (conserved) initial state. The function is used to interpolate initial values and enforce Dirichlet boundary conditions. For the latter, the the function signature has an additional parameter t denoting the current time to allow for time-dependent (in-flow) Dirichlet data.

For validation purposes a number of analytic solutions are implemented as well.

Definition at line 37 of file initial_values.h.

Member Typedef Documentation

◆ HyperbolicSystem

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::HyperbolicSystem = typename Description::HyperbolicSystem

Definition at line 44 of file initial_values.h.

◆ View

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::View = typename Description::template HyperbolicSystemView<dim, Number>

Definition at line 46 of file initial_values.h.

◆ state_type

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::state_type = typename View::state_type

Definition at line 51 of file initial_values.h.

◆ initial_precomputed_type

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::initial_precomputed_type = typename View::initial_precomputed_type

Definition at line 56 of file initial_values.h.

◆ HyperbolicVector

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::HyperbolicVector = typename View::HyperbolicVector

Definition at line 58 of file initial_values.h.

◆ InitialPrecomputedVector

template<typename Description , int dim, typename Number = double>
using ryujin::InitialValues< Description, dim, Number >::InitialPrecomputedVector = typename View::InitialPrecomputedVector

Definition at line 60 of file initial_values.h.

Constructor & Destructor Documentation

◆ InitialValues()

template<typename Description , int dim, typename Number >
ryujin::InitialValues< Description, dim, Number >::InitialValues ( const HyperbolicSystem hyperbolic_system,
const OfflineData< dim, Number > &  offline_data,
const std::string &  subsection = "/InitialValues< Description, dim, Number >" 
)

Member Function Documentation

◆ parse_parameters_callback()

template<typename Description , int dim, typename Number >
void ryujin::InitialValues< Description, dim, Number >::parse_parameters_callback

Callback for ParameterAcceptor::initialize(). After we read in configuration parameters from the parameter file we have to do some (minor) preparatory work in this class to precompute some initial state values. Do this with a callback.

Definition at line 154 of file initial_values.template.h.

◆ initial_state()

template<typename Description , int dim, typename Number = double>
DEAL_II_ALWAYS_INLINE state_type ryujin::InitialValues< Description, dim, Number >::initial_state ( const dealii::Point< dim > &  point,
Number  t 
) const
inline

Given a position point returns the corresponding (conserved) initial state. The function is used to interpolate initial values and enforce Dirichlet boundary conditions. For the latter, the the function signature has an additional parameter t denoting the current time to allow for time-dependent (in-flow) Dirichlet data.

Definition at line 93 of file initial_values.h.

◆ initial_precomputed()

template<typename Description , int dim, typename Number = double>
DEAL_II_ALWAYS_INLINE initial_precomputed_type ryujin::InitialValues< Description, dim, Number >::initial_precomputed ( const dealii::Point< dim > &  point) const
inline

Given a position point returns the corresponding (conserved) initial state. The function is used to interpolate initial values and enforce Dirichlet boundary conditions. For the latter, the the function signature has an additional parameter t denoting the current time to allow for time-dependent (in-flow) Dirichlet data.

Definition at line 107 of file initial_values.h.

◆ interpolate_hyperbolic_vector()

template<typename Description , int dim, typename Number >
auto ryujin::InitialValues< Description, dim, Number >::interpolate_hyperbolic_vector ( Number  t = 0) const

This routine computes and returns a state vector populated with initial values for a specified time t.

Definition at line 223 of file initial_values.template.h.

◆ interpolate_initial_precomputed_vector()

template<typename Description , int dim, typename Number >
auto ryujin::InitialValues< Description, dim, Number >::interpolate_initial_precomputed_vector

This routine computes and returns a state vector populated with initial values for a specified time t.

Definition at line 271 of file initial_values.template.h.

Member Data Documentation

◆ problem_dimension

template<typename Description , int dim, typename Number = double>
constexpr auto ryujin::InitialValues< Description, dim, Number >::problem_dimension = View::problem_dimension
staticconstexpr

Definition at line 49 of file initial_values.h.

◆ n_initial_precomputed_values

template<typename Description , int dim, typename Number = double>
constexpr auto ryujin::InitialValues< Description, dim, Number >::n_initial_precomputed_values
staticconstexpr
Initial value:
=
View::n_initial_precomputed_values

Definition at line 53 of file initial_values.h.


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