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

Urgent! Access violation of UDF using VOF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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 Off
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 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


All times are GMT -4. The time now is 21:46.