Difference between revisions of "Lateral Boundary Conditions"
From WikiROMS
Jump to navigationJump to searchLine 12: | Line 12: | ||
{| id="var_tab" style="font-family: monospace" border="1" cellspacing="0" cellpadding="5" align="center" | {| id="var_tab" style="font-family: monospace" border="1" cellspacing="0" cellpadding="5" align="center" | ||
! align="center" | CPP | ! align="center" | CPP | ||
! align="center" | Logical Switch : IF (...) THEN | ! align="center" | Logical Switch: IF (...) THEN | ||
|- bgcolor="white" | |- bgcolor="white" | ||
|align="right" | [[Options#WEST_FSRADIATION|WEST_FSRADIATION]] | |align="right" | [[Options#WEST_FSRADIATION|WEST_FSRADIATION]] |
Revision as of 16:13, 9 September 2011
Lateral Boundary Conditions
The lateral boundary conditions are now specified with logical switches instead of CPP flags to allow nested grid configurations. Their values are loaded into the structured array:
where 1:4 are the numbered boundary edges, nLBCvar are the number LBC state variables, and Ngrids is the number of nested grids.
Changes
CPP | Logical Switch: IF (...) THEN |
---|---|
WEST_FSRADIATION | LBC(iwest, isFsur, ng) % radiation |
EAST_FSRADIATION | LBC(ieast, isFsur, ng) % radiation |
SOUTH_FSRADIATION | LBC(isouth, isFsur, ng) % radiation |
NORTH_FSRADIATION | LBC(inorth, isFsur, ng) % radiation |
WEST_TRADIATION | LBC(iwest, isTvar(:), ng) % radiation |
EAST_TRADIATION | LBC(ieast, isTvar(:), ng) % radiation |
SOUTH_TRADIATION | LBC(isouth, isTvar(:), ng) % radiation |
NORTH_TRADIATION | LBC(inorth, isTvar(:), ng) % radiation |