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

HELP! Fluent UDF Iterate error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2008, 00:01
Default HELP! Fluent UDF Iterate error
  #1
Sam
Guest
 
Posts: n/a
Hi everybody:

I wrote a UDF to add a force in the source term. The calculation is unsteady. The Interpreted and Compile steps were successful. Then I hooked the source term in the Define-> Boundary Conditions->Fluid pannel. I marked the source term and load the y momentum with the compiled UDF. While Iterating, there were errors in Fluent sayed as:

Error:

FLUENT received fatal signal (ACCESS_VIOLATION)

1. Note exact events leading to error.

2. Save case/data under new name.

3. Exit program and restart to continue.

4. Report error to your distributor.

Error Object: ()

Could anyone help me? Thank you very much!!
  Reply With Quote

Old   July 9, 2008, 16:32
Default Re: HELP! Fluent UDF Iterate error
  #2
Paul
Guest
 
Posts: n/a
Maybe someone will help you if list the UDF code ?
  Reply With Quote

Old   July 10, 2008, 22:29
Default Re: HELP! Fluent UDF Iterate error
  #3
Sam
Guest
 
Posts: n/a
The source codes are as follows:

#include "udf.h"

DEFINE_SOURCE(cellsourceinloop, cell, thread, dS, eqn) { real source; real x[ND_ND]; /* this will hold the position vector */ real y;

real min=0.;

begin_c_loop(cell,thread) /* loops over all cell in the thread passed

in the DEFINE macro argument */ {

if (C_VOF(cell,thread) >0.&& C_VOF(cell,thread) < 1.)

{

C_CENTROID(x,cell,thread);

y = x[1];

if (fabs(y)<=min) {

min=fabs(y);

}

}

} end_c_loop(cell,thread)

begin_c_loop(cell,thread) /* loops over all cell in the thread passed

in the DEFINE macro argument */

{

if (C_VOF(cell,thread) >0.&& C_VOF(cell,thread) < 1.)

{

/* source term */

source = -1e-20/(6*3.14159*2*min);

dS[eqn] = 0.0;

return source;

}

} end_c_loop(cell,thread) }
  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
FLUENT will not iterate Marc FLUENT 3 July 12, 2007 09:20
Error and cannot iterate Sangeeta FLUENT 6 April 5, 2007 06:23
Error during iterate rayy FLUENT 3 February 24, 2007 03:12
floating point error when starting to iterate Ralf Schmidt FLUENT 1 June 2, 2006 07:00
Fluent - Iterate Command Harish FLUENT 5 April 12, 2005 04:30


All times are GMT -4. The time now is 19:06.