|
[Sponsors] |
UDF for Inlet of an Aorta 3D, parabolic, pulsatile flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 3, 2018, 20:29 |
UDF for Inlet of an Aorta 3D, parabolic, pulsatile flow
|
#1 |
New Member
John
Join Date: Aug 2016
Posts: 4
Rep Power: 10 |
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 |
|
April 3, 2018, 20:54 |
Here's the code
|
#2 |
New Member
John
Join Date: Aug 2016
Posts: 4
Rep Power: 10 |
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) |
|
|
|
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 18:02 |
Pulsatile flow at inlet of pipe model | amsys | CFX | 5 | July 20, 2016 14:18 |
Please help (an UDF for regulating the mass flow rate) | swidi | Fluent UDF and Scheme Programming | 2 | July 30, 2015 13:32 |
Please help me ( udf for regulation the mass flow rate at the inlet ) | swidi | Fluent UDF and Scheme Programming | 0 | July 7, 2015 10:17 |
Pulsatile blood flow in closed loops | Michael F. Wolf | Main CFD Forum | 3 | July 1, 1999 17:37 |