"ics" block¶
Initial conditions are defined in the JSON block "ics". Each named subobject is one IC block.
json
{
"ics": {
"rand": {
"type": "random",
"dofs": ["c"],
"icvalue": 0.0,
"domain": ["alldomain"],
"parameters": {
"minval": 0.495,
"maxval": 0.505
}
}
}
}
Options inside each IC block¶
"type": required string."dofs": required array of DoF names. Every name must already exist in the"dofs"block."domain": required array of bulk domain names."icvalue": optional numeric value. If omitted, the parser uses0.0."parameters": optional JSON object. If omitted, the parser keeps an empty parameter set and prints a warning.
The old dof= and params= syntax is no longer valid. The current parser reads "dofs" and "parameters".
"domain" names must match the bulk physical names from the mesh. "alldomain" is valid in the shipped examples and templates.
Supported IC types¶
text
const
random
rectangle
cubic
circle
smoothcircle
spherical
user1 ... user10
The parameter names depend on the IC type. Upstream examples use:
- random: minval, maxval
- circle: radius, cx, cy
- const: often no extra parameters