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

Urgent! Access violation of UDF using VOF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 9, 2006, 05:01
Default Urgent! Access violation of UDF using VOF
  #1
Rucy
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
  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
UDF VOF model on Fluent baechtel Fluent UDF and Scheme Programming 6 February 19, 2013 01:56
UDF Access violation therandomestname FLUENT 0 April 15, 2011 17: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 02:50


All times are GMT -4. The time now is 16:41.