|
[Sponsors] |
March 8, 2017, 09:57 |
Global Variable keeps resetting to 0
|
#1 |
New Member
Join Date: Nov 2016
Posts: 6
Rep Power: 10 |
Hello all,
I have a question on global variables in Fluent's UDF. I defined a global variable real x and initialized the x = 35.0; in DEFINE_INIT. However, when I access x, in a DEFINE_ADJUST function, it is reset to zero. Any help is greatly appreciated. |
|
March 9, 2017, 04:15 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
You should show your code, otherwise we can impossible find out if you did it in the right way.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
pimpleDyMFoam computation randomly stops | babapeti | OpenFOAM Running, Solving & CFD | 5 | January 24, 2018 06:28 |
How to write k and epsilon before the abnormal end | xiuying | OpenFOAM Running, Solving & CFD | 8 | August 27, 2013 16:33 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
IcoFoam parallel woes | msrinath80 | OpenFOAM Running, Solving & CFD | 9 | July 22, 2007 03:58 |
Could anybody help me see this error and give help | liugx212 | OpenFOAM Running, Solving & CFD | 3 | January 4, 2006 19:07 |