|
[Sponsors] |
![]() |
![]() |
#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; } |
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 06:05 |
Weld surface deformation by VOF model | minhaj_iut | FLUENT | 5 | February 26, 2017 23: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 08:53 |
writing UDF for modelig mass transfer for VOF | ardalan soleymani | FLUENT | 0 | July 11, 2007 01:09 |