|
[Sponsors] |
how to define and initialize a one dimensional array in fluent UDF? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 7, 2019, 22:05 |
how to define and initialize a one dimensional array in fluent UDF?
|
#1 |
Senior Member
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9 |
Hi all,
I met an error while debugging my code. I need to store the species molar weight in the system in an one dimensional array. I define and initialize the array in the following way: mw[16]={1 2 3 .....16} However, fluent always give me error for this one dimensional array. I wonder what is the right way to define and initialize an one dimensional array. Best regards. Weiqiang. |
|
June 9, 2019, 23:43 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
real mw[16]={1 2 3 .....16}; |
|
June 9, 2019, 23:52 |
|
#3 |
Senior Member
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9 |
||
Tags |
array, initialization, one dimensional, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HELP----Surface Reaction UDF | Ashi | Fluent UDF and Scheme Programming | 1 | May 19, 2020 22:13 |
Fluent Radiation/porous media | Schmitt pierre-Louis | FLUENT | 26 | September 1, 2016 11:29 |
How to initialize a case file with udf? | sima | FLUENT | 2 | August 3, 2010 02:44 |
Pb with simple Fluent UDF example for inlet | francois | FLUENT | 0 | October 9, 2008 11:34 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |