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
|
UEqn().relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
volScalarField rUA = 1.0/UEqn().A();
|
volScalarField rUA = 1.0/UEqn().A();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
hEqn.relax
|
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()))));
|
hEqn.solve(mesh.solutionDict().solver((h.select(pimple.finalIter()))));
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ tmp<fvVectorMatrix> UEqn
|
||||||
|
|
||||||
UEqn().relax
|
UEqn().relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
mrfZones.addCoriolis(rho, UEqn());
|
mrfZones.addCoriolis(rho, UEqn());
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
UEqn.relax
|
UEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
eEqn.relax
|
eEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(e.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(e.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
eEqn.solve();
|
eEqn.solve();
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
UEqn.relax
|
UEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
eEqn.relax
|
eEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(e.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(e.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
eEqn.solve();
|
eEqn.solve();
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
surfaceScalarField psisf = fvc::interpolate(psis);
|
surfaceScalarField psisf = fvc::interpolate(psis);
|
||||||
surfaceScalarField rhof = fvc::interpolate(rho);
|
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);
|
surfaceScalarField rhoReff = rhof - psisf*fvc::interpolate(p);
|
||||||
|
|
||||||
// --- PISO loop
|
// --- PISO loop
|
||||||
|
@ -21,6 +21,12 @@
|
||||||
|
|
||||||
p.storePrevIter();
|
p.storePrevIter();
|
||||||
|
|
||||||
|
volScalarField divPhid
|
||||||
|
(
|
||||||
|
"divPhid",
|
||||||
|
fvc::div(phid)
|
||||||
|
);
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
// 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);
|
surfaceScalarField rhoReff = rhof - psisf*fvc::interpolate(p);
|
||||||
|
|
||||||
|
// --- PISO loop
|
||||||
while (pimple.correct())
|
while (pimple.correct())
|
||||||
{
|
{
|
||||||
U = rUA*UEqn.H();
|
U = rUA*UEqn.H();
|
||||||
|
@ -25,6 +26,12 @@
|
||||||
|
|
||||||
p.storePrevIter();
|
p.storePrevIter();
|
||||||
|
|
||||||
|
volScalarField divPhid
|
||||||
|
(
|
||||||
|
"divPhid",
|
||||||
|
fvc::div(phid)
|
||||||
|
);
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|
|
@ -20,6 +20,12 @@
|
||||||
|
|
||||||
p.storePrevIter();
|
p.storePrevIter();
|
||||||
|
|
||||||
|
volScalarField divPhid
|
||||||
|
(
|
||||||
|
"divPhid",
|
||||||
|
fvc::div(phid)
|
||||||
|
);
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
UEqn.relax
|
UEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
solve(UEqn == -fvc::grad(p));
|
solve(UEqn == -fvc::grad(p));
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
UEqn.relax
|
UEqn.relax
|
||||||
(
|
(
|
||||||
mesh.solutionDict().relaxationFactor(U.select(pimple.finalIter()))
|
mesh.solutionDict().equationRelaxationFactor(U.select(pimple.finalIter()))
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pimple.momentumPredictor())
|
if (pimple.momentumPredictor())
|
||||||
|
|
|
@ -548,7 +548,7 @@ void faMatrix<Type>::relax(const scalar alpha)
|
||||||
template<class Type>
|
template<class Type>
|
||||||
void faMatrix<Type>::relax()
|
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()));
|
relax(psi_.mesh().solutionDict().equationRelaxationFactor(psi_.name()));
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue