CFD Online Logo CFD Online URL
Home > Forums > FLUENT

need helpe

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   December 12, 2011, 10:54
Default need helpe
Join Date: Dec 2010
Posts: 30
Rep Power: 6
rubis is on a distinguished road
hi ;
i try to write udf for adding the concentration and the surface tension of surfactant using uds but i have problems with declaration of uds in my udf.
this is my udf.
/************************************************** **********************/
/* Implementation of the surface tension using user-defined scalars */
/************************************************** *********************/

#include "udf.h"

#define MW 288.38 /*SDS Molecular weight*/
#define rho 370 /*SDS density kg/m^3*/
#define CST 0.001 /*convert dyn/cm to N/m*/

real yi; /*mass fraction*/

/********concentration equation*********/
DEFINE_SOURCE(surf_concen, c, t, dS, eqn)

surf_concen = C_UDSI(c,t,0);

return UDSI(cell, thread, surf_concen);

/*********surface tension equation************/

DEFINE_SOURCE(surface_tension, c, t, dS, eqn)
C_UDSI(c, t,surf_tens) = (68.49-log(exp(surf-concen))*(6.516+3.353*log(exp(surf-concen))))*CST;

return C_UDSI_DIFF(c, t,surf_tens) ;

thank you .
please help me.
rubis is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation of Fluent SAM FLUENT 22 November 10, 2010 13:03

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