LayerCenter

  • Scroll to top of this topic Scroll to Top of Page

  • Print the current topic Print Topic

  • No expanding elements on this page Show/Hide Expanders

For MODFLOW and PHAST models, LayerCenter({{Column, Row,}Layer}) returns the Z coordinate of the center of the cell (MODFLOW) or element (PHAST) specified by its arguments (if any). In SUTRA and MODFLOW 6 DISV models, LayerCenter returns the Z coordinate or the node or the center of the element or cell. The function has three optional arguments: Column, Row, and Layer. If these arguments are provided, they specify the element or cell for which the area should be calculated. If they are not provided, the function uses the column, row, and layer of the element or cell for which the formula is being calculated. If only one of the arguments is provided, it is treated as the layer. If any of the arguments has an invalid value, the function returns zero.

For SUTRA and MODFLOW 6 DISV models, Row should always be 1 and Column represent the node, element, or cell number in the top view of the model.