|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
#include <ERF.H>#include <ERF_EOS.H>#include <ERF_Constants.H>#include <ERF_Utils.H>#include <AMReX_MultiFabUtil.H>
The base state of a level below the finest the run allows, as the average of the base state of the mesh at max_level resolution, with the cell-center heights placed so that it is in discrete hydrostatic balance.
With the coarse metrics built from the finest mesh (metrics_from_finest), the volume of a coarse cell is the sum of the volumes of the fine cells it holds. Each level's base state is in hydrostatic balance and satisfies the equation of state, but built separately on each level the base-state mass of a coarse cell is not that of the fine cells it holds, so a regrid changes the composite mass by the difference. Here the coarse base state is instead
A level's base state depends only on its own columns, not on where the finer levels are, so a regrid changes no base state, and a fine cell's base state is the one its coarse cell's was averaged from.