Alsvinn  0.5.3
The fast FVM simulator with UQ support
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
alsfvm::equation::euler::ConservedVariables< nsd > Class Template Reference

#include <alsfvm/equation/euler/ConservedVariables.hpp>

Inheritance diagram for alsfvm::equation::euler::ConservedVariables< nsd >:
alsfvm::equation::euler::AllVariables< nsd >

Public Types

typedef Types< nsd >::rvec rvec
 
typedef Types< nsd+2 >::rvec state_vector
 

Public Member Functions

__device__ __host__ ConservedVariables ()
 
template<class ValueType >
__device__ __host__ ConservedVariables (real rho_, const typename Types< nsd >::template vec< ValueType > &m_, real E_)
 
template<class T >
__device__ __host__ ConservedVariables (T rho_, T mx, T my, T mz, T E)
 
template<class T >
__device__ __host__ ConservedVariables (T rho_, T mx, T my, T E)
 
template<class T >
__device__ __host__ ConservedVariables (T rho_, T mx, T E)
 
__device__ __host__ ConservedVariables (const state_vector &in)
 
__device__ __host__ real operator[] (size_t index) const
 
__device__ __host__ realoperator[] (size_t index)
 
__device__ __host__ bool operator== (const ConservedVariables &other) const
 
template<>
__device__ __host__ ConservedVariables (const rvec5 &in)
 
template<>
__device__ __host__ ConservedVariables (const rvec4 &in)
 
template<>
__device__ __host__ ConservedVariables (const rvec3 &in)
 

Static Public Member Functions

__device__ static __host__ constexpr size_t size ()
 

Public Attributes

real rho
 
rvec m
 
real E
 

Detailed Description

template<int nsd>
class alsfvm::equation::euler::ConservedVariables< nsd >

The holder struct for all relevant variables for the euler flux These are supposed to be the conserved variables

Member Typedef Documentation

◆ rvec

template<int nsd>
typedef Types<nsd>::rvec alsfvm::equation::euler::ConservedVariables< nsd >::rvec

◆ state_vector

template<int nsd>
typedef Types< nsd + 2 >::rvec alsfvm::equation::euler::ConservedVariables< nsd >::state_vector

Constructor & Destructor Documentation

◆ ConservedVariables() [1/9]

◆ ConservedVariables() [2/9]

template<int nsd>
template<class ValueType >
__device__ __host__ alsfvm::equation::euler::ConservedVariables< nsd >::ConservedVariables ( real  rho_,
const typename Types< nsd >::template vec< ValueType > &  m_,
real  E_ 
)
inline

◆ ConservedVariables() [3/9]

template<int nsd>
template<class T >
__device__ __host__ alsfvm::equation::euler::ConservedVariables< nsd >::ConservedVariables ( rho_,
mx,
my,
mz,
E 
)
inline

◆ ConservedVariables() [4/9]

template<int nsd>
template<class T >
__device__ __host__ alsfvm::equation::euler::ConservedVariables< nsd >::ConservedVariables ( rho_,
mx,
my,
E 
)
inline

◆ ConservedVariables() [5/9]

template<int nsd>
template<class T >
__device__ __host__ alsfvm::equation::euler::ConservedVariables< nsd >::ConservedVariables ( rho_,
mx,
E 
)
inline

◆ ConservedVariables() [6/9]

◆ ConservedVariables() [7/9]

◆ ConservedVariables() [8/9]

◆ ConservedVariables() [9/9]

Member Function Documentation

◆ operator==()

template<int nsd>
__device__ __host__ bool alsfvm::equation::euler::ConservedVariables< nsd >::operator== ( const ConservedVariables< nsd > &  other) const
inline

◆ operator[]() [1/2]

template<int nsd>
__device__ __host__ real alsfvm::equation::euler::ConservedVariables< nsd >::operator[] ( size_t  index) const
inline

◆ operator[]() [2/2]

template<int nsd>
__device__ __host__ real& alsfvm::equation::euler::ConservedVariables< nsd >::operator[] ( size_t  index)
inline

◆ size()

template<int nsd>
__device__ static __host__ constexpr size_t alsfvm::equation::euler::ConservedVariables< nsd >::size ( )
inlinestatic

Member Data Documentation

◆ E

◆ m

◆ rho

template<int nsd>
real alsfvm::equation::euler::ConservedVariables< nsd >::rho

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