functionBc (1d, 2d, 3d)

Defines the boundary condition using a function

Sub-Blocks

Function (block)
The function that is used to define the values in out

Example

<Updater bcLeft>
  kind = functionBc2d

  onGrid = domain
  out = [q]
  entity = left

  <Function func>
    kind = exprFunc

    gamma = GAMMA
    P0 = $2.0*BASEMENT_PRESSURE$
    rho0 = $2.0*BASEMENT_DENSITY$
    b0 = B0
    preExprs = ["er = P0/(gamma-1)"]
    exprs = ["rho0", "0.0", "0.0", "0.0", "er","0.0","0.0","b0","0.0"]
  </Function>

</Updater>