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

how can i use a^1.25

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

Reply
 
LinkBack Thread Tools 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: 4
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: 10,929
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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: 129
Rep Power: 10
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

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



All times are GMT -4. The time now is 02:12.