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

need helpe

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2011, 09:54
Default need helpe
  #1
Member
 
rose
Join Date: Dec 2010
Posts: 30
Rep Power: 15
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

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
Validation of Fluent SAM FLUENT 22 November 10, 2010 12:03


All times are GMT -4. The time now is 05:47.