|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
Functions | |
| void | restrict_face_field (const MultiFab &fine, MultiFab &crse, int dir, const IntVect &rr, const Geometry &cgeom) |
| void erf_detail_StructureCoarseSource::restrict_face_field | ( | const MultiFab & | fine, |
| MultiFab & | crse, | ||
| int | dir, | ||
| const IntVect & | rr, | ||
| const Geometry & | cgeom | ||
| ) |
Restrict a face field from a level onto the faces normal to dir of the next coarser level: coarse face I takes the fine faces r I + m, |m| < r, along dir with the weights (r - |m|) / r^2, averaged over the fine faces across it. Applied to the source times J_f, this is the force-space restriction of restrict_face_sources divided by the coarse control volume (dx dy dz of the coarse level is r_dir r_t1 r_t2 times the fine one). On a non-periodic domain face, where the boundary condition sets the momentum and a source does nothing, a fine face inside the domain gives its whole force to the first coarse face inside instead of sharing it with the domain face (weight r / r^2 there); the fine domain face's own force stays on the coarse domain face. fine must have r - 1 ghost faces along dir, filled where another box of its level holds them and zero outside the level.
Referenced by erf_structure::restrict_face_sources().

