Initial condition#
- class InitialCondition(field=0, value=0.0, label=None, time_step=None)[source]#
Bases:
object- Parameters:
field (int, str, optional) – the field (“0”, “solute”, “T”, “1”,…). Defaults to 0.
value (float, str, optional) – the value of the initial condition. Defaults to 0.
label (str, optional) – label in the XDMF file. Defaults to None.
time_step ([type], optional) – [description]. Defaults to None.
- Raises:
ValueError – if XDMF and label is None
ValueError – if XDMF and time_step is None