You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data_types.jl
+36-5Lines changed: 36 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -962,28 +962,45 @@ end
962
962
963
963
"""
964
964
965
-
Creates a 1D, 2D or 3D cartesian grid of given size. Grid can be created by defining the size and either the `extent` (length) of the grid in all directions, or by defining start & end points
965
+
Grid = CreateCartGrid(; size=(), x = nothing, z = nothing, y = nothing, extent = nothing, CharDim = nothing)
966
966
967
-
Spacing is assumed to be constant
967
+
Creates a 1D, 2D or 3D cartesian grid of given size. Grid can be created by defining the size and either the `extent` (length) of the grid in all directions, or by defining start & end points (`x`,`y`,`z`).
968
+
If you specify `CharDim` (a structure with characteristic dimensions created with `GeoParams.jl`), we will nondimensionalize the grd before creating the struct.
969
+
970
+
Spacing is assumed to be constant in a given direction
971
+
972
+
This can also be used for staggered grids, as we also create 1D vectors for the central points. The points you indicate in `size` are the corner points.
973
+
974
+
Note: since this is mostly for solid Earth geoscience applications, the second dimension is called z (vertical)
968
975
969
-
Note: since this is mostly for Solid Earth geoscience applications, the second dimension is called z (vertical)
0 commit comments