|
[Sponsors] | |||||
how to define and initialize a one dimensional array in fluent UDF? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 10 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 35 ![]() ![]() |
Code:
real mw[16]={1 2 3 .....16};
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 10 ![]() |
||
|
|
|
|
![]() |
| Tags |
| array, initialization, one dimensional, udf |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |