#include <ERF_MOSTStress.H>
|
| donelan_flux () |
|
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real | compute_q_flux (const int &, const int &, const int &, 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 > &, const amrex::Array4< const amrex::Real > &, 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 > &umm_arr, const amrex::Array4< const amrex::Real > &tm_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &t_surf_arr) 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 > &umm_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &) 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 > &umm_arr, const amrex::Array4< const amrex::Real > &, const amrex::Array4< const amrex::Real > &) const |
|
◆ donelan_flux()
donelan_flux::donelan_flux |
( |
| ) |
|
|
inline |
◆ compute_q_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real donelan_flux::compute_q_flux |
( |
const int & |
, |
|
|
const int & |
, |
|
|
const int & |
, |
|
|
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 > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
|
|
) |
| const |
|
inline |
1532 amrex::Real moflux = 0.0;
◆ compute_t_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real donelan_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 > & |
umm_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
tm_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
t_surf_arr |
|
) |
| const |
|
inline |
1552 amrex::Real Ch = 0.0012;
1554 amrex::Real theta_surf = t_surf_arr(i,j,k);
1555 amrex::Real theta_mean = tm_arr(i,j,k);
1556 amrex::Real wsp_mean = umm_arr(i,j,k);
1559 amrex::Real moflux = -
rho * Ch * wsp_mean * (theta_mean - theta_surf);
#define Rho_comp
Definition: ERF_IndexDefines.H:36
@ rho
Definition: ERF_Kessler.H:22
◆ compute_u_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real donelan_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 > & |
umm_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
|
|
) |
| const |
|
inline |
1577 amrex::Real velx = velx_arr(i,j,k);
1578 amrex::Real vely = 0.25 * ( vely_arr(i ,j,k) + vely_arr(i ,j+1,k)
1579 + vely_arr(i-1,j,k) + vely_arr(i-1,j+1,k) );
1582 amrex::Real Cd = 0.001;
1583 const amrex::Real c = 7e-5;
1584 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1585 amrex::Real wsp_mean = 0.5 * ( umm_arr(i-1,j,k) + umm_arr(i,j,k) );
1586 if (wsp_mean <= 5.0) {
1588 }
else if (wsp_mean < 25.0 && wsp_mean > 5.0) {
1589 Cd = 0.001 + c * (wsp_mean - 5.0);
1595 amrex::Real stressx = -
rho * Cd * velx * wsp;
◆ compute_v_flux()
AMREX_GPU_DEVICE AMREX_FORCE_INLINE amrex::Real donelan_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 > & |
umm_arr, |
|
|
const amrex::Array4< const amrex::Real > & |
, |
|
|
const amrex::Array4< const amrex::Real > & |
|
|
) |
| const |
|
inline |
1613 amrex::Real velx = 0.25 * ( velx_arr(i,j ,k) + velx_arr(i+1,j ,k)
1614 + velx_arr(i,j-1,k) + velx_arr(i+1,j-1,k) );
1615 amrex::Real vely = vely_arr(i,j,k);
1618 amrex::Real Cd = 0.001;
1619 const amrex::Real c = 7e-5;
1620 amrex::Real wsp = sqrt(velx*velx+vely*vely);
1621 amrex::Real wsp_mean = 0.5 * ( umm_arr(i,j-1,k) + umm_arr(i,j,k) );
1622 if (wsp_mean <= 5.0) {
1624 }
else if (wsp_mean < 25.0 && wsp_mean > 5.0) {
1625 Cd = 0.001 + c * (wsp_mean - 5.0);
1631 amrex::Real stressy = -
rho * Cd * vely * wsp;
The documentation for this struct was generated from the following file: