Skip to content
Draft. This manual is new and still being checked against the software as it is verified. Some pages will change. If something here does not match what you see, the software is right — tell us and we will fix the page.

Initial conditions

The Initial conditions panel open beside the setup tree, showing the Method, Values, Turbulence and Written to 0/ sections.

Setup tree: Initial conditions

  • Control: choice (ComboRow)
  • Default: Uniform
  • Bound to: CaseState.initMethod
  • Options: Uniform, Potential flow, From an existing run
  • Writes: potentialFoam (U only), potentialFoam -writephi, 0/* internalField
  • Shown when: root.wholePage
  • Control: value (ValueField)
  • Default: empty
  • Bound to: CaseState.initMapSource
  • Value modes: none (plain entry)
  • Shown when: root.wholePage && CaseState.initMethod === "From an existing run"

The case directory to map from. Its latest time is used.

  • Control: action (ToolButton2)
  • Enabled when: CaseState.runDirectory !== ""
  • Control: on/off (ToggleRow)
  • Default: true
  • Bound to: CaseState.initFromInlet
  • Shown when: root.wholePage

Seed the domain with the inlet’s velocity and turbulence, so changing the inlet keeps the initial field consistent.

  • Control: value (ValueField)
  • Unit: m/s
  • Bound to: CaseState.effectiveInitVelocity
  • Writes: 0/U internalField
  • Shown when: root.showsField("U")
  • Control: value (ValueField)
  • Unit: Pa
  • Default: 0
  • Bound to: CaseState.initPressure
  • Writes: 0/p … m²/s² (kinematic)
  • Shown when: root.wholePage || root.fieldFilter === "p" || root.fieldFilter === "p_rgh"
  • Control: value (ValueField)
  • Unit: K
  • Default: 293.15
  • Bound to: CaseState.initTemperature
  • Writes: 0/T internalField
  • Shown when: CaseState.energyEnabled && root.showsField("T")
  • Control: value (ValueField)
  • Unit: %
  • Bound to: CaseState.effectiveInitIntensity
  • Shown when: CaseState.turbulenceFields.length > 1 && root.turbulencePage
  • Control: value (ValueField)
  • Unit: m
  • Bound to: CaseState.effectiveInitLengthScale
  • Shown when: CaseState.turbulenceFields.length > 1 && root.turbulencePage

Label changes with the case; the source gives these forms: + Add subdomain, + Add subdomain of ….

  • Control: action (ToolButton2)

repeated once for every entry in CaseState.initRegions

  • Control: choice (ComboRow)
  • Default: box
  • Options: box, sphere
  • Writes: setFieldsDict/regions
  • Shown when: !regionCard.usesPrimitive
  • Control: choice (ComboRow)

Which field setFields writes here. Changing it moves this subdomain under that field in the tree.

  • Control: value (ValueField)
  • Default: 1
  • Value modes: none (plain entry)

A bare number for a scalar, or (x y z) for a vector — which keyword setFields needs depends on it.

  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive
  • Control: value (ValueField)
  • Unit: m
  • Value modes: none (plain entry)
  • Shown when: regionCard.usesPrimitive

The application reports no problems against this step.


… marks a value the application computes at run time, so the source carries no fixed text for it.