CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   PISO Question (http://www.cfd-online.com/Forums/openfoam-solving/65986-piso-question.html)

titio July 2, 2009 12:01

PISO Question
 
Hi Foamers,

A small question about the PISO algorithm implemented in icoFoam and other solvers. The fvVectorMatrix UEqn,
defined for the momentum predictor is recalculated in each time step of PISO. Why are the coefficients of this
matrix not set to zero before the new time step? Are all the values of this matrix recalculated and overwrited
in the next time step.

My problem is that I am trying to solve a problem where I have extra tensions besides the newtonian stresses, and
I noticed that a PISO starts well but then it starts to miss behave, in particular giving a completely wrong velocity
profile.

Can be problem be attributted to problems in the calculation of the coefficient matrix or not? Can someone
help me out?

Titio

henrik July 6, 2009 05:33

Titio,

In C++, variables live only up to the next "}".

So, UEqn is created in line 63 and deleted in line 106 of icoFoam.C.

Henrik


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