simpleFoam, SRFSimpleFoam: Added momentumPredictor option
This commit is contained in:
parent
db675599ea
commit
9bc50312eb
2 changed files with 10 additions and 4 deletions
|
|
@ -14,6 +14,9 @@
|
|||
|
||||
fvOptions.constrain(UrelEqn);
|
||||
|
||||
solve(UrelEqn == -fvc::grad(p));
|
||||
if (simple.momentumPredictor())
|
||||
{
|
||||
solve(UrelEqn == -fvc::grad(p));
|
||||
|
||||
fvOptions.correct(Urel);
|
||||
fvOptions.correct(Urel);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,9 @@
|
|||
|
||||
fvOptions.constrain(UEqn);
|
||||
|
||||
solve(UEqn == -fvc::grad(p));
|
||||
if (simple.momentumPredictor())
|
||||
{
|
||||
solve(UEqn == -fvc::grad(p));
|
||||
|
||||
fvOptions.correct(U);
|
||||
fvOptions.correct(U);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue