|
[Sponsors] |
July 18, 2005, 19:24 |
dT/dt - FORTRAN
|
#1 |
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 |
|
July 19, 2005, 21:07 |
Re: dT/dt - FORTRAN
|
#2 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fortran Compiler-CFX12.1 | Araz | CFX | 13 | March 27, 2017 05:37 |
Intrinsic Procedure 'ISNAN' in GNU FORTRAN 77 | hawk | Main CFD Forum | 1 | April 12, 2005 22:13 |
visual fortran | Monica | Main CFD Forum | 1 | August 28, 2004 20:45 |
Fortran77 or Fortran 90 | Swapnil | CFX | 2 | November 26, 2002 15:16 |
Why Favoring Fortran over C/C++? | Zi-Wei Chiou | Main CFD Forum | 35 | September 26, 2001 09:34 |