File tree Expand file tree Collapse file tree 1 file changed +24
-6
lines changed
Expand file tree Collapse file tree 1 file changed +24
-6
lines changed Original file line number Diff line number Diff line change 11
22# M = Geometry(xmin=0.0,xmax=1.0,ymin=-1.0,ymax=0.0)
33# ==================================================================== #
4+ """
5+ Geometry()
6+
7+ Structure to initialize the geometry of the model domain.
8+ """
49@kwdef mutable struct Geometry
510 # Structural parameters ---
611 xmin :: Float64 = 0.0
1116 # H ::Float64 = 1.0
1217end
1318
19+ @kwdef mutable struct GeometryGrid
20+ xmin :: Float64 = 0.0
21+ xmax :: Float64 = 1.0
22+ ymin :: Float64 = - 1.0
23+ ymax :: Float64 = 0.0
24+ L :: Float64 = xmax - xmin
25+ H :: Float64 = ymax - ymin
26+ ncx :: Int64 = 20
27+ ncy :: Int64 = 20
28+ nvx :: Int64 = ncx + 1
29+ nvy :: Int64 = nvy + 1
30+ Δx :: Float64 = L / ncx
31+ Δy :: Float64 = H / ncy
32+ end
33+
34+ # @kwdef mutable struct Coordinates
35+ # c ::
36+ # end
37+
1438@kwdef mutable struct Physics
1539 # Physical parameters ---
1640 #
2852 Ra :: Float64 = 1e5 # Rayleigh number
2953end
3054
31- # @kwdef mutable struct Grid
32- # # Grid parameters ---
33- # #
34-
35- # end
36-
3755@kwdef mutable struct GridSpacing
3856 x :: Float64 = 0.0
3957 y :: Float64 = 0.0
You can’t perform that action at this time.
0 commit comments