|
[Sponsors] |
![]() |
![]() |
#1 |
Guest
Posts: n/a
|
Hi, Why is it that sometimes when I calculate a variable in Posdat.f the result is given in integer numbers, even though it is a real number. Here is what I have: var(ip)=c1*t(ic,1)*log(abs(var2/c2)), where t(ic,1) is the relative temperature, c's are constants and var's are variables. Var2 is fortunately giving me good 'real' results. This should be giving me something around 0.9 but it sticks to 0 every time I call for it. Will appreciate any suggestions. Many thanks IM
|
|
![]() |
![]() |
![]() |
#2 |
Guest
Posts: n/a
|
Var in your problem must be defined with a name starting with a letter between i-n, these will always give you integer values, all the rest will give you real values.
|
|
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using ddt with different variables | harly | OpenFOAM | 0 | December 5, 2008 15:18 |
UDF for mean variables | Gab | FLUENT | 0 | September 28, 2007 16:17 |
CEL and Variables | stex | CFX | 18 | June 27, 2005 05:50 |
Variables in v3.2 | Sheila | Siemens | 2 | October 8, 2004 08:33 |
rp variables | phil | FLUENT | 0 | September 18, 2003 12:01 |