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/)
-   -   Microfluidics (https://www.cfd-online.com/Forums/fluent-udf/125156-microfluidics.html)

BHUVANESH October 20, 2013 13:59

Microfluidics
 
Hi all,
when i tried to incorporate fully developed flow in fluent under laminar conditions, i got an example like this... can somebody help how to use for my problem of 400 * 4000 (dia*length) of a microchannel.. Waiting for an valid reason..



#include "udf.h"

DEFINE_PROFILE(inlet_x_velocity, thread, position)
{

real x[ND_ND]; /* this will hold the position vector */
real y, h;
face_t f;

h = 0.016; /* inlet height in m */

begin_f_loop(f,thread)
{
F_CENTROID(x, f, thread);
y = 2.*(x[1]-0.5*h)/h; /* non-dimensional y coordinate */
F_PROFILE(f, thread, position) = 0.1*(1.0-y*y);
}
end_f_loop(f, thread)

}


All times are GMT -4. The time now is 08:39.