CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Problem with UDF in VOF model

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

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

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. */


return source; }

  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 October 18, 2017 07:17
Weld surface deformation by VOF model minhaj_iut FLUENT 5 February 27, 2017 00:51
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 07:30.