CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

using C_VOF_G

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

LinkBack Thread Tools Display Modes
Old   November 28, 2013, 10:48
Default using C_VOF_G
New Member
Join Date: Nov 2013
Posts: 9
Rep Power: 6
MichaelVS is on a distinguished road
Dear CFD experts,

I urgently need your kind help!

The following udf returns the error "ACCESS_VIOLATION"

#include "udf.h"
#include "sg_mphase.h"

/************* DECLARATION OF VARIABLES *************/
Domain *d = Get_Domain(1);
Thread *t;
Thread **pt; /* pt0 - air, pt1 - ls */
cell_t c;
real gradx, grady;
/************* CODE *************/

mp_thread_loop_c (t,d,pt)
gradx = C_VOF_G (c, pt[1])[0];
grady = C_VOF_G (c, pt[1])[1];
C_UDMI(c, t, 0) = gradx;
C_UDMI(c, t, 1) = grady;

The temporary solver memory (yes) - enabled.

Why does the problem still appear?

Thank you in advance!
MichaelVS is offline   Reply With Quote


access_violation, c_vof_g

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

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