ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
ERF_TerrainSurfaceSlab.H
Go to the documentation of this file.
1 /**
2  * \file ERF_TerrainSurfaceSlab.H
3  */
4 #ifndef ERF_TERRAINSURFACESLAB_H_
5 #define ERF_TERRAINSURFACESLAB_H_
6 
7 #include <AMReX_BoxArray.H>
8 #include <AMReX_Geometry.H>
9 #include <AMReX_MultiFab.H>
10 
11 class ProblemBase;
12 
13 //
14 // The terrain height under the grids of a level, on the nodes of the bottom
15 // slab (k = the bottom of the domain) of each box.
16 //
17 // With a terrain-fitted mesh the terrain is the bottom of the mesh, z_phys_nd at
18 // the bottom nodes. With immersed-forcing terrain the mesh is flat and the
19 // terrain is the surface the immersed boundary is built from; these functions
20 // give that surface at a level's resolution for code that measures heights
21 // above it.
22 //
23 
24 // The nodal boxes of the bottom slab under each cell-centred box of ba
25 amrex::BoxArray bottom_node_slab (const amrex::BoxArray& ba, const amrex::Geometry& geom);
26 
27 // Fill zs (defined on bottom_node_slab) with the terrain surface that prob gives
28 // at the resolution of geom, as the immersed boundary is built
29 void fill_terrain_surface_slab (amrex::MultiFab& zs, const amrex::Geometry& geom,
30  ProblemBase& prob, double time);
31 
32 #endif
void fill_terrain_surface_slab(amrex::MultiFab &zs, const amrex::Geometry &geom, ProblemBase &prob, double time)
amrex::BoxArray bottom_node_slab(const amrex::BoxArray &ba, const amrex::Geometry &geom)
Definition: ERF_ProbCommon.H:60