Skip to content

Initialconditions context

Knut Morten Okstad edited this page Jun 6, 2019 · 1 revision
<initialcondition field="solution1" type="expression" basis="1" component="1">
  pow(y,2)
</initialcondition>
<initialcondition field="solution1" type="expression" basis="2" component="1">
  pow(x,3)
<initialcondition field="wall distance" file_basis="Common" file_level="0">
  Cyl2DFlag_p1p1Re20_H0_wdist
</initialcondition>

The <initialconditions> context is used to define initial conditions for time-dependent problems.

Attributes:

  • field - Name of the solution field the initial condition applies to. The field names are typically registered by the applications.
  • basis - One-based index of the basis of the solution field the initial condition applies to in case of mixed problems.
  • type - The type of the initial condition specification ("file" or "expression"). If not specified, "file" is assumed.
  • component - One-based component index for the field. Not used if type = "file".
  • file_field - Name of solution field on the initial condition file. If not specified, it is assumed equal to the value of field.
  • file_basis - Basis name on file of the initial condition to read.
  • file_level - Time level (zero-based index) to read initial conditions for from file.
  • geo_basis - Time level of the geometry basis to read initial conditions from in case of adaptive grids.

Value: Basename of the hdf5-file to read the initial conditions from, if type = "file". Otherwise, it contains the function expression defining the initial condition field.