BTypes.jl |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A model in |
module BTypes
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Instances of
where the |
export Vessel, Heart, Blood
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Each vessel in the arterial system is represented by a single instance of type
|
type Vessel
label :: String
#Topological notation
ID :: Int64
sn :: Int64
tn :: Int64
rn :: Int64
#Numerical constants
M :: Int64
dx :: Float64
invDx :: Float64
halfDx :: Float64
Ccfl :: Float64
#Physical constants
beta :: Array{Float64, 1}
gamma :: Array{Float64, 1}
gamma_ghost :: Array{Float64, 1}
A0 :: Array{Float64, 1}
dA0dx :: Array{Float64, 1}
dTaudx :: Array{Float64, 1}
Pext :: Float64
#Iterative solution
A :: Array{Float64, 1}
Q :: Array{Float64, 1}
u :: Array{Float64, 1}
c :: Array{Float64, 1}
P :: Array{Float64, 1}
#Riemann invariants
W1M0 :: Float64
W2M0 :: Float64
#Ghost cells
U00A :: Float64
U00Q :: Float64
U01A :: Float64
U01Q :: Float64
UM1A :: Float64
UM1Q :: Float64
UM2A :: Float64
UM2Q :: Float64
#Temporary files name
temp_P_name :: String
temp_Q_name :: String
temp_A_name :: String
temp_c_name :: String
temp_u_name :: String
last_P_name :: String
last_Q_name :: String
last_A_name :: String
last_c_name :: String
last_u_name :: String
#Output files name
out_P_name :: String
out_Q_name :: String
out_A_name :: String
out_c_name :: String
out_u_name :: String
#Temporary files IOstreams
temp_P :: IOStream
temp_Q :: IOStream
temp_A :: IOStream
temp_c :: IOStream
temp_u :: IOStream
last_P :: IOStream
last_Q :: IOStream
last_A :: IOStream
last_c :: IOStream
last_u :: IOStream
#Saving locations
node2 :: Int64
node3 :: Int64
node4 :: Int64
#Peripheral boundary condition
Rt :: Float64
R1 :: Float64
R2 :: Float64
Cc :: Float64
Pc :: Float64
#Slope
slope :: Array{Float64, 1}
#MUSCLArrays
flux :: Array{Float64, 2}
uStar :: Array{Float64, 2}
vA :: Array{Float64, 1}
vQ :: Array{Float64, 1}
dU :: Array{Float64, 2}
slopesA :: Array{Float64, 1}
slopesQ :: Array{Float64, 1}
Al :: Array{Float64, 1}
Ar :: Array{Float64, 1}
Ql :: Array{Float64, 1}
Qr :: Array{Float64, 1}
Fl :: Array{Float64, 2}
Fr :: Array{Float64, 2}
end
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The inlet boundary condition is applied to the first vessel in the model. A
|
type Heart
BC_switch :: Int64
inlet_type :: String
cardiac_T :: Float64
sys_T :: Float64
initial_flow :: Float64
flow_amplitude :: Float64
input_data :: Array{Float64, 2}
end
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Blood mechanical properties.
|
type Blood
mu :: Float64
rho :: Float64
Cf :: Float64
gamma_profile :: Float64
end
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
end
|