|
[Sponsors] |
July 8, 2008, 23:01 |
HELP! Fluent UDF Iterate error
|
#1 |
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!! |
|
July 9, 2008, 15:32 |
Re: HELP! Fluent UDF Iterate error
|
#2 |
Guest
Posts: n/a
|
Maybe someone will help you if list the UDF code ?
|
|
July 10, 2008, 21:29 |
Re: HELP! Fluent UDF Iterate error
|
#3 |
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) } |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FLUENT will not iterate | Marc | FLUENT | 3 | July 12, 2007 08:20 |
Error and cannot iterate | Sangeeta | FLUENT | 6 | April 5, 2007 05:23 |
Error during iterate | rayy | FLUENT | 3 | February 24, 2007 02:12 |
floating point error when starting to iterate | Ralf Schmidt | FLUENT | 1 | June 2, 2006 06:00 |
Fluent - Iterate Command | Harish | FLUENT | 5 | April 12, 2005 03:30 |