#include <ERF_MOSTStress.H>
|
| custom_flux () |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_q_flux (const int &i, const int &j, const int &k, const amrex::Array4< const amrex::Real > &cons_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &q_star_arr, const amrex::Array4< const amrex::Real > &) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_t_flux (const int &i, const int &j, const int &k, const amrex::Array4< const amrex::Real > &cons_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &t_star_arr, const amrex::Array4< const amrex::Real > &) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_u_flux (const int &i, const int &j, const int &k, const amrex::Array4< const amrex::Real > &cons_arr, const amrex::Array4< const amrex::Real > &velx_arr, const amrex::Array4< const amrex::Real > &vely_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &u_star_arr) const |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_v_flux (const int &i, const int &j, const int &k, const amrex::Array4< const amrex::Real > &cons_arr, const amrex::Array4< const amrex::Real > &velx_arr, const amrex::Array4< const amrex::Real > &vely_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &u_star_arr) const |
|
|
const amrex::Real | eps = 1e-15 |
|
◆ custom_flux()
custom_flux::custom_flux |
( |
| ) |
|
|
inline |
◆ compute_q_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real custom_flux::compute_q_flux |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const amrex::Array4< const amrex::Real > & |
cons_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
q_star_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
|
|
) |
| const |
|
inline |
1888 amrex::Real qstar = q_star_arr(i,j,k);
1891 amrex::Real moflux = (std::abs(qstar) >
eps) ?
rho * qstar : 0.0;
#define Rho_comp
Definition: ERF_IndexDefines.H:36
@ rho
Definition: ERF_Kessler.H:22
const amrex::Real eps
Definition: ERF_MOSTStress.H:1975
◆ compute_t_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real custom_flux::compute_t_flux |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const amrex::Array4< const amrex::Real > & |
cons_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
t_star_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
|
|
) |
| const |
|
inline |
1912 amrex::Real tstar = t_star_arr(i,j,k);
1915 amrex::Real moflux = (std::abs(tstar) >
eps) ?
rho * tstar : 0.0;
◆ compute_u_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real custom_flux::compute_u_flux |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const amrex::Array4< const amrex::Real > & |
cons_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
velx_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
vely_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
u_star_arr |
|
) |
| const |
|
inline |
1933 amrex::Real velx = velx_arr(i,j,k);
1934 amrex::Real vely = 0.25 * ( vely_arr(i ,j,k) + vely_arr(i ,j+1,k)
1935 + vely_arr(i-1,j,k) + vely_arr(i-1,j+1,k) );
1938 amrex::Real ustar = 0.5 * ( u_star_arr(i-1,j,k) + u_star_arr(i,j,k) );
1939 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1942 amrex::Real stressx = -
rho * ustar * ustar * velx / wsp;
◆ compute_v_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real custom_flux::compute_v_flux |
( |
const int & |
i, |
|
|
const int & |
j, |
|
|
const int & |
k, |
|
|
const amrex::Array4< const amrex::Real > & |
cons_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
velx_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
vely_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
u_star_arr |
|
) |
| const |
|
inline |
1960 amrex::Real velx = 0.25 * ( velx_arr(i,j ,k) + velx_arr(i+1,j ,k)
1961 + velx_arr(i,j-1,k) + velx_arr(i+1,j-1,k) );
1962 amrex::Real vely = vely_arr(i,j,k);
1965 amrex::Real ustar = 0.5 * ( u_star_arr(i,j-1,k) + u_star_arr(i,j,k) );
1966 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1969 amrex::Real stressy = -
rho * ustar * ustar * vely / wsp;
◆ eps
const amrex::Real custom_flux::eps = 1e-15 |
|
private |
The documentation for this struct was generated from the following file: