Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
Euler Struct Reference

Calorically perfect gas, inviscid (Euler) or viscous and heat conducting (Navier-Stokes, Stokes hypothesis, constant Prandtl number). More...

#include <physics.h>

Public Member Functions

logging::Items summary () const
 Display lines for the run log.
 
KOKKOS_INLINE_FUNCTION PhysicsType get_type () const
 
KOKKOS_INLINE_FUNCTION bool is_viscous () const
 
KOKKOS_INLINE_FUNCTION rtype viscosity (const rtype T) const
 Dynamic viscosity at temperature T.
 
KOKKOS_INLINE_FUNCTION rtype conductivity (const rtype mu) const
 Thermal conductivity for dynamic viscosity mu.
 
KOKKOS_INLINE_FUNCTION rtype get_gamma () const
 
KOKKOS_INLINE_FUNCTION rtype get_energy_from_temperature (const rtype T) const
 
KOKKOS_INLINE_FUNCTION rtype get_temperature_from_energy (const rtype e) const
 
KOKKOS_INLINE_FUNCTION rtype get_density_from_pressure_temperature (const rtype p, const rtype T) const
 
KOKKOS_INLINE_FUNCTION rtype get_temperature_from_density_pressure (const rtype rho, const rtype p) const
 
KOKKOS_INLINE_FUNCTION rtype get_pressure_from_density_temperature (const rtype rho, const rtype T) const
 
KOKKOS_INLINE_FUNCTION rtype get_pressure_from_density_energy (const rtype rho, const rtype e) const
 
KOKKOS_INLINE_FUNCTION rtype get_sound_speed_from_pressure_density (const rtype p, const rtype rho) const
 
KOKKOS_INLINE_FUNCTION void compute_primitives_from_conservatives (rtype *primitives, const rtype *conservatives) const
 Conservatives [rho, rho u, rho E] -> primitives [u, p, T, h].
 
KOKKOS_INLINE_FUNCTION void compute_W_from_conservatives (rtype *W, const rtype *conservatives) const
 Conservatives -> W = [rho, u, p].
 
KOKKOS_INLINE_FUNCTION void compute_conservatives_from_W (rtype *conservatives, const rtype *W) const
 W = [rho, u, p] -> conservatives.
 

Static Public Member Functions

static Euler from_reference (rtype gamma, rtype p_ref, rtype T_ref, rtype rho_ref)
 Construct from gamma and a reference state (p_ref = rho_ref * R * T_ref).
 
static Euler from_input (const toml::value &input)
 Construct from the [physics] table of an input file.
 

Public Attributes

rtype gamma = 1.4_r
 
rtype R = 287.0
 
rtype cp = 1004.5
 
rtype cv = 717.5
 
ViscosityModel viscosity_model = ViscosityModel::NONE
 
rtype mu_ref = 0.0
 
rtype T_mu_ref = 273.15_r
 
rtype S_mu = 110.4_r
 
rtype n_mu = 0.75_r
 
rtype Pr = 0.72_r
 

Detailed Description

Calorically perfect gas, inviscid (Euler) or viscous and heat conducting (Navier-Stokes, Stokes hypothesis, constant Prandtl number).

Plain aggregate so it can be captured by value in device kernels. Primitive layout: [u_x, u_y, (u_z,) p, T, h] (see PRIMITIVE_NAMES). Reconstruction layout ("W"): [rho, u_x, u_y, (u_z,) p].

Member Function Documentation

◆ compute_conservatives_from_W()

KOKKOS_INLINE_FUNCTION void Euler::compute_conservatives_from_W ( rtype *  conservatives,
const rtype *  W 
) const
inline

W = [rho, u, p] -> conservatives.

◆ compute_primitives_from_conservatives()

KOKKOS_INLINE_FUNCTION void Euler::compute_primitives_from_conservatives ( rtype *  primitives,
const rtype *  conservatives 
) const
inline

Conservatives [rho, rho u, rho E] -> primitives [u, p, T, h].

◆ compute_W_from_conservatives()

KOKKOS_INLINE_FUNCTION void Euler::compute_W_from_conservatives ( rtype *  W,
const rtype *  conservatives 
) const
inline

Conservatives -> W = [rho, u, p].

◆ conductivity()

KOKKOS_INLINE_FUNCTION rtype Euler::conductivity ( const rtype  mu) const
inline

Thermal conductivity for dynamic viscosity mu.

◆ from_input()

Euler Euler::from_input ( const toml::value &  input)
static

Construct from the [physics] table of an input file.

◆ from_reference()

Euler Euler::from_reference ( rtype  gamma,
rtype  p_ref,
rtype  T_ref,
rtype  rho_ref 
)
static

Construct from gamma and a reference state (p_ref = rho_ref * R * T_ref).

◆ get_density_from_pressure_temperature()

KOKKOS_INLINE_FUNCTION rtype Euler::get_density_from_pressure_temperature ( const rtype  p,
const rtype  T 
) const
inline

◆ get_energy_from_temperature()

KOKKOS_INLINE_FUNCTION rtype Euler::get_energy_from_temperature ( const rtype  T) const
inline

◆ get_gamma()

KOKKOS_INLINE_FUNCTION rtype Euler::get_gamma ( ) const
inline

◆ get_pressure_from_density_energy()

KOKKOS_INLINE_FUNCTION rtype Euler::get_pressure_from_density_energy ( const rtype  rho,
const rtype  e 
) const
inline

◆ get_pressure_from_density_temperature()

KOKKOS_INLINE_FUNCTION rtype Euler::get_pressure_from_density_temperature ( const rtype  rho,
const rtype  T 
) const
inline

◆ get_sound_speed_from_pressure_density()

KOKKOS_INLINE_FUNCTION rtype Euler::get_sound_speed_from_pressure_density ( const rtype  p,
const rtype  rho 
) const
inline

◆ get_temperature_from_density_pressure()

KOKKOS_INLINE_FUNCTION rtype Euler::get_temperature_from_density_pressure ( const rtype  rho,
const rtype  p 
) const
inline

◆ get_temperature_from_energy()

KOKKOS_INLINE_FUNCTION rtype Euler::get_temperature_from_energy ( const rtype  e) const
inline

◆ get_type()

KOKKOS_INLINE_FUNCTION PhysicsType Euler::get_type ( ) const
inline

◆ is_viscous()

KOKKOS_INLINE_FUNCTION bool Euler::is_viscous ( ) const
inline

◆ summary()

logging::Items Euler::summary ( ) const

Display lines for the run log.

◆ viscosity()

KOKKOS_INLINE_FUNCTION rtype Euler::viscosity ( const rtype  T) const
inline

Dynamic viscosity at temperature T.

Member Data Documentation

◆ cp

rtype Euler::cp = 1004.5

◆ cv

rtype Euler::cv = 717.5

◆ gamma

rtype Euler::gamma = 1.4_r

◆ mu_ref

rtype Euler::mu_ref = 0.0

◆ n_mu

rtype Euler::n_mu = 0.75_r

◆ Pr

rtype Euler::Pr = 0.72_r

◆ R

rtype Euler::R = 287.0

◆ S_mu

rtype Euler::S_mu = 110.4_r

◆ T_mu_ref

rtype Euler::T_mu_ref = 273.15_r

◆ viscosity_model

ViscosityModel Euler::viscosity_model = ViscosityModel::NONE

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