|
ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
|
The interface between ERF and a model of structures in the flow. More...
#include <AMReX.H>#include <AMReX_FArrayBox.H>#include <AMReX_Geometry.H>#include <AMReX_MultiFab.H>#include <AMReX_REAL.H>#include <AMReX_RealBox.H>#include <functional>#include <string>#include <vector>

Go to the source code of this file.
Classes | |
| struct | StructureInit |
| What a structure model reads once, at start-up. More... | |
| struct | StructureFire |
| What a structure model may read from the fire, when the run has one. More... | |
| struct | StructureStep |
| The flow a structure model reads at the start of each step of its level. More... | |
| class | StructureModel |
| A model of structures in the flow, behind ERF's structure coupling. More... | |
The interface between ERF and a model of structures in the flow.
A structure model represents bodies that the air loads and that push back on the air: power-line conductors and their towers, for example. It samples the wind at its own points, advances its own dynamics, and returns a momentum source that ERF adds to the air at every Runge-Kutta stage. The velocity sampler and the force spreading of the actuator core (Source/MovingBodies/Core, ERF_ActuatorSampling.H and ERF_ActuatorSpreading.H) are the tools a model is expected to use for both.
ERF itself contains no structure model. A model lives in its own directory outside ERF (STRUCTURE_HOME in GNU make, ERF_STRUCTURE_MODEL_DIRS in CMake) and registers itself with ERF_REGISTER_STRUCTURE_MODEL (ERF_StructureModelRegistry.H); erf.structures.model selects it by name. Tests/StructureModelExample is a complete model directory.
ERF calls, in this order:
Memory contract. Every MultiFab ERF hands a model is an ordinary AMReX MultiFab in the default arena (device memory on a GPU build) and is valid only during the call. A model keeps no pointer to it after the call returns.