Fixing merge errors
This commit is contained in:
parent
820e8d7d95
commit
ff0871caf9
13 changed files with 30 additions and 11 deletions
|
@ -9,7 +9,7 @@ tmp<fvVectorMatrix> UEqn
|
|||
|
||||
UEqn().relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
volScalarField rUA = 1.0/UEqn().A();
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
hEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(h.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(h.select(pimple.finalIter()))
|
||||
);
|
||||
hEqn.solve(mesh.solutionDict().solver((h.select(pimple.finalIter()))));
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ tmp<fvVectorMatrix> UEqn
|
|||
|
||||
UEqn().relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
mrfZones.addCoriolis(rho, UEqn());
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
UEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
solve(UEqn == -fvc::grad(p));
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
eEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(e.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(e.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
eEqn.solve();
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
UEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
solve(UEqn == -fvc::grad(p));
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
eEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(e.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(e.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
eEqn.solve();
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
surfaceScalarField psisf = fvc::interpolate(psis);
|
||||
surfaceScalarField rhof = fvc::interpolate(rho);
|
||||
|
||||
// Needs to be outside of loop since p is changing, but psi and rho are not
|
||||
// Needs to be outside of loop since p is changing, but psi and rho are not.
|
||||
surfaceScalarField rhoReff = rhof - psisf*fvc::interpolate(p);
|
||||
|
||||
// --- PISO loop
|
||||
|
@ -21,6 +21,12 @@
|
|||
|
||||
p.storePrevIter();
|
||||
|
||||
volScalarField divPhid
|
||||
(
|
||||
"divPhid",
|
||||
fvc::div(phid)
|
||||
);
|
||||
|
||||
while (pimple.correctNonOrthogonal())
|
||||
{
|
||||
fvScalarMatrix pEqn
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
// Needs to be outside of loop since p is changing, but psi and rho are not.
|
||||
surfaceScalarField rhoReff = rhof - psisf*fvc::interpolate(p);
|
||||
|
||||
// --- PISO loop
|
||||
while (pimple.correct())
|
||||
{
|
||||
U = rUA*UEqn.H();
|
||||
|
@ -25,6 +26,12 @@
|
|||
|
||||
p.storePrevIter();
|
||||
|
||||
volScalarField divPhid
|
||||
(
|
||||
"divPhid",
|
||||
fvc::div(phid)
|
||||
);
|
||||
|
||||
while (pimple.correctNonOrthogonal())
|
||||
{
|
||||
fvScalarMatrix pEqn
|
||||
|
|
|
@ -20,6 +20,12 @@
|
|||
|
||||
p.storePrevIter();
|
||||
|
||||
volScalarField divPhid
|
||||
(
|
||||
"divPhid",
|
||||
fvc::div(phid)
|
||||
);
|
||||
|
||||
while (pimple.correctNonOrthogonal())
|
||||
{
|
||||
fvScalarMatrix pEqn
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
UEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
solve(UEqn == -fvc::grad(p));
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
UEqn.relax
|
||||
(
|
||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
||||
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||
);
|
||||
|
||||
if (pimple.momentumPredictor())
|
||||
|
|
|
@ -548,7 +548,7 @@ void faMatrix<Type>::relax(const scalar alpha)
|
|||
template<class Type>
|
||||
void faMatrix<Type>::relax()
|
||||
{
|
||||
if (psi_.mesh().solutionDict().relax(psi_.name()))
|
||||
if (psi_.mesh().solutionDict().relaxEquation(psi_.name()))
|
||||
{
|
||||
relax(psi_.mesh().solutionDict().equationRelaxationFactor(psi_.name()));
|
||||
}
|
||||
|
|
Reference in a new issue