CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

how can i use a^1.25

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2013, 04:01
Default how can i use a^1.25
  #1
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 13
D.ko is on a distinguished road
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?
D.ko is offline   Reply With Quote

Old   April 13, 2013, 07:59
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Sounds like basic fortran to me: http://www.cs.mtu.edu/~shene/COURSES...S/fortran.html
ghorrocks is offline   Reply With Quote

Old   April 14, 2013, 12:13
Default
  #3
Senior Member
 
Join Date: Dec 2009
Posts: 131
Rep Power: 19
mjgraf is on a distinguished road
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 View Post
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?
mjgraf is offline   Reply With Quote

Reply

Tags
fortran code, udf and programming


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 Off
Pingbacks are On
Refbacks are On



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