CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Requesting for a udf for parabolic flow on given boundary condition (https://www.cfd-online.com/Forums/fluent-udf/203491-requesting-udf-parabolic-flow-given-boundary-condition.html)

Sadia Khan June 29, 2018 03:48

Requesting for a udf for parabolic flow on given boundary condition
 
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,

zobekenobe July 2, 2018 14:57

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)
}



All times are GMT -4. The time now is 04:50.