|
[Sponsors] |
April 18, 2006, 02:06 |
Problem with UDF in VOF model
|
#1 |
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; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
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 03: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 02:09 |