|
[Sponsors] |
January 9, 2006, 05:01 |
Urgent! Access violation of UDF using VOF
|
#1 |
Guest
Posts: n/a
|
Dear there,
I tried to write a UDF for the VOF simulation. The UDS is as follows: DEFINE_SOURCE(xmom_source, c, t, dS, eqn) { double source, vofl ; vofl = C_VOF (c, t) ; if ((vofl > tiny) && (vofl < (1.0 - tiny))) source = - 0.5 * vofl ; else source = 0.0 ; dS[eqn] = 0.0 ; return source ; } The problem might be the following: vof_mf = C_VOF (c, t) ; The errow message is: "Access violation of UDF using VOF" In the define menu: define->boundary conditions->fluid, when I set the above function in the mixture of fluid, there is the error message. When I set the function in the liquid and not the gas, the Fluent is OK. Could you tell me why? Please help me. Rucy |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF VOF model on Fluent | baechtel | Fluent UDF and Scheme Programming | 7 | January 20, 2016 19:13 |
UDF Access violation | therandomestname | FLUENT | 0 | April 15, 2011 18:31 |
how to access to the face value of VOF of each cell | Wei Shao | Fluent UDF and Scheme Programming | 2 | November 5, 2009 11:16 |
How to udf the wall boundary condition in VOF | gawainhe | FLUENT | 1 | December 24, 2008 20:00 |
Error (ACCESS VIOLATION) with UDF | Ale | FLUENT | 2 | May 28, 2002 03:50 |