CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   call posdat.f at the end of the run (http://www.cfd-online.com/Forums/cd-adapco/54935-call-posdat-f-end-run.html)

Murali October 15, 2005 23:12

call posdat.f at the end of the run
 
This is a question that I saw in Jul 2005. To my knowledge this can be done as follows:

(1) POSDAT has the vairable 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. I think the program 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) <SETTOL it means, the convergence criterion is attained and iteration is about to stop. (5) Write the values using POSDAT.

Hope this helps.

Boban October 16, 2005 03:48

Re: call posdat.f at the end of the run
 
Thank you very much for your help. It works in way you described.

Murali October 16, 2005 13:02

Re: call posdat.f at the end of the run
 
Glad to be of help. I was investigating this myself to write from POSDAT after convergence for some problem. Thought I could share. Good luck.


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