EarthBox.ModelDataContainer.Grids2dContainer.Grids — Type
Grids <: CollectionContainerData structure containing parameter and array objects associated with 2D staggered grids.
Fields
parameters::Parameters: Parameter groups for basic and staggered gridsarrays::Arrays: Array groups containing coordinates and spacing for basic and staggered
Constructor
Grids(ynum::Int, xnum::Int, ysize::Float64, xsize::Float64)::GridsCreate a new Grids collection with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-directionysize::Float64: Domain size in y-direction in metersxsize::Float64: Domain size in x-direction in meters
EarthBox.ModelDataContainer.Grids2dContainer.ParameterCollection.Parameters — Type
Parameters <: AbstractParameterCollectionParameter collection for 2D staggered grids.
Fields
grid_options::GridOptions: Grid type optionsgeometry::GridGeometry: Dimensions and resolution of basic gridsrefinement::GridRefinement: T-type grid refinement parameters
Constructor
Parameters(ynum::Int, xnum::Int, ysize::Float64, xsize::Float64)Create a new Parameters collection with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-directionysize::Float64: Domain size in y-direction in metersxsize::Float64: Domain size in x-direction in meters
EarthBox.ModelDataContainer.Grids2dContainer.ParameterCollection.GridOptionsGroup.GridOptions — Type
GridOptions <: AbstractParameterGroupParameter group for grid options.
Fields
itype_grid::ParameterInt: Grid option IDstype_grid::ParameterStr: Grid option nameobj_list::Vector{ParameterInt}: List of parameter objects
Nested Dot Access
itype_grid = model.grids.parameters.grid_options.itype_grid.valuestype_grid = model.grids.parameters.grid_options.stype_grid.value
Constructor
GridOptions()Create a new GridOptions parameter group with default values.
Returns
GridOptions: New GridOptions parameter group with initialized values
EarthBox.ModelDataContainer.Grids2dContainer.ParameterCollection.GridGeometryGroup.GridGeometry — Type
GridGeometry <: AbstractParameterGroupParameter group for basic grid geometry parameters.
Fields
ynum::ParameterInt: Number of basic grid points in y-directionxnum::ParameterInt: Number of basic grid points in x-directionysize::ParameterFloat: Height of model in metersxsize::ParameterFloat: Width of model in metersystpavg::ParameterFloat: Average spacing of basic grid in y-direction in metersxstpavg::ParameterFloat: Average spacing of basic grid in x-direction in metersymin::ParameterFloat: Minimum y-coordinate of model domain in metersymax::ParameterFloat: Maximum y-coordinate of model domain in metersxmin::ParameterFloat: Minimum x-coordinate of model domain in metersxmax::ParameterFloat: Maximum x-coordinate of model domain in metersxsize_start::ParameterFloat: Initial width of model in metersobj_list::Vector{Union{ParameterFloat, ParameterInt}}: List of parameter objects
Nested Dot Access
ynum = model.grids.parameters.geometry.ynum.valuexnum = model.grids.parameters.geometry.xnum.valueysize = model.grids.parameters.geometry.ysize.valuexsize = model.grids.parameters.geometry.xsize.valueystpavg = model.grids.parameters.geometry.ystpavg.valuexstpavg = model.grids.parameters.geometry.xstpavg.valueymin = model.grids.parameters.geometry.ymin.valueymax = model.grids.parameters.geometry.ymax.valuexmin = model.grids.parameters.geometry.xmin.valuexmax = model.grids.parameters.geometry.xmax.valuexsize_start = model.grids.parameters.geometry.xsize_start.value
Constructor
GridGeometry(ynum::Int, xnum::Int, ysize::Float64, xsize::Float64)Create a new GridGeometry parameter group with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-directionysize::Float64: Domain size in y-direction in metersxsize::Float64: Domain size in x-direction in meters
Returns
GridGeometry: New GridGeometry parameter group with initialized values
EarthBox.ModelDataContainer.Grids2dContainer.ParameterCollection.GridRefinementGroup.GridRefinement — Type
GridRefinement <: AbstractParameterGroupParameter group for grid refinement parameters.
Fields
dx_highres::ParameterFloat: Constant horizontal grid resolution in high-resolution area in metersdx_lowres::ParameterFloat: Average horizontal grid resolution in low-resolution area in metersxo_highres::ParameterFloat: x-location of first node of high-resolution area in metersixo_highres::ParameterInt: x-index of first node of high-resolution areaxf_highres::ParameterFloat: x-location of last node of high-resolution area in metersdy_highres::ParameterFloat: Constant vertical grid resolution in high-resolution area in metersdy_lowres::ParameterFloat: Average vertical grid resolution in low-resolution area in metersyf_highres::ParameterFloat: y-location of last node of high-resolution area in metersiuse_trench::ParameterInt: Flag to use trench location for refinementtrench_location::ParameterFloat: x-location of trench in metersiuse_refinement_delay::ParameterInt: Flag to delay grid refinementrefinement_time::ParameterFloat: Time to start grid refinement in Myrrefinement_flag::ParameterInt: Flag indicating if grid is currently refinediuse_refinement_gap::ParameterInt: Flag to temporarily disable refinementrefinement_gap_start_time::ParameterFloat: Time to start refinement gap in Myrrefinement_gap_end_time::ParameterFloat: Time to end refinement gap in Myrobj_list::Vector{Union{ParameterFloat, ParameterInt}}: List of parameter objects
Nested Dot Access
dx_highres = model.grids.parameters.refinement.dx_highres.valuedx_lowres = model.grids.parameters.refinement.dx_lowres.valuexo_highres = model.grids.parameters.refinement.xo_highres.valueixo_highres = model.grids.parameters.refinement.ixo_highres.valuexf_highres = model.grids.parameters.refinement.xf_highres.valuedy_highres = model.grids.parameters.refinement.dy_highres.valuedy_lowres = model.grids.parameters.refinement.dy_lowres.valueyf_highres = model.grids.parameters.refinement.yf_highres.valueiuse_trench = model.grids.parameters.refinement.iuse_trench.valuetrench_location = model.grids.parameters.refinement.trench_location.valueiuse_refinement_delay = model.grids.parameters.refinement.iuse_refinement_delay.valuerefinement_time = model.grids.parameters.refinement.refinement_time.valuerefinement_flag = model.grids.parameters.refinement.refinement_flag.valueiuse_refinement_gap = model.grids.parameters.refinement.iuse_refinement_gap.valuerefinement_gap_start_time = model.grids.parameters.refinement.refinement_gap_start_time.valuerefinement_gap_end_time = model.grids.parameters.refinement.refinement_gap_end_time.value
Constructor
GridRefinement()Create a new GridRefinement parameter group with default values.
Returns
GridRefinement: New GridRefinement parameter group with initialized values
EarthBox.ModelDataContainer.Grids2dContainer.ArrayCollection.Arrays — Type
Arrays <: AbstractArrayCollectionData structure containing array groups for basic and staggered grids.
Fields
basic::BasicGrid: Coordinate and nodal spacing arrays for basic gridstaggered_vy::StaggeredVyGrid: Coordinate and nodal spacing arrays for staggered Vy gridstaggered_vx::StaggeredVxGrid: Coordinate and nodal spacing arrays for staggered Vx gridpressure::PressureGrid: Coordinate and nodal spacing arrays for pressure nodes
Constructor
Arrays(ynum::Int, xnum::Int)::ArraysCreate a new Arrays collection with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-direction
EarthBox.ModelDataContainer.Grids2dContainer.ArrayCollection.BasicGridGroup.BasicGrid — Type
BasicGrid <: AbstractArrayGroupArray group containing coordinates and spacing for basic grid.
Fields
gridx_b::GridArray1DState:(xnum): x-coordinates of basic grid nodes in meters.xstp_b::GridArray1DState:(xnum - 1): Width of cells in x-direction for basic grid in meters.gridy_b::GridArray1DState:(ynum): y-coordinates of basic grid nodes in meters.ystp_b::GridArray1DState:(ynum - 1): Width of cells in y-direction for basic grid in meters.
Nested Dot Access
gridx_b = model.grids.arrays.basic.gridx_b.arrayxstp_b = model.grids.arrays.basic.xstp_b.arraygridy_b = model.grids.arrays.basic.gridy_b.arrayystp_b = model.grids.arrays.basic.ystp_b.array
Constructor
BasicGrid(ynum::Int, xnum::Int)Create a new BasicGrid array group with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-direction
Returns
BasicGrid: New BasicGrid array group with initialized arrays
EarthBox.ModelDataContainer.Grids2dContainer.ArrayCollection.StaggeredVyGridGroup.StaggeredVyGrid — Type
StaggeredVyGrid <: AbstractArrayGroupArray group containing coordinates and spacing for staggered Vy grid.
Fields
gridx_vy::GridArray1DState:(xnum + 1): x-locations of staggered Vy grid nodes including ghost nodes in meters.xstp_vy::GridArray1DState:(xnum): Width of staggered vy grid cells in x-direction in meters.
Nested Dot Access
gridx_vy = model.grids.arrays.staggered_vy.gridx_vy.arrayxstp_vy = model.grids.arrays.staggered_vy.xstp_vy.array
Constructor
StaggeredVyGrid(xnum::Int)Create a new StaggeredVyGrid array group with the given grid dimensions.
Arguments
xnum::Int: Number of grid points in x-direction
Returns
StaggeredVyGrid: New StaggeredVyGrid array group with initialized arrays
EarthBox.ModelDataContainer.Grids2dContainer.ArrayCollection.StaggeredVxGridGroup.StaggeredVxGrid — Type
StaggeredVxGrid <: AbstractArrayGroupArray group containing coordinates and spacing for staggered Vx grid.
Fields
gridy_vx::GridArray1DState:(ynum + 1): y-locations of staggered Vx grid nodes including ghost nodes in meters.ystp_vx::GridArray1DState:(ynum): Width of staggered vx grid cells in y-direction in meters.
Nested Dot Access
gridy_vx = model.grids.arrays.staggered_vx.gridy_vx.arrayystp_vx = model.grids.arrays.staggered_vx.ystp_vx.array
Constructor
StaggeredVxGrid(ynum::Int)Create a new StaggeredVxGrid array group with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-direction
Returns
StaggeredVxGrid: New StaggeredVxGrid array group with initialized arrays
EarthBox.ModelDataContainer.Grids2dContainer.ArrayCollection.PressureGridGroup.PressureGrid — Type
PressureGrid <: AbstractArrayGroupArray group containing coordinates and spacing for pressure grid.
Fields
gridy_pr::GridArray1DState:(ynum - 1): y-locations of pressure grid nodes in meters.ystp_pr::GridArray1DState:(ynum - 2): Width of pressure cells in y-direction in meters.gridx_pr::GridArray1DState:(xnum - 1): x-locations of pressure grid nodes in meters.xstp_pr::GridArray1DState:(xnum - 2): Width of pressure cells in x-direction in meters.
Nested Dot Access
gridy_pr = model.grids.arrays.pressure.gridy_pr.arrayystp_pr = model.grids.arrays.pressure.ystp_pr.arraygridx_pr = model.grids.arrays.pressure.gridx_pr.arrayxstp_pr = model.grids.arrays.pressure.xstp_pr.array
Constructor
PressureGrid(ynum::Int, xnum::Int)Create a new PressureGrid array group with the given grid dimensions.
Arguments
ynum::Int: Number of grid points in y-directionxnum::Int: Number of grid points in x-direction
Returns
PressureGrid: New PressureGrid array group with initialized arrays