Skip to content

adam_flume_bc_object ​

ADAM, FLUME boundary conditions class definition.

periodic is the library BC_PERIODIC, so the tree builds true periodic neighbors and the ghost exchange fills periodic ghosts across blocks and ranks (verified by src/tests/amr/test_periodic_ghost); the other kinds are filled by the backends on the boundary crown maps.

Source: src/app/flume/common/adam_flume_bc_object.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
BC_EXTRAPOLATIONinteger(kind=I4P)parameterZeroth-order extrapolation.
BC_INFLOWinteger(kind=I4P)parameterPrescribed state.
BC_WALL_INVISCIDinteger(kind=I4P)parameterInviscid (slip) wall: mirror with normal momentum negated.
BC_EXTRAPOLATION_STRcharacter(len=13)parameterAccepted spelling of BC_EXTRAPOLATION.
BC_INFLOW_STRcharacter(len=6)parameterAccepted spelling of BC_INFLOW.
BC_WALL_INVISCID_STRcharacter(len=13)parameterAccepted spelling of BC_WALL_INVISCID.
BC_PERIODIC_STRcharacter(len=8)parameterAccepted spelling of BC_PERIODIC.
INFLOW_KEYcharacter(len=2)parameterInflow primitive state keys (MHD: all 8).
SECTION_NAMEcharacter(len=8)parameterINI section names of the 6 faces.

Derived Types ​

flume_bc_object ​

FLUME boundary conditions class definition.

Components ​

NameTypeAttributesDescription
bc_typeinteger(kind=I4P)Boundary condition type of each face.
q_inflowreal(kind=R8P)allocatableConservative inflow state of each face [nv, 6].
wall_signreal(kind=R8P)allocatableWall mirror sign of each variable per direction [nv, 3] (+1 or -1).

Type-Bound Procedures ​

NameAttributesDescription
descriptionpass(self)Return pretty-printed object description.
initializepass(self)Initialize boundary conditions.
load_from_filepass(self)Load config from file.

Subroutines ​

initialize ​

Initialize boundary conditions.

fortran
subroutine initialize(self, file_parameters, physics)

Arguments

NameTypeIntentAttributesDescription
selfclass(flume_bc_object)inoutBoundary conditions.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
physicstype(flume_physics_object)inPhysics (for the inflow state conversion).

Call graph

load_from_file ​

Load config from file; type is required on every face and an unknown value is fatal.

fortran
subroutine load_from_file(self, file_parameters, physics)

Arguments

NameTypeIntentAttributesDescription
selfclass(flume_bc_object)inoutBoundary conditions.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
physicstype(flume_physics_object)inPhysics (for the inflow state conversion).

Call graph

Functions ​

description ​

Return a pretty-formatted object description.

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(flume_bc_object)inBoundary conditions.

Call graph