-
Notifications
You must be signed in to change notification settings - Fork 13
/
fvmToolTypes.jl
63 lines (55 loc) · 1.29 KB
/
fvmToolTypes.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
struct CellLocation{T<:Real}
x::Array{T,1}
y::Array{T,1}
z::Array{T,1}
end
struct CellSize{T<:Real}
x::Array{T,1}
y::Array{T,1}
z::Array{T,1}
end
struct FaceLocation{T<:Real}
x::Array{T,1}
y::Array{T,1}
z::Array{T,1}
end
struct MeshStructure
dimension::Real
dims::Array{Int,1}
cellsize::CellSize
cellcenters::CellLocation
facecenters::FaceLocation
corner::Array{Int,1}
edge::Array{Int,1}
end
struct CellValue # {T<:Real}
domain::MeshStructure
value::Union{Array{<:Real}, DenseArray{Bool}} #Union{Array{T}, BitArray{}}
end
struct CellVector # {T<:Real}
domain::MeshStructure
xvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
yvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
zvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
end
struct FaceValue # {T<:Real}
domain::MeshStructure
xvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
yvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
zvalue::Union{Array{<:Real}, DenseArray{Bool}} # Array{T}
end
mutable struct BorderValue{T<:Real}
a::Array{T}
b::Array{T}
c::Array{T}
periodic::Bool
end
struct BoundaryCondition
domain::MeshStructure
left::BorderValue
right::BorderValue
bottom::BorderValue
top::BorderValue
back::BorderValue
front::BorderValue
end