Skip to content

adam_prism_fWLayer_object

Source: src/app/prism/common/adam_prism_fWLayer_object.F90

Dependencies

Contents

Variables

NameTypeAttributesDescription
INI_SECTION_NAMEcharacter(len=7)parameterINI file section name containing flWLayer datas.

Derived Types

prism_fWLayer_object

PRISM fWLayer class definition.

Components

NameTypeAttributesDescription
layerlogicalLayer flags for each side (-x, +x, -y, +y, -z, +z).
widthreal(kind=R8P)Requested physical layer width.
Cinteger(kind=I4P)allocatableDerived layer width in cells for each block/face [nb,6].
ni_fWLinteger(kind=I4P)allocatableFWL bounds for each block/face [2,nb,6].
nj_fWLinteger(kind=I4P)allocatableFWL bounds for each block/face [2,nb,6].
nk_fWLinteger(kind=I4P)allocatableFWL bounds for each block/face [2,nb,6].
s2real(kind=R8P)Side coefficient.
ninteger(kind=I4P)FWL f function index.
alfa_Dinteger(kind=I4P)Corrected var index of D (Barbas' notation).
beta_Dinteger(kind=I4P)Corrected var index of D (Barbas' notation).
alfa_Binteger(kind=I4P)Corrected var index of B (Barbas' notation).
beta_Binteger(kind=I4P)Corrected var index of B (Barbas' notation).

Type-Bound Procedures

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

Subroutines

initialize

Initialize the fWLayer.

fortran
subroutine initialize(self, field, grid, tree, file_parameters, physics)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fWLayer_object)inoutfWLayer.
fieldtype(field_object)inField (sibling realm component, threaded in).
gridtype(grid_object)inGrid (sibling realm component, threaded in).
treetype(tree_object)inTree (sibling realm component, threaded in).
file_parameterstype(file_ini)inSimulation parameters ini file handler.
physicstype(prism_physics_object)inPhysics.

Call graph

load_from_file

Load config from file.

fortran
subroutine load_from_file(self, file_parameters, go_on_fail)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fWLayer_object)inoutPhysics.
file_parameterstype(file_ini)inSimulation parameters ini file handler.
go_on_faillogicalinoptionalGo on if load fails.

Call graph

apply_fWL_correction_fun

Applay FWL correction, direction agnostic.

fortran
subroutine apply_fWL_correction_fun(blocks_number, ngc, C, ni_fWL, nj_fWL, nk_fWL, n, s2, alfa_D, beta_D, alfa_B, beta_B, dxyz, q)

Arguments

NameTypeIntentAttributesDescription
blocks_numberinteger(kind=I4P)inBlocks number.
ngcinteger(kind=I4P)inNumber of ghost cells.
Cinteger(kind=I4P)inLayer width in cells for each block on the current face.
ni_fWLinteger(kind=I4P)inFWL bounds for each block on the current face.
nj_fWLinteger(kind=I4P)inFWL bounds for each block on the current face.
nk_fWLinteger(kind=I4P)inFWL bounds for each block on the current face.
ninteger(kind=I4P)inf component.
s2real(kind=R8P)inSide coefficient.
alfa_Dinteger(kind=I4P)inCorrected var index of D (Barbas' notation).
beta_Dinteger(kind=I4P)inCorrected var index of D (Barbas' notation).
alfa_Binteger(kind=I4P)inCorrected var index of D (Barbas' notation).
beta_Binteger(kind=I4P)inCorrected var index of D (Barbas' notation).
dxyzreal(kind=R8P)inBlock mesh spacing [3,nb].
qreal(kind=R8P)inoutField variables.

Call graph

Functions

description

Return a pretty-formatted object description.

Returns: character(len=:)

fortran
function description(self) result(desc)

Arguments

NameTypeIntentAttributesDescription
selfclass(prism_fWLayer_object)inPhysics.

Call graph

compute_fwl_factor

Return the local fWLayer damping factor for a cell at integer offset from the boundary.

Attributes: pure

Returns: real(kind=r8p)

fortran
function compute_fwl_factor(offset, cells_number, ds) result(f_value)

Arguments

NameTypeIntentAttributesDescription
offsetinteger(kind=I4P)inCell offset from the boundary, 0 at the boundary cell.
cells_numberinteger(kind=I4P)inLayer thickness in cells.
dsreal(kind=R8P)inCell size along the layer-normal direction.

Call graph