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

dT/dt - FORTRAN

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2005, 20:24
Default dT/dt - FORTRAN
  #1
Malcolm
Guest
 
Posts: n/a
Hi

I am trying to write a FORTRAN routine which needs the local heating/cooling rate.

The utility USER_GETVAR can be used to get the local gradients (d/dx, d/dy, d/dz). Does anyone know how to get the local rate change?

Thanks Malcolm
  Reply With Quote

Old   July 19, 2005, 22:07
Default Re: dT/dt - FORTRAN
  #2
Robin K
Guest
 
Posts: n/a
Hi, This answer is based on CFX 4.4 (as this is what I use)...it may not helpful...sorry if this is the case!

In USRSRC (for example) to calculate dw/dt (a scalar variable), this can be done by getting the old scalar value in USRSRC:

CALL GETADD('USRSRC','VAROLD','SCAL ',ILEVEL,JSOLD)

Then dw/dt at a node would be given by something like:

(SCAL(INODE,1,1)-WORK(JSOLD+INODE-1))/DT

Note: DT can be obtained in USRSRC by including the named COMMON block /TRANSR/ TIME,DT,DTINVF,TPARM (similar to USRTRN)

Hope it helps.

RK
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fortran Compiler-CFX12.1 Araz CFX 13 March 27, 2017 06:37
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 hawk Main CFD Forum 1 April 12, 2005 23:13
visual fortran Monica Main CFD Forum 1 August 28, 2004 21:45
Fortran77 or Fortran 90 Swapnil CFX 2 November 26, 2002 16:16
Why Favoring Fortran over C/C++? Zi-Wei Chiou Main CFD Forum 35 September 26, 2001 10:34


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