Saturday, 17 November 2012
Joining the Pieces of the Puzzle
Friday, 16 November 2012
Confirming the 4th Change in Direction and Some Relief!!
Wednesday, 14 November 2012
Serious Glitches..! Worried Now..
11:36 pm
Have been trying to avoid it, but that's going to be dangerous, gotto face it, and find a way out! Not run away! So here we go!
After reading the "Model of the Main Arterial Tree" part from the paper very carefully I have realised the following things:
The model is based on, firstly, the Mass Conservation Equation given by,
where,
v is the mean blood flow velocity
S is the arterial cross-section
z is the distance from the aortic valve along the arterial tree
psi is a function describin outflow from the small arteries which are not geometrically depicted
They have mentioned in the paper that they’ve solved this equation using the method of characteristics. Studied it with the help of this video and tried to solve my equation in the following way: (hope it is all understandable)
As you can see, I encounter many problems while trying to solve the mass conservation equation.
Firstly, I do not know if v is a variable which is dependent on the value of z or not. Thinking about it, we realize that the velocity does actually change depending on its distance away from the heart. But that happens only due to the change in pressure with distance which we rae going to accommodate for. If we include this dependence, the equation becomes difficult to be solved using the method of characteristics. Saying this, coz I tried doing that as shown below:
Thus, I decided to assume it independent of z, and continued as shown in the first image.
Secondly, knowing that v is the mean velocity, we try to understand the meaning of the word mean velocity. Considering the fact that in the paper, they have mentioned that the objective of using this method is to be able to compute blood velocity and pressure at any point in the arterial tree as the contribution of the incident and reflected velocity and pressure. Which implies that, by mean velocity, they mean, the resultant of velocity and pressure from maternal side and the fetal side. This makes us think that the v mentioned, needs to be the input to the simulink block that will solve the mass conservation equation, and before entering this block, there needs to exist a simulink block that will calculate this mean velocity. At whichever point in the arterial tree we need to check the velocity or pressure, we need to do the calculation for that part.
This conclusion gives rise to a controversy. Is this input velocity the same that will be shown as the output velocity? Cannot accurately answer this question right now, coz we haven’t come to that point in the process still, but all that I can guess right now, is that, this input velocity will be acted upon by the mass conservation equation, then the stokes navier equation etc. and get modified. Coming to think of it now, I feel that the input to the system is this mean velocity, but the output might be the pressure wave. This might be needed to be converted into velocity somehow, since none of the equations in this part give velocity as the output.<== Problem
Going into the depth of the above mentioned problem, now we need to
- Figure out how to calculate the mean velocity
- Find the expression that describes the relation between velocity and pressure of an incompressible fluid.
Once the mean velocity calculation problem is solved, we need to know how to incorporate this into the mass conservation equation, and design a simulink block that implements the mass conservation equation.
So now, let us talk about this solution of the mass conservation equation, In the equation, they have mentioned psi, whose value hasn’t been mentioned anywhere in the paper. Need to ask what value to input as PSI. Assuming currently that it is zero, I move ahead. As shown in the first image, this gives the solution as
S= f(zo)=f(z-vt)
This equation says that the cross sectional area for the curve represented by z-vt = zo is given by the function which is the initial condition at t=0 for that curve.
For all arterial segment we have been given the length of the segment and the cross sectional area at its 2 ends. The table is as follows:
Now as the solution the cross section needs to be a function of z-vt. What function? As the tutorial video suggests, this function is the initial condition given. What is the initial condition given to us? These are just numbers. Thus we need to form relationships, preferably, linear from the given values of cross sections and length. To do this, I used curve fitting tool from MATLAB. Here’s the video of how I did it. Sorry for the delay between video and audio, and the overall bad quality.
Okay, the video refuses to get uploaded, sorry! Here are the equations that I got:
For all the above expressions, y is the respective Cross section and x is the respective position coordinate.
For arterial segment 1 and arterial segment 5, the cross section remains constant. That is it does not change for any value of length. Thus the initial value remains the same for all space coordinates.
Now that we have a relationship that describes the initial condition and relates cross section with the z coordinates, we need to figure out how to incorporate the value of z into the initial condition and how to incorporate the initial condition into the solution.
For each of the above x, we substitute z- vt where z is the distance from the aortic valve along the arterial tree to the beginning / end (?) of the arterial segment, v is the computed mean velocity and t is the simulation time. So now, we have got the logic for doing a part of the Arterial segments modeling.
After this, is the block that computes the arterial vascular elasticity and incorporates that into the model. This part is given as follows:
So, c1(p) is a polynomial block, and c2(z) is a waveform to be approximated. these can be implemented on SIMULINK.
All this to be implemented on MATLAB and have to think about the mean velocity block, tomorrow!
ATB!
Saturday, 10 November 2012
Hello World!
04:43 pm
Trying to work on the project, but my cousin sister keeps disturbing me.. Making aweful noises in my ear.. Cheh.. But hey!! It’s fun!!
Trying out Windows Writer for the first time.. Let’s see how this goes!
Yo!! ATB!
Edit1: My sis angry! So, … Credit of the Writer Discovery to her!!! Maskaa!!
Monday, 5 November 2012
Modeling the Feto-Maternal Circulation Arterial Tree
3. Peripheral areas:
(PA.1) Brain
(PA.2) Kidneys
(PA.3) Peripherals at Primitive Iliac Artery Bifurcation
(PA.4) Peripherals at External Iliac Artery Bifurcation
(PA.5) Peripherals at Internal Iliac Artery Bifurcation
4. Arterial Segments:
(Seg.1) Ascending Aorta (Ductus Arteriosus)
(Seg.2) Thoracic Aorta
(Seg.3) Abdominal Aorta
(Seg.4) Primitive Iliac Artery
(Seg.5) Internal Iliac Artery
(Seg.6) Umbilical Arteries
(Seg.7) Uterine Arteries
5. Bifurcations:
(Bif.1) Cerebral Arteries
(Bif.2). Renal Arteries
(Bif.3) Primitive Iliac Arteries
(Bif.4) External Iliac Arteries
(Bif.5) Internal Iliac Arteries
6. Placenta on the fetal side of the feto-maternal circulation
7. Placenta on the maternal side of the feto-maternal circulation
1. Modeling of the fetal heart:
Fetal Heart parameters, ventricular pressure and ventricular volume follow the relation,
p(t) => ventricular pressure in mmHg
V(t) => ventricular volume in ml
V0 => Reference Volume
E(t) => Ventricle Elastance
In this relation, p(t) and V(t) are unknowns. Thus, I had to create a pressure wave that approximates the one given in the paper. I used the following values:
pressure axis => [0, 0, 1.09, 1.49, 1.79, 1.93, 1.99, 1.99164, 2, 1.96, 1.9, 1.82, 1.65, 0, 0]
To find E(t), there exists an equation
where En(t) = 5.412t^6 - 20.066t^5 + 25.542t^4 - 13.71t^3 + 2.714t^2 + 1.08t + 0.029
After the analysis of fetal lamb and dog heart and approximately equating it to human fetus, we obtain, Emax = 6 mmHg per ml and V0 = -8ml.
Error: The output produced shows pulsetile increase in pressure, but it does not reduce to the baseline!
2. Modeling of the maternal uterine arteries:
I approximated the above shown waveform which was the only information provided about the uterine pressure. The values that I used are:
Pressure values => [78, 77, 78, 80, 90, 100, 110, 118, 122, 130, 131, 130, 122, 118, 112, 108, 103, 100, 90, 87, 84, 82, 84, 84, 80, 79, 78]
Time Values => [0, 0.05, 0.1, 0.12, 0.14, 0.16, 0.18, 0.2, 0.22, 0.24, 0.25, 0.26, 0.28, 0.3, 0.32, 0.34, 0.36, ,0.38, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8]
3. Peripheral Areas
Q(t) => Blood flow
R => Resistance of PA
C => Compliance of PA
pc => Critical Pressure of PA

With the above mentioned values from the paper and the equation mentioned, I created the PA basic subsystem in Simulink as shown:
and varied the pc, R, and C values for every PA.
Arterial Segments and Bifurcations : Main arterial tree
- the density of blood
- viscosity
2. This highly mathematical part of the model in the paper, which requires the solution to the Navier - Stokes Equation as solved using Method of Characteristics, has not been provided.
Since we see that in the above mentioned paper, twhy use the PDETool, to solve the fluid flow equations, and I am using Simulink, I need to somehow interface these two. For this I just found this paper very useful.It gives an example in which they have attempted an interface between, Simulink and PDETool. Will be studying and implementing the model from these sources!
ATB!
Monday, 29 October 2012
Mathematical modeling, glitches expected
- It simple.
- Model parameter values have been provided.
- It not only talks about feto-placental circulation, but gives circulation in other important arteries like cerebral artery.
- By 2 weeks, that is, till Diwali, the simulation of this model on Simulink should be ready for review by the External Guide.
- If the model gives results that match the ones given in the paper, for a normal lady, then pathological cases could be taken up.
- This could be then presented to the ethical committee, and approved for collection of data for abnormal patients.
- Parallely, could think about writing a paper.
- How we are going to present this topic?
- Which conference to select? (Preference: International, IEEE conference)

