CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   how can i use a^1.25 (https://www.cfd-online.com/Forums/cfx/116111-how-can-i-use-1-25-a.html)

D.ko April 13, 2013 04:01

how can i use a^1.25
 
in UDF, using fortran, i want to use a^1.25 through a**1.25
but it returns error.

how can i use a^1.25 in fortran coding for UDF?

ghorrocks April 13, 2013 07:59

Sounds like basic fortran to me: http://www.cs.mtu.edu/~shene/COURSES...S/fortran.html

mjgraf April 14, 2013 12:13

the returned error would be good to have.
Range for "a" and the formula "a"'s result is used in.

also remember that numbers without decimals will be treated like in INTEGER and truncated.
I do not remember that if the exponent is REAL then does the result calculate as REAL? Been forever since I used fortran.

Quote:

Originally Posted by D.ko (Post 420243)
in UDF, using fortran, i want to use a^1.25 through a**1.25
but it returns error.

how can i use a^1.25 in fortran coding for UDF?



All times are GMT -4. The time now is 00:03.