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

Problem with UDF in VOF model

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 18, 2006, 01:06
Default Problem with UDF in VOF model
  #1
vijay
Guest
 
Posts: n/a
Hi,

I am doing simulation using VOF model. I am using a UDF to add a source term in y-momentum equation. But when I click "iterate" it is giving some error. Can anybody help me in identifying the mistake in this UDF.

DEFINE_SOURCE(cell_y_source, cell, thread, dS, eqn) { real source;

Thread *t_phase2 = THREAD_SUB_THREAD(THREAD_T0(thread),1);

source=0.0; if (C_VOF(cell,t_phase2)<1)

{

source = 0.0;

dS[eqn] = 0.0;

} else

/* source term */

source = C_R(cell,thread)*29.43;

/* derivative of source term w.r.t. x-velocity. */

dS[eqn]=0.0;

return source; }

  Reply With Quote

Reply

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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 30 March 21, 2014 06:34
Weld surface deformation by VOF model minhaj_iut FLUENT 0 February 12, 2011 08:23
UDF for Heat Exchanger model francois louw FLUENT 2 July 16, 2010 02:21
Doubts UDS Flux, UDS Unsteady for VOF model kel85uk FLUENT 0 March 17, 2010 09:53
writing UDF for modelig mass transfer for VOF ardalan soleymani FLUENT 0 July 11, 2007 01:09


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