VolumetricHeatSource

Description

Sets an initial condition while preserving a total specified volume integral. The VolumetricHeatSource is not an actual object in Cardinal, but only a convenience wrapper around the IntegralPreservingFunctionIC in MOOSE, which defines an initial condition as the combination of a function and a total "magnitude" (integral) that should be preserved. This action applies the initial condition:

(1)

where is the variable, is the function, and is a scaling factor used to preserve a total magnitude upon volume integration:

(2)

where is the total magnitude and is the domain of integration. The parameters that must be provided for this action are:

  • variable: Variable to apply the initial condition to

  • function: Function providing the shape of the heat source

  • magnitude: Desired integrated total magnitude of the heat source

Example Input Syntax

We use custom Cardinal syntax in order to simplify setup of this initial condition. As an example, below we set a sinusoidal heat source with generic form for a total magnitude of 550 (upon volume integration). This means that the actual initial condition is , where is determined in order to satisfy the specified total volume integral.

[Cardinal]
  [ICs]
    [VolumetricHeatSource]
      variable = power
      magnitude = 550.0
      function = 'sin(pi * z / 1.9)'
    []
  []
[]
(test/tests/ics/volumetric_heat_source_ic/sinusoidal_z.i)