#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 |
1664 amrex::Real qstar = q_star_arr(i,j,k);
1667 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:1751
◆ 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 |
1688 amrex::Real tstar = t_star_arr(i,j,k);
1691 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 |
1709 amrex::Real velx = velx_arr(i,j,k);
1710 amrex::Real vely = 0.25 * ( vely_arr(i ,j,k) + vely_arr(i ,j+1,k)
1711 + vely_arr(i-1,j,k) + vely_arr(i-1,j+1,k) );
1714 amrex::Real ustar = 0.5 * ( u_star_arr(i-1,j,k) + u_star_arr(i,j,k) );
1715 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1718 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 |
1736 amrex::Real velx = 0.25 * ( velx_arr(i,j ,k) + velx_arr(i+1,j ,k)
1737 + velx_arr(i,j-1,k) + velx_arr(i+1,j-1,k) );
1738 amrex::Real vely = vely_arr(i,j,k);
1741 amrex::Real ustar = 0.5 * ( u_star_arr(i,j-1,k) + u_star_arr(i,j,k) );
1742 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1745 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: