Lateral Boundary Conditions
From WikiROMS
Jump to navigationJump to searchLateral Boundary Conditions
The lateral boundary conditions are specified by logical switches to facilitate applications with nested grids. It also allows to set different boundary conditions between the nonlinear model and the adjoint/tangent models. In addition we can have different boundary conditions between active and passive tracers. The LBC structure is allocated as:
where 1:4 are the numbered boundary edges, nLBCvar is the number of LBC state variables, and Ngrids is the number of nested grids. For example, for free-surface gradient boundary conditions we have:
LBC(iwest, isFsur, ng) % gradient
LBC(ieast, isFsur, ng) % gradient
LBC(isouth, isFsur, ng) % gradient
LBC(inorth, isFsur, ng) % gradient
integer :: nLBCvar
TYPE T_LBC
logical :: acquire ! process lateral boundary data
logical :: Chapman
logical :: clamped
logical :: closed
logical :: Flather
logical :: gradient
logical :: nested
logical :: nudging
logical :: periodic
logical :: radiation
logical :: reduced
END TYPE T_LBC
TYPE (T_LBC), allocatable :: LBC(:,:,:)
TYPE (T_LBC), allocatable :: ad_LBC(:,:,:)
TYPE (T_LBC), allocatable :: tl_LBC(:,:,:)
LBC(ieast, isFsur, ng) % gradient
LBC(isouth, isFsur, ng) % gradient
LBC(inorth, isFsur, ng) % gradient
integer :: nLBCvar
TYPE T_LBC
logical :: acquire ! process lateral boundary data
logical :: Chapman
logical :: clamped
logical :: closed
logical :: Flather
logical :: gradient
logical :: nested
logical :: nudging
logical :: periodic
logical :: radiation
logical :: reduced
END TYPE T_LBC
TYPE (T_LBC), allocatable :: LBC(:,:,:)
TYPE (T_LBC), allocatable :: ad_LBC(:,:,:)
TYPE (T_LBC), allocatable :: tl_LBC(:,:,:)
Conversion Tables
The following tables describe the conversion from CPP options to logical structures for each state variable:
TKE mixing | |
---|---|
CPP | Logical Switch, IF (...) THEN |
WESTERN_WALL | LBC(iwest, isMtke, ng) % closed |
EASTERN_WALL | LBC(ieast, isMtke, ng) % closed |
SOUTHERN_WALL | LBC(isouth, isMtke, ng) % closed |
NORTHERN_WALL | LBC(inorth, isMtke, ng) % closed |
WEST_KGRADIENT | LBC(iwest, isMtke, ng) % gradient |
EAST_KGRADIENT | LBC(ieast, isMtke, ng) % gradient |
SOUTH_KGRADIENT | LBC(isouth, isMtke, ng) % gradient |
NORTH_KGRADIENT | LBC(inorth, isMtke, ng) % gradient |
EW_PERIODIC | LBC(iwest, isMtke, ng) % periodic LBC(ieast, isMtke, ng) % periodic |
NS_PERIODIC | LBC(isouth, isMtke, ng) % periodic LBC(inorth, isFsur, ng) % periodic |
WEST_KRADIATION | LBC(iwest, isMtke, ng) % radiation |
EAST_KRADIATION | LBC(ieast, isMtke, ng) % radiation |
SOUTH_KRADIATION | LBC(isouth, isMtke, ng) % radiation |
NORTH_KRADIATION | LBC(inorth, isMtke, ng) % radiation |