Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shammath::FluidStateDust< VecType > Struct Template Reference

cons_to_prim/prim_to_cons/vn/flux wrapper for a pressureless (dust) fluid. Unlike FluidStateAdiabatic there is no equation of state, so sound_speed() and gamma() are not defined here; this type satisfies DustFluidStateSpec rather than FluidStateSpec. More...

#include <shammath/include/shammath/riemann_common.hpp>

Public Types

using Tvec = VecType
using Tscal = shambase::VecComponent<Tvec>
using Tprim = DustPrimState<Tvec>
using Tcons = DustConsState<Tvec>

Public Member Functions

Tprim cons_to_prim (Tcons c) const
Tcons prim_to_cons (Tprim p) const
Tscal vn (Tprim p, Tvec n) const
Tcons flux (Tprim p, Tvec n, Tscal vn) const
Tcons flux (Tprim p, Tvec n) const

Detailed Description

template<class VecType>
struct shammath::FluidStateDust< VecType >

cons_to_prim/prim_to_cons/vn/flux wrapper for a pressureless (dust) fluid. Unlike FluidStateAdiabatic there is no equation of state, so sound_speed() and gamma() are not defined here; this type satisfies DustFluidStateSpec rather than FluidStateSpec.

Definition at line 613 of file riemann_common.hpp.

Member Typedef Documentation

◆ Tcons

template<class VecType>
using shammath::FluidStateDust< VecType >::Tcons = DustConsState<Tvec>

Definition at line 617 of file riemann_common.hpp.

◆ Tprim

template<class VecType>
using shammath::FluidStateDust< VecType >::Tprim = DustPrimState<Tvec>

Definition at line 616 of file riemann_common.hpp.

◆ Tscal

template<class VecType>
using shammath::FluidStateDust< VecType >::Tscal = shambase::VecComponent<Tvec>

Definition at line 615 of file riemann_common.hpp.

◆ Tvec

template<class VecType>
using shammath::FluidStateDust< VecType >::Tvec = VecType

Definition at line 614 of file riemann_common.hpp.

Member Function Documentation

◆ cons_to_prim()

template<class VecType>
Tprim shammath::FluidStateDust< VecType >::cons_to_prim ( Tcons c) const
inline

Definition at line 619 of file riemann_common.hpp.

◆ flux() [1/2]

template<class VecType>
Tcons shammath::FluidStateDust< VecType >::flux ( Tprim p,
Tvec n ) const
inline

Definition at line 623 of file riemann_common.hpp.

◆ flux() [2/2]

template<class VecType>
Tcons shammath::FluidStateDust< VecType >::flux ( Tprim p,
Tvec n,
Tscal vn ) const
inline

Definition at line 622 of file riemann_common.hpp.

◆ prim_to_cons()

template<class VecType>
Tcons shammath::FluidStateDust< VecType >::prim_to_cons ( Tprim p) const
inline

Definition at line 620 of file riemann_common.hpp.

◆ vn()

template<class VecType>
Tscal shammath::FluidStateDust< VecType >::vn ( Tprim p,
Tvec n ) const
inline

Definition at line 621 of file riemann_common.hpp.


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