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

using C_VOF_G

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2013, 10:48
Default using C_VOF_G
  #1
New Member
 
anonymous
Join Date: Nov 2013
Posts: 9
Rep Power: 13
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"

DEFINE_EXECUTE_AT_END(calculate_value)
{
/************* 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)
{
begin_c_loop(c,t)
{
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;
}
end_c_loop(c,t)
}
}

The temporary solver memory (yes) - enabled.

Why does the problem still appear?

Thank you in advance!
MichaelVS is offline   Reply With Quote

Reply

Tags
access_violation, c_vof_g


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



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