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

user fortran 'USER_GETVAR' problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2013, 11:58
Default user fortran 'USER_GETVAR' problem
  #1
New Member
 
DongGunKo
Join Date: Apr 2013
Posts: 13
Rep Power: 13
D.ko is on a distinguished road
In user fortran

I coded using USER_GETVAR functionlike below

call USER_GETVAR ('H2Og.T', CRESLT,
& Tc, CZ, DZ, IZ, LZ, RZ)
IF (CRESLT .NE. 'GOOD') GO TO 999

tcoef=1-(TC/647.096)

Tc has range from 250K to 400K
so tcoef should be a positive value.

But when I return the value tcoef and using it as a source term it shows a negative value when I see the source value through cfx solver plot graph.

My goal is to get tcoef**1.256 but tcoef has a negative value so I cannot calculate tcoef**1.256. How can I get proper value?
'tcoef' must be a positive value. it cannot be negative.
D.ko is offline   Reply With Quote

Reply

Tags
fortran code, udf code, user fortran


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Fortran and interior node information John CFX 0 August 26, 2008 23:24
User Fortran and Particle momentum source alvio CFX 0 July 30, 2008 23:52
User fortran routines, DEBUG AND OUTPUT Bloshchitsyn Vladimir CFX 5 October 29, 2007 02:31
Context of user fortran functions Bloshchitsyn Vladimir CFX 0 October 17, 2007 07:28
CFX 10 User Routine NOT in Fortran Andre CFX 14 August 9, 2006 00:03


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