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

Requesting for a udf for parabolic flow on given boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 29, 2018, 04:48
Default Requesting for a udf for parabolic flow on given boundary condition
  #1
New Member
 
Sadia Khan
Join Date: Jun 2018
Posts: 2
Rep Power: 0
Sadia Khan is on a distinguished road
Computational Domain Vθ = 0
Inlet Vr = 0
Vz = 0.265(1 - (r/R)2)
(parabolic velocity profile)
Symmetry Line Vr = 0
Wall-blood interface Vz = 0 (no-slip condition)
Vr = 0 (non-porous wall)


diameter of the artery = 3 mm
https://biomedical-engineering-onlin.../1475-925X-8-8
i need the udf of this paper,
Sadia Khan is offline   Reply With Quote

Old   July 2, 2018, 15:57
Default
  #2
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
Code:
#include "udf.h"

DEFINE_PROFILE(inlet_velocity, ft, ind)
{
    face_t f;
    real pos[ND_ND];
    real R = 3;
    real V;
    real centre = 0.0;

    begin_f_loop(f, ft)
    {
        F_CENTROID(pos,f,ft);
        V = 0.265*(1-2*(fabs(pos[1]-centre)/R));
        F_PROFILE(f,ft,ind) = V;
    }
    end_f_loop(f,ft)
}
zobekenobe 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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
3D Windturbine simulation in SU2 k.vimalakanthan SU2 15 October 12, 2023 06:53
Appropriate pressure boundary condition in incompressible flow lonelywing OpenFOAM Running, Solving & CFD 21 June 6, 2022 10:44
UDF to adjust flow rate at outflow boundary condition kharnabnew FLUENT 1 May 24, 2016 07:33
UDF for pipe flow boundary condition SNeCu Fluent UDF and Scheme Programming 0 March 15, 2016 23:21


All times are GMT -4. The time now is 14:06.