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

can we initialize an array in UDF?

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

LinkBack Thread Tools Display Modes
Old   May 8, 2007, 05:42
Default can we initialize an array in UDF?
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!

  Reply With Quote

Old   May 10, 2007, 04:48
Default Re: can we initialize an array in UDF?
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?
  Reply With Quote

Old   April 14, 2009, 12:00
New Member
Malachy O'Rourke
Join Date: Apr 2009
Posts: 6
Rep Power: 8
morourke is on a distinguished road

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
morourke is offline   Reply With Quote


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

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 01:44
Initialising a 2-Dimensional Array in a UDF morourke Fluent UDF and Scheme Programming 0 April 14, 2009 11:55
UDF array problem Malachy FLUENT 0 February 10, 2009 11:41

All times are GMT -4. The time now is 13:08.