Appearance
Boundary conditions
Each of the six faces of the domain takes a boundary condition from its section [bc_x_min], [bc_x_max], [bc_y_min], [bc_y_max], [bc_z_min], [bc_z_max]. The condition fills the ghost cells of the blocks that touch the face before every residual evaluation; interior block faces, inter-realm seams and AMR coarse–fine faces are filled by the exchange machinery instead (below).
Input
There are six sections, [bc_x_min], [bc_x_max], [bc_y_min], [bc_y_max], [bc_z_min] and [bc_z_max], which are faces 1–6. Each section requires type. CRLF files are accepted (FiNeR drops the carriage return). Eleven values are accepted, and matching is case-sensitive:
type | id | Meaning | per-face keys |
|---|---|---|---|
extrapolation | BC_EXTRAPOLATION = 1 | zeroth-order extrapolation (outflow) | none |
inflow | BC_INFLOW = 2 | prescribed state | r, u, v, w, p (+ bx, by, bz for MHD), all required |
inflow-digital-filter | BC_INFLOW_DF = 7 | turbulent boundary-layer inflow: a mean profile table plus digital-filter fluctuations (turbulence) | r, u, p, df_profile, df_delta, df_spacing, df_wall_axis, df_length_* (required), df_seed; Euler only, one face per realm (input, #119) |
inflow-recycling | BC_INFLOW_RR = 10 | turbulent boundary-layer inflow: the table's mean plus the layer's own fluctuations, recycled from a downstream station and rescaled (turbulence) | r, u, p, rr_profile, rr_delta, rr_wall_axis, rr_spacing, rr_x, rr_delta_ratio, rr_beta; rr_shift optional |
wall-inviscid | BC_WALL_INVISCID = 3 | slip wall | none |
wall-modelled | BC_WALL_INVISCID = 3 + wall-model flag | isothermal wall whose face flux comes from a wall model; ghosts mirrored as wall-inviscid (turbulence) | wall_temperature (required, wall_model, wall_model_height, wall_model_damping, wall_model_filter, wall_model_eddy_viscosity, wall_model_pressure_gradient, wall_model_pressure_gradient_filter, wall_model_edge_velocity, wall_model_edge_temperature (input, #119) |
wall-noslip | BC_WALL_NOSLIP = 4 | no-slip adiabatic wall | wall_u, wall_v, wall_w (optional, default 0; the normal one must be 0); refused with [eos] isothermal or barotropic |
wall-isothermal | BC_WALL_ISOTHERMAL = 5 | no-slip wall at a set temperature | wall_temperature (required, wall_u, wall_v, wall_w as above; refused with [eos] isothermal or barotropic |
periodic | library BC_PERIODIC = -1 | periodic pair of faces | none |
hydrostatic | BC_HYDROSTATIC = 6 | hydrostatic ghosts under gravity, mirrored velocity | none (reads [gravity]); refused with [eos] isothermal or barotropic |
non-reflecting | BC_NONREFLECTING = 8 | characteristic outflow and far field | the target r, u, v, w, p (required), nr_length nr_sigma |
shock-generator | BC_SHOCK_GENERATOR = 9 | oblique shock entering through a y face | the upstream r, u, v, w, p, one of shock_deflection and shock_angle (degrees), shock_x, shock_x_end (optional); bc_y_min and bc_y_max only, Euler only (#121 S3) |
Validation:
- an unknown value stops the run and the message lists the accepted spellings;
- a missing inflow key, or a missing or non-positive
wall_temperature, is fatal; - a non-zero normal wall velocity is fatal (the wall does not move through the domain);
- periodicity must be paired:
[bc_x_min]and[bc_x_max]must both be periodic or neither, and the same for y and z; - a physical model other than Euler or MHD is fatal.
How the ghost cells are filled
Before every residual evaluation the ghosts are filled in the order of a Runge–Kutta stage: the copies between the blocks of the realm (with the 2:1 coarse–fine interpolation), the MPI exchange, then the boundary conditions, crown by crown from the innermost ghost layer outwards. The inter-realm seams are filled by the forest. The sections below give the rule of each kind; the crown maps, the edge and corner passes and the seam buffers are documented on the developer page FLUME ghost fill.
extrapolation: zeroth order (constant)
Each ghost copies its inward neighbour. The crowns are filled innermost first, so every ghost column ends up equal to the first interior cell:
inflow: prescribed state (Dirichlet on the full conservative vector)
wall-inviscid: slip wall by mirroring with a sign vector
The mirror index reflects the ghost across the face:
| face | mirror |
|---|---|
So ghost
The sign vector
| variable | Euler | MHD / MHD-GLM |
|---|---|---|
| — | ||
| — | ||
| — |
wall-noslip and wall-isothermal: no-slip walls
The two no-slip walls (#65) mirror the cell like wall-inviscid and reflect the whole velocity about the wall velocity wall_u, wall_v, wall_w):
so the mean of the ghost and its mirror cell is the wall velocity (no slip, no penetration). The pressure is mirrored.
wall-noslip(adiabatic) mirrors the temperature, soand at the wall in the sense of the symmetric difference. wall-isothermalsets the ghost temperature to the geometric mirror,, so the geometric mean of the ghost and its mirror cell is the wall temperature, and the density from the mirrored pressure, , with . The ghost is admissible for any admissible cell, which the linear mirror is not beside gas hotter than twice the wall. For the two mirrors differ by , so both are second-order at the wall.
The total energy is rebuilt from the ghost state, wall-inviscid rule (normal component odd, a perfectly conducting wall);
The rule is model-agnostic: the field components are those present in the state vector (none for Euler). The ghost probe GP checks it on every face and edge, moving and resting walls, Euler and MHD with EGLM (verification).
The walls are boundary conditions of the ideal solver too: they take effect on any run. Their physical test is the compressible Couette flow between an isothermal wall and a moving adiabatic one, against its exact profiles (VV-3): the moving-wall mirror is exact for its linear velocity and symmetric temperature, the isothermal mirror
hydrostatic: an atmosphere under gravity
Added for the gravity of #73. The ghost density and pressure continue the isothermal hydrostatic equilibrium of the first interior cell along the normal, wall-inviscid (no mass flux); the magnetic field and
non-reflecting: a characteristic outflow and far field
Added for the STREAmS cases of #121. The ghosts are the first interior cell plus the jumps of the characteristic variables, linearised about it (outward normal velocity
- Outgoing waves (speed
): no jump, extrapolated. - The incoming acoustic wave,
with speed : its gradient along the normal is set by the relaxation of Rudy & Strikwerda (1980) and Poinsot & Lele (1992), , . Ghost lies cells off the interior cell, and is unchanged. - Flow into the domain (
): the entropy and the tangential velocity of the target; (supersonic inflow) the whole target.
A supersonic outflow, or
When to use it. In this characteristic-upwind scheme extrapolation (outflow) and inflow (a prescribed state) already let linear waves out: they make the incoming characteristic jumps zero, or the free stream's. What they cannot do is hold a mean pressure at a subsonic outflow, and extrapolation keeps whatever pressure the box has. non-reflecting pulls it to
non-reflecting | the alternative | |
|---|---|---|
| a 2 % overpressure at Mach 0.5, left after | 0.099 | extrapolation: 1.000 |
| a packet leaving at rest ( | 2.9e-3 ( | extrapolation: 1.2e-4 |
| a packet leaving through a subsonic inflow face, left behind | 4.3e-3 | inflow: 1.4e-5 |
shock-generator: an oblique shock through a y face
Added for the STREAmS cases of #121. The face of a shock–boundary-layer interaction that brings the incident shock in (the top of the box). The ghosts with shock_x shock_x_end take the state behind an oblique shock in the upstream state r, u, v, w, p; the others are extrapolated, as are the edge and corner rows beyond the face. The shock is given by its deflection shock_deflection, the weak solution of the shock_angle), and turns the flow toward the opposite face. The post-shock state follows from the normal Mach number
- Refused: a flow that is not supersonic in the x-y plane, an angle outside
, a deflection beyond detachment, a face other than y, a model other than Euler (no dual energy, no passive scalars). - The rest of the face is
extrapolation: upstream ofshock_xthe free stream leaves or enters at its own state, as at an extrapolated top. A reflected shock that reaches the face beyondshock_x_endleaves through it.
Measured in the verification: at Mach 2 and wall-inviscid face, the reflected shock within
wall-modelled
A slip-wall mirror for the ghosts, with the flux through the wall face replaced by the stress and the heat flux of a wall model sampled off the wall: an isothermal wall for wall-modelled large-eddy simulation. The model, its keys and its limits are on the turbulence page.
inflow-digital-filter
A turbulent boundary layer entering through the face: the mean of a profile table plus digital-filter fluctuations with its Reynolds stresses. The method is on the turbulence page.
inflow-recycling
A turbulent boundary layer entering through the face: the mean of the same profile table plus the fluctuations of the layer itself at a station downstream, rescaled to the face. The method is on the turbulence page.
periodic
periodic is the library periodicity: the tree builds true periodic neighbours, and the block exchange fills the ghosts across blocks and ranks, with any number of blocks along the axis, one included (#103). The only constraint is the pairing rule of the validation list above.
Edges and corners
An edge ghost lies outside its block along two axes, a corner ghost along three. The WENO stencils never read them, but the tangential derivatives of the viscous stress or of the current at a face do. They are filled so that the ghost layer continues the face ghosts: beyond one realm face the face's kind applies along its normal; beyond two or three realm faces the kind of one physical face applies (inflow first), so two walls compose to a double mirror. The ghost probe GP holds every face and edge ghost to a linear field on every path (verification). The donor rules and the pass ordering are on the developer page.
Inter-realm seam
A face glued to another realm by the forest manifest still needs a type, but the seam overrides it: the forest fills the seam ghosts by injection from the peer realm, at every Runge–Kutta stage or once per step (coupling_cadence). The written field files hold the ghosts the stencils read, except the step-0 file, whose seam ghosts are unfilled (developer page).
2:1 AMR coarse-fine ghosts
These ghosts are library behaviour, selected by [amr] seam_ghost_fill = injection | restriction-compatible | tricubic (default tricubic; an unknown value is fatal; library input). FLUME bounds the fill and blends inadmissible ghosts (numerics).
Immersed solids
Immersed solids are not a [bc_*] kind. They enter through a level set and the cut spacing of the flux difference (numerics).
Examples
Walls on x, extrapolation elsewhere, from src/tests/flume/verification/sod/sod-wall-x.ini:
ini
[bc_x_min]
type = wall-inviscid
[bc_x_max]
type = wall-inviscid
[bc_y_min]
type = extrapolation
[bc_y_max]
type = extrapolation
[bc_z_min]
type = extrapolation
[bc_z_max]
type = extrapolationEuler inflow, from src/tests/flume/verification/shock-cylinder/shock-cylinder.ini:
ini
[bc_x_min]
type = inflow
r = 3.7333333333333334
u = 1.25
v = 0.0
w = 0.0
p = 4.5
[bc_x_max]
type = extrapolation
[bc_y_min]
type = wall-inviscid
[bc_y_max]
type = wall-inviscid
[bc_z_min]
type = extrapolation
[bc_z_max]
type = extrapolationMHD inflow, from src/tests/flume/verification/mhd/plumbing/mhd-uniform-glm.ini:
ini
[bc_z_min]
type = inflow
r = 1.0
u = 0.3
v = -0.2
w = 0.1
p = 1.0
bx = 0.8
by = 0.5
bz = -0.3Periodic faces are written the same way, type = periodic, and must be set on both faces of an axis.