CFD Online Logo CFD Online URL
Home > Forums > CD-adapco

ineteger variables

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

LinkBack Thread Tools Display Modes
Old   May 11, 2004, 14:11
Default ineteger variables
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
  Reply With Quote

Old   May 12, 2004, 04:53
Default Re: ineteger variables
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.
  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
Using ddt with different variables harly OpenFOAM 0 December 5, 2008 16: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 CD-adapco 2 October 8, 2004 08:33
rp variables phil FLUENT 0 September 18, 2003 12:01

All times are GMT -4. The time now is 14:39.