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

Per-cell stable time step for CFL = 1 (Blazek eqs. 6.20-6.21, C = 4): dt_i = 2 V_i / (sum_f (|u_n| + a)_f A_f + 4 nu_eff sum_f A_f^2 / V_i), with the face wave speed taken as the max over the two adjacent cells and nu_eff = max(4/3, gamma/Pr) mu / rho for viscous flow. Half the sums over faces stand for Blazek's sums of projected areas. More...

Public Member Functions

KOKKOS_INLINE_FUNCTION rtype wave_speed (const int32_t i_cell, const rtype *n) const
 
KOKKOS_INLINE_FUNCTION void operator() (const uint32_t i_cell, rtype &dt_min) const
 

Public Attributes

Kokkos::View< uint32_t * > offsets_faces_of_cell
 
Kokkos::View< uint32_t * > faces_of_cell
 
Kokkos::View< int32_t *[2]> cells_of_face
 
Kokkos::View< rtype *[N_DIM]> face_normals
 
Kokkos::View< rtype * > face_area
 
Kokkos::View< rtype * > cell_volume
 
StateView conservatives
 
Kokkos::View< rtype * > dt_local
 
Euler physics
 
Kokkos::View< rtype *[N_DIM]> radius_coords
 
Kokkos::View< rtype *[3]> sgs
 
rtype Pr_t = 1.0_r
 

Detailed Description

Per-cell stable time step for CFL = 1 (Blazek eqs. 6.20-6.21, C = 4): dt_i = 2 V_i / (sum_f (|u_n| + a)_f A_f + 4 nu_eff sum_f A_f^2 / V_i), with the face wave speed taken as the max over the two adjacent cells and nu_eff = max(4/3, gamma/Pr) mu / rho for viscous flow. Half the sums over faces stand for Blazek's sums of projected areas.

Member Function Documentation

◆ operator()()

KOKKOS_INLINE_FUNCTION void TimeStepFunctor::operator() ( const uint32_t  i_cell,
rtype &  dt_min 
) const
inline

◆ wave_speed()

KOKKOS_INLINE_FUNCTION rtype TimeStepFunctor::wave_speed ( const int32_t  i_cell,
const rtype *  n 
) const
inline

Member Data Documentation

◆ cell_volume

Kokkos::View<rtype *> TimeStepFunctor::cell_volume

◆ cells_of_face

Kokkos::View<int32_t *[2]> TimeStepFunctor::cells_of_face

◆ conservatives

StateView TimeStepFunctor::conservatives

◆ dt_local

Kokkos::View<rtype *> TimeStepFunctor::dt_local

◆ face_area

Kokkos::View<rtype *> TimeStepFunctor::face_area

◆ face_normals

Kokkos::View<rtype *[N_DIM]> TimeStepFunctor::face_normals

◆ faces_of_cell

Kokkos::View<uint32_t *> TimeStepFunctor::faces_of_cell

◆ offsets_faces_of_cell

Kokkos::View<uint32_t *> TimeStepFunctor::offsets_faces_of_cell

◆ physics

Euler TimeStepFunctor::physics

◆ Pr_t

rtype TimeStepFunctor::Pr_t = 1.0_r

◆ radius_coords

Kokkos::View<rtype *[N_DIM]> TimeStepFunctor::radius_coords

◆ sgs

Kokkos::View<rtype *[3]> TimeStepFunctor::sgs

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