BISICLES AMR ice sheet model
0.9
|
Provide the flux a*x + b*y, where x,y are fluxes and a,b are scalars. More...
#include <ComplexSurfaceFlux.H>
Public Member Functions | |
AxbyFlux (const Real &a_a, SurfaceFlux *a_x, const Real &a_b, SurfaceFlux *a_y) | |
Construct an AxbyFlux a*x + b*y given two fluxes x,y and two scalars a,b. More... | |
virtual | ~AxbyFlux () |
virtual SurfaceFlux * | new_surfaceFlux () |
factory method: return a pointer to a new SurfaceFlux object More... | |
virtual void | surfaceThicknessFlux (LevelData< FArrayBox > &a_flux, const AmrIceBase &a_amrIce, int a_level, Real a_dt) |
define source term for thickness evolution and place it in flux More... | |
![]() | |
virtual | ~SurfaceFlux () |
virtual destructor More... | |
virtual void | evaluate (LevelData< FArrayBox > &a_data, const AmrIceBase &a_amrIce, int a_level, Real a_dt) |
Sub-classes of this class turned out to be useful for various data apart from thickness fluxes... More... | |
Additional Inherited Members | |
![]() | |
static SurfaceFlux * | parse (const char *a_prefix) |
assemble a SurfaceFlux* object from ParmParse inputs More... | |
Provide the flux a*x + b*y, where x,y are fluxes and a,b are scalars.
Run-time configuration is carried out in SurfaceFlux::parse. If the string A.B.C.type = axbyFlux
is found, then the expected form is:
A.B.C.a = <float>
A.B.C.x.type = <valid SurfaceFlux type>
A.B.C.x.<etc> = <the remaining A.B.C.x configuration>
A.B.C.b = <float>
A.B.C.y.type = <valid SurfaceFlux type>
-A.B.C.y.<etc> = <the remaining A.B.C.y configuration>
AxbyFlux::AxbyFlux | ( | const Real & | a_a, |
SurfaceFlux * | a_x, | ||
const Real & | a_b, | ||
SurfaceFlux * | a_y | ||
) |
Construct an AxbyFlux a*x + b*y given two fluxes x,y and two scalars a,b.
a_a | scalar a |
a_x | flux x |
a_b | scalar b |
a_y | flux y |
References AxbyFlux(), and SurfaceFlux::new_surfaceFlux().
Referenced by AxbyFlux().
|
virtual |
|
virtual |
factory method: return a pointer to a new SurfaceFlux object
Implements SurfaceFlux.
|
virtual |
define source term for thickness evolution and place it in flux
a_flux | output flux data |
a_amrIce | reference to the ice sheet state |
a_level | mesh level of a_flux |
a_dt | current timestep |
a_dt is included in case one needs integrals or averages over a timestep. flux should be defined in meters per year in the current implementation.
Implements SurfaceFlux.