Momentum predictor UEqn.H
Hallo Foamers,
I have a small doudt. In UEqn.H, in solvers where momentum predictor setting exists in pimple loop. If momentum predictor is set to no then the Right-hand side of the momentum equation is not solved (skipped because of if loop). But, I dont understand, in any case, we need to solve whole momentum equation to get U right? . Why we skip gravity and dp term ? what does this mean :confused: Code:
tmp<fvVectorMatrix> tUEqn |
Dear Nikhil,
When you turn off momentumPrediction, you do no solve the momentum equation. If you look at the predictor-corrector solution algorithms used in CFD (PISO, SIMPLE, PIMPLE...), basically you do the following sequence: - Discretize the momentum equation and form a matrix for U (optionnaly inverse this matrix to have a first guess of U) - Form a matrix for p. This matrix depends on the coefficients of the matrix for U. Inverse the matrix for p. - Correct the value of U point-wised based on the updated pressure field. - Iterate until you converge. - March in time So, when you turn off momentumPrediction, you do update the coefficients in the matrix for U, but you do not inverse this matrix. Cheers, Cyprien |
Hallo Cyprien,
Thanks for the explanation. Yah! now it's crystal clear. cheers, nick. |
All times are GMT -4. The time now is 15:00. |