|
[Sponsors] |
July 7, 2015, 13:31 |
Pulsatile blood flow in arteries
|
#1 |
New Member
Rafael Agujetas
Join Date: Jul 2014
Posts: 13
Rep Power: 11 |
Hi everyone,
I am a beginner in Fluent, but I am working in my final thesis in blood flow simulations through arteries. I need to implement the pulsatile and sinusoidal blood velocity at inlet, similar as the attached image. I have tried with the next code but, for instance, it doesn´t consider the retrograde flow (negative velocity). /************************************************** *********************/ /* vinlet_udf.c */ /* UDFs for specifying time dependant velocity profile boundary condition */ /************************************************** *********************/ #include "udf.h"//file that contains definitions for define functions and fluent operations #define PI 3.141592654 DEFINE_PROFILE(inlet_velocity,th,i) { face_t f; begin_f_loop(f,th) double t = (CURRENT_TIME*2-floor(CURRENT_TIME*2))/2; //t is the local time within each period { if(t <= 0.218) F_PROFILE(f,th,i) = 0.5*sin(4*PI*(t+0.0160236)); else F_PROFILE(f,th,i) = 0.1; } end_f_loop(f,th); } I know that I have to create a UDF code but, as I said, I am a rookie in Fluent. Can anybody help me please?? Regards, Rafa |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pulsatile blood flow | Duncan | FLUENT | 12 | October 26, 2016 09:23 |
Pulsatile Flow Boundary Conditions | Lior | FLUENT | 3 | April 20, 2014 07:26 |
How to set pulsatile flow in cfx? | bmdaortiz | CFX | 4 | September 8, 2009 22:48 |
simulation on pulsatile flow in elastic conduit | pratyush rai | FLUENT | 0 | December 13, 2005 03:28 |
blood flow simulation start-up hints please | olumide olododo | Main CFD Forum | 4 | May 31, 2004 11:33 |