[meta] Support creating initial condition
Description
DORiE currently only supports simple functions as initial conditions, where the matric head is a linear function of the height. With #121 (closed) implemented, we can use a data set as initial condition.
Also, the naming and documentation of initial conditions has to be improved. hydrEquilibrium
actually means "constant gradient" and should be renamed.
In order to avoid adding too many new config keys, the implementation will probably rely on automatic field scaling, #120 (closed).
Proposal
- Improve current config key naming, and implementation
- Add examples for input via data file to Cook Book
Tasks
- #131 (closed) Implement an abstract base class for initial conditions, and factories
-
#133 (closed) Implement a class for initial
h5
format:InitialConditionH5
, using a linear interpolator from #121 (closed) -
#134 (closed) Initial conditions from analytic function using a math parser (like
muparser
)
How to test the implementation?
- Add unit test for
FlowInitial
People involved
Related issues
- #121 (closed): Linear interpolator
- #120 (closed): Automatic rescaling of input data onto grid
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information