Create a single laminate with specified orientation, thickness, and offset.
Basic IC that just sets the entire field to a constant value.
Works with a single or multiple-component field.
Initialize a field using a mathematical expression.
Expressions are imported as strings and are compiled real-time using the
`AMReX Parser `_.
Works for single or multiple-component fields.
Use the :code:`regionN` (N=0,1,2, etc. up to number of components) to pass expression.
For example:
.. code-block:: bash
ic.region0 = "sin(x*y*z)"
ic.region1 = "3.0*(x > 0.5 and y > 0.5)"
for a two-component field. It is up to you to make sure your expressions are parsed
correctly; otherwise you will get undefined behavior.
:bdg-primary-line:`Constants`
You can add constants to your expressions using the :code:`constant` directive.
For instance, in the following code
.. code-block:: bash
psi.ic.type=expression
psi.ic.expression.constant.eps = 0.05
psi.ic.expression.constant.R = 0.25
psi.ic.expression.region0 = "0.5 + 0.5*tanh((x^2 + y^2 - R)/eps)"
the constants :code:`eps` and :code:`R` are defined by the user and then used
in the subsequent expression.
The variables can have any name made up of characters that is not reserved.
However, if multiple ICs are used, they must be defined each time for each IC.
Initialize a field using a bitmap image. (2D only)
Note that in GIMP, you must select "do not write color space information"
and "24 bit R8 G8 B8" when exporting the BMP file.
Initialize a field using a PNG image. (2D only)