Skip to content

Commit a5c4ccd

Browse files
authored
Merge pull request #78 from LukasFuchs/main
test docs
2 parents c93cfce + e02915a commit a5c4ccd

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

src/Structures.jl

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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
@@ -11,6 +16,25 @@
1116
# H ::Float64 = 1.0
1217
end
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
#
@@ -28,12 +52,6 @@ end
2852
Ra ::Float64 = 1e5 # Rayleigh number
2953
end
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

0 commit comments

Comments
 (0)