CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Wiki > Posdat.f

Posdat.f

From CFD-Wiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
This user subroutine is one of the most powerful subroutines in '''STAR CD'''. It allowes the user to access variables from the code and modify them.
This user subroutine is one of the most powerful subroutines in '''STAR CD'''. It allowes the user to access variables from the code and modify them.
 +
 +
 +
== Call posdat.f at the end of the run==
 +
 +
# POSDAT has the variable RESOR passed into it by default.
 +
# RESOR (IV,IMAT) is the residual of variable IV in material IMAT. IV is the variable number like U=1, V=2 etc. Refer to nom.inc for the details.
 +
# Write an IF stmt in POSDAT using LEVEL Eq 2. The STAR solver visits POSDAT once before and after iteration even after convergence. Else use level 1.
 +
# The IF stmt must have max(RESOR) to be verified with the set tolerance SETTOL. if max(RESOR).

Revision as of 14:01, 21 May 2007

This user subroutine is one of the most powerful subroutines in STAR CD. It allowes the user to access variables from the code and modify them.


Call posdat.f at the end of the run

  1. POSDAT has the variable RESOR passed into it by default.
  2. RESOR (IV,IMAT) is the residual of variable IV in material IMAT. IV is the variable number like U=1, V=2 etc. Refer to nom.inc for the details.
  3. Write an IF stmt in POSDAT using LEVEL Eq 2. The STAR solver visits POSDAT once before and after iteration even after convergence. Else use level 1.
  4. The IF stmt must have max(RESOR) to be verified with the set tolerance SETTOL. if max(RESOR).
My wiki