CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   subroutine newxyz (https://www.cfd-online.com/Forums/siemens/53039-subroutine-newxyz.html)

leo October 2, 2002 22:59

subroutine newxyz
 
I use subroutine newxyz to solve moving grid problem. But when I just want to calculate time step 1, it actually use newxyz two times, time step 0 and 1.

How could I just use newxyz one time?

roadracer October 3, 2002 02:44

Re: subroutine newxyz
 
I had the same problem. I simply added an "if" statement that checks for the iteration number: if iter=1 jumps the mesh modification. Cheers Roadracer

john YL October 3, 2002 06:21

Re: subroutine newxyz
 

john YL October 3, 2002 06:24

Re: subroutine newxyz
 
The code is designed to allow user to change the mesh from prostar to the proper positions at time=0. As Roadracer pointed out, you can either use if(iter.gt.0) or if (time.gt.0) to skip mesh change at time=0.


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