|
[Sponsors] |
May 8, 2007, 06:42 |
can we initialize an array in UDF?
|
#1 |
Guest
Posts: n/a
|
Dear all, I try to initialize an array (real AC[3][60]) using the following sentences in the UDF of DEFINE_EXECUTE_AT_END(): for (i=0;i<3;i++)
{for (j=0;j<60;j++) {AC[i][j]=1.0;} } The task of this UDF is to write useful information into one file. Although this UDF can be successfully compiled, there is error information if iterate. The information is like this: 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: () If I did not initialize the array AC[][], the iteration is correct and write some information into my specified file. Could somebody give me advices on it? Thanks a lot in advance! |
|
May 10, 2007, 05:48 |
Re: can we initialize an array in UDF?
|
#2 |
Guest
Posts: n/a
|
So strange! I try to compile it using compiled. Then it works.Does the array could not be initialized if using interpreted for compile?
|
|
April 14, 2009, 13:00 |
|
#3 |
New Member
Malachy O'Rourke
Join Date: Apr 2009
Posts: 6
Rep Power: 17 |
Blueberry,
I have a similar problem which has been giving me trouble. I just posted a thread on it. What was the solution to your problem. Your second post is unclear |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
array in UDF | Kamal | FLUENT | 1 | November 7, 2013 02:15 |
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. | ksiegs2 | Fluent UDF and Scheme Programming | 0 | February 27, 2011 13:55 |
How to initialize a case file with udf? | sima | FLUENT | 2 | August 3, 2010 02:44 |
Initialising a 2-Dimensional Array in a UDF | morourke | Fluent UDF and Scheme Programming | 0 | April 14, 2009 12:55 |
UDF array problem | Malachy | FLUENT | 0 | February 10, 2009 11:41 |