bc_obj Derived Type

type, private :: bc_obj

Specified a boundary condition for a variable The BC type can be among the predefined types (BC_WALL, BC_INFLOW, etc). Val(:,:,:) stores the imposed values for BC_DIRICHLET, or the gradient in the normal for direction for BC_NEUMANN. Be mindful of staggering: E.g. if the variable is cell-centered (e.g. P) and the BC is on BC_LEFT in the 1-DIR, then val(i,j,k) is on x(i),ym(j),zm(k). For a face-centered variable like V (on xm(i),y(j), zm(k)) if the BC is on BC_LEFT in the 1-DIR, then val(i,j,k) is on x(i),y(j),zm(k).


Inherited by

type~~bc_obj~~InheritedByGraph type~bc_obj bc_obj type~region_obj region_obj type~region_obj->type~bc_obj BC type~bc_set bc_set type~bc_set->type~region_obj region type~cdifs_obj cdifs_obj type~cdifs_obj->type~bc_set bcs

Components

Type Visibility Attributes Name Initial
character(len=str8), public :: name

Name of variable

integer, public :: type = BC_UNDEFINED

Type of BC

real(kind=wp), public, pointer :: val(:,:,:)

Values on the parent region