CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for Inlet of an Aorta 3D, parabolic, pulsatile flow

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By MagnusJohannes
  • 1 Post By MagnusJohannes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 3, 2018, 19:29
Default UDF for Inlet of an Aorta 3D, parabolic, pulsatile flow
  #1
New Member
 
John
Join Date: Aug 2016
Posts: 4
Rep Power: 9
MagnusJohannes is on a distinguished road
Hi,

I've been searching through the threads and online. I am looking to write a UDF for blood flow through the aorta. The inlet velocity profile needs to be parabolic and transient. I have a polynomial for the pulse, which I have used in a UDF, but the profile needs to be parabolic as well.

I have tried modifying existing codes, but as a beginner my results haven't been good. Any ideas?

Thanks,

John
pawandev23 likes this.
MagnusJohannes is offline   Reply With Quote

Old   April 3, 2018, 19:54
Default Here's the code
  #2
New Member
 
John
Join Date: Aug 2016
Posts: 4
Rep Power: 9
MagnusJohannes is on a distinguished road
I've pasted my code below.



/************************************************** *********************/
/* vinlet_udf.c
*/
/* UDFs for specifying time dependant velocity profile boundary condition
*/
/************************************************** *********************/
#include "udf.h"

DEFINE_PROFILE(unsteady_velocity, thread, position)

{

real y, x[ND_ND], rad;

real z;

face_t f;

begin_f_loop(f, thread)

{
real t = RP_Get_Real("flow-time");

F_CENTROID(x, f, thread);

y = x[1];

z = x[2];

rad = pow(y*y + z*z, 0.5);


F_PROFILE(f, thread, position) = 1538234.528 * t*t*t*t*t*t*t*t*t - 6233585.283 * t*t*t*t*t*t*t*t + 10657407.82 * t*t*t*t*t*t*t - 10008440.91 * t*t*t*t*t*t + 5636807.043 * t*t*t*t*t - 1954154.406 * t*t*t*t + 412312.4917 * t*t*t - 50109.49185 * t*t + 2903.215824 * t + 7.688636046; /* This is my pulsatile polynomial*/

}

end_f_loop(f, thread)
pawandev23 likes this.
MagnusJohannes is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
About Some Concepts:Laminar flow, turbulent flow, steady flow and time-dependent flow Jing Main CFD Forum 8 October 5, 2018 17:02
Pulsatile flow at inlet of pipe model amsys CFX 5 July 20, 2016 13:18
Please help (an UDF for regulating the mass flow rate) swidi Fluent UDF and Scheme Programming 2 July 30, 2015 12:32
Please help me ( udf for regulation the mass flow rate at the inlet ) swidi Fluent UDF and Scheme Programming 0 July 7, 2015 09:17
Pulsatile blood flow in closed loops Michael F. Wolf Main CFD Forum 3 July 1, 1999 16:37


All times are GMT -4. The time now is 15:21.