Compare commits
1 Commits
demand-dri
...
feature-st
| Author | SHA1 | Date | |
|---|---|---|---|
| 775d0b277b |
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -17,6 +17,3 @@
|
|||||||
[submodule "external-solver"]
|
[submodule "external-solver"]
|
||||||
path = modules/external-solver
|
path = modules/external-solver
|
||||||
url = https://develop.openfoam.com/Modules/external-solver.git
|
url = https://develop.openfoam.com/Modules/external-solver.git
|
||||||
[submodule "turbulence-community"]
|
|
||||||
path = modules/turbulence-community
|
|
||||||
url = https://gitlab.com/openfoam/community/tc-turbulence/turbulence-community.git
|
|
||||||
|
|||||||
@ -33,7 +33,6 @@ It is likely incomplete...
|
|||||||
- Alexander Kabat vel Job
|
- Alexander Kabat vel Job
|
||||||
- Thilo Knacke
|
- Thilo Knacke
|
||||||
- Shannon Leakey
|
- Shannon Leakey
|
||||||
- Sergey Lesnik
|
|
||||||
- Tommaso Lucchini
|
- Tommaso Lucchini
|
||||||
- Graham Macpherson
|
- Graham Macpherson
|
||||||
- Alexey Matveichev
|
- Alexey Matveichev
|
||||||
@ -60,7 +59,6 @@ It is likely incomplete...
|
|||||||
- Vuko Vukcevic
|
- Vuko Vukcevic
|
||||||
- Yi Wang
|
- Yi Wang
|
||||||
- Norbert Weber
|
- Norbert Weber
|
||||||
- Gregor Weiss
|
|
||||||
- Volker Weissmann
|
- Volker Weissmann
|
||||||
- Henry Weller
|
- Henry Weller
|
||||||
- Niklas Wikstrom
|
- Niklas Wikstrom
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
api=2309
|
api=2307
|
||||||
patch=0
|
patch=0
|
||||||
|
|||||||
@ -30,6 +30,6 @@ volVectorField U
|
|||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
#include "readTurbulenceProperties.H"
|
#include "readTurbulenceProperties.H"
|
||||||
|
|||||||
@ -118,7 +118,7 @@ int main(int argc, char *argv[])
|
|||||||
fvm::laplacian(rAUf, p) == fvc::div(phiHbyA)
|
fvm::laplacian(rAUf, p) == fvc::div(phiHbyA)
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(piso.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
|
||||||
|
|
||||||
phi = phiHbyA - pEqn.flux();
|
phi = phiHbyA - pEqn.flux();
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const dictionary& potentialFlow
|
const dictionary& potentialFlow
|
||||||
(
|
(
|
||||||
mesh.solution().solutionDict("potentialFlow")
|
mesh.solutionDict().subDict("potentialFlow")
|
||||||
);
|
);
|
||||||
|
|
||||||
const int nNonOrthCorr
|
const int nNonOrthCorr
|
||||||
|
|||||||
@ -113,6 +113,6 @@ setRefCell
|
|||||||
PhiRefCell,
|
PhiRefCell,
|
||||||
PhiRefValue
|
PhiRefValue
|
||||||
);
|
);
|
||||||
mesh.schemes().setFluxRequired(Phi.name());
|
mesh.setFluxRequired(Phi.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const dictionary& potentialFlow
|
const dictionary& potentialFlow
|
||||||
(
|
(
|
||||||
mesh.solution().solutionDict("potentialFlow")
|
mesh.solutionDict().subDict("potentialFlow")
|
||||||
);
|
);
|
||||||
|
|
||||||
const int nNonOrthCorr
|
const int nNonOrthCorr
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.schemes().div("div(phi,ft_b_ha_hau)")
|
mesh.divScheme("div(phi,ft_b_ha_hau)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::RASModel> turbulence
|
autoPtr<compressible::RASModel> turbulence
|
||||||
|
|||||||
@ -27,7 +27,7 @@ if (pimple.transonic())
|
|||||||
betav*fvOptions(psi, p, rho.name())
|
betav*fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -57,7 +57,7 @@ else
|
|||||||
betav*fvOptions(psi, p, rho.name())
|
betav*fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,7 +30,7 @@ if (pimple.transonic())
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -66,7 +66,7 @@ else
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -35,7 +35,7 @@ if (pimple.transonic())
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -71,7 +71,7 @@ else
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,7 +44,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.schemes().div("div(phi,ft_b_ha_hau)")
|
mesh.divScheme("div(phi,ft_b_ha_hau)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ if (pimple.transonic())
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -64,7 +64,7 @@ else
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
solve
|
solve
|
||||||
(
|
(
|
||||||
fvm::ddt(rho, Yi) - chemistry.RR(specieI),
|
fvm::ddt(rho, Yi) - chemistry.RR(specieI),
|
||||||
"Yi"
|
mesh.solver("Yi")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.schemes().div("div(phi,Yi_h)")
|
mesh.divScheme("div(phi,Yi_h)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
|
|
||||||
fvOptions.constrain(YiEqn);
|
fvOptions.constrain(YiEqn);
|
||||||
|
|
||||||
YiEqn.solve("Yi");
|
YiEqn.solve(mesh.solver("Yi"));
|
||||||
|
|
||||||
fvOptions.correct(Yi);
|
fvOptions.correct(Yi);
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@ volScalarField p_rgh
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
#include "phrghEqn.H"
|
#include "phrghEqn.H"
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
+ fvOptions(psi, p_rgh, rho.name())
|
+ fvOptions(psi, p_rgh, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
|
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.schemes().div("div(phi,Yi_h)")
|
mesh.divScheme("div(phi,Yi_h)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
|
|
||||||
fvOptions.constrain(YiEqn);
|
fvOptions.constrain(YiEqn);
|
||||||
|
|
||||||
YiEqn.solve("Yi");
|
YiEqn.solve(mesh.solver("Yi"));
|
||||||
|
|
||||||
fvOptions.correct(Yi);
|
fvOptions.correct(Yi);
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ volScalarField& p = thermo.p();
|
|||||||
|
|
||||||
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info << "Creating turbulence model.\n" << nl;
|
Info << "Creating turbulence model.\n" << nl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -37,7 +37,7 @@ if (pimple.transonic())
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -72,7 +72,7 @@ else
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,7 +49,7 @@ if (pimple.transonic())
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -89,7 +89,7 @@ else
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -48,7 +48,7 @@ volScalarField& p = thermo.p();
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info << "Creating turbulence model.\n" << nl;
|
Info << "Creating turbulence model.\n" << nl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -41,7 +41,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
- fvm::laplacian(rhorAUf, p_rgh)
|
- fvm::laplacian(rhorAUf, p_rgh)
|
||||||
);
|
);
|
||||||
|
|
||||||
p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
|
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -49,7 +49,7 @@ volScalarField& p = thermo.p();
|
|||||||
|
|
||||||
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
Info << "Creating turbulence model.\n" << nl;
|
Info << "Creating turbulence model.\n" << nl;
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
word fluxScheme("Kurganov");
|
word fluxScheme("Kurganov");
|
||||||
if (mesh.schemes().dict().readIfPresent("fluxScheme", fluxScheme))
|
if (mesh.schemesDict().readIfPresent("fluxScheme", fluxScheme))
|
||||||
{
|
{
|
||||||
if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov"))
|
if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -79,7 +79,7 @@ autoPtr<compressible::turbulenceModel> turbulence
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@
|
|||||||
fvOptions(psi, p, rho.name())
|
fvOptions(psi, p, rho.name())
|
||||||
);
|
);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
// Rhie & Chow interpolation (part 2)
|
// Rhie & Chow interpolation (part 2)
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
|
|||||||
@ -42,7 +42,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
pressureControl pressureControl(p, rho, pimple.dict(), false);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if (mesh.changing())
|
|||||||
pcorrTypes
|
pcorrTypes
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(pcorr.name());
|
mesh.setFluxRequired(pcorr.name());
|
||||||
|
|
||||||
{
|
{
|
||||||
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
||||||
@ -72,7 +72,7 @@ if (mesh.changing())
|
|||||||
divrhoU()
|
divrhoU()
|
||||||
);
|
);
|
||||||
|
|
||||||
pcorrEqn.solve(pcorr.select(pimple.finalInnerIter()));
|
pcorrEqn.solve(mesh.solver(pcorr.select(pimple.finalInnerIter())));
|
||||||
//Bypass virtual layer
|
//Bypass virtual layer
|
||||||
//mesh.fvMesh::solve(pcorrEqn, d);
|
//mesh.fvMesh::solve(pcorrEqn, d);
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ pressureControl pressureControl(p, rho, pimple.dict(), false);
|
|||||||
const dimensionedScalar rhoMax("rhoMax", dimDensity, GREAT, pimple.dict());
|
const dimensionedScalar rhoMax("rhoMax", dimDensity, GREAT, pimple.dict());
|
||||||
const dimensionedScalar rhoMin("rhoMin", dimDensity, Zero, pimple.dict());
|
const dimensionedScalar rhoMin("rhoMin", dimDensity, Zero, pimple.dict());
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
#include "createDpdt.H"
|
#include "createDpdt.H"
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if (pimple.transonic())
|
|||||||
// Relax the pressure equation to ensure diagonal-dominance
|
// Relax the pressure equation to ensure diagonal-dominance
|
||||||
pEqn.relax();
|
pEqn.relax();
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@ else
|
|||||||
{
|
{
|
||||||
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAUf, p));
|
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAUf, p));
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -54,7 +54,7 @@ if (pimple.transonic())
|
|||||||
// Relax the pressure equation to ensure diagonal-dominance
|
// Relax the pressure equation to ensure diagonal-dominance
|
||||||
pEqn.relax();
|
pEqn.relax();
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -76,7 +76,7 @@ else
|
|||||||
{
|
{
|
||||||
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAUf, p));
|
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAUf, p));
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -65,7 +65,7 @@ if (pimple.transonic())
|
|||||||
// Relax the pressure equation to ensure diagonal-dominance
|
// Relax the pressure equation to ensure diagonal-dominance
|
||||||
pEqn.relax();
|
pEqn.relax();
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -90,7 +90,7 @@ else
|
|||||||
{
|
{
|
||||||
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAtU, p));
|
fvScalarMatrix pEqn(pDDtEqn - fvm::laplacian(rhorAtU, p));
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureControl pressureControl(p, rho, simple.dict());
|
pressureControl pressureControl(p, rho, simple.dict());
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -40,7 +40,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureControl pressureControl(p, rho, simple.dict());
|
pressureControl pressureControl(p, rho, simple.dict());
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -36,7 +36,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::turbulenceModel> turbulence
|
autoPtr<compressible::turbulenceModel> turbulence
|
||||||
|
|||||||
@ -46,4 +46,4 @@ volScalarField rho
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|||||||
@ -114,5 +114,5 @@ label pRefCell = 0;
|
|||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
mesh.schemes().setFluxRequired(pB.name());
|
mesh.setFluxRequired(pB.name());
|
||||||
|
|||||||
@ -127,7 +127,7 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
pEqn.solve(p.select(piso.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
|
||||||
|
|
||||||
if (piso.finalNonOrthogonalIter())
|
if (piso.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
@ -167,7 +167,7 @@ int main(int argc, char *argv[])
|
|||||||
fvm::laplacian(rABf, pB) == fvc::div(phiB)
|
fvm::laplacian(rABf, pB) == fvc::div(phiB)
|
||||||
);
|
);
|
||||||
|
|
||||||
pBEqn.solve(pB.select(bpiso.finalInnerIter()));
|
pBEqn.solve(mesh.solver(pB.select(bpiso.finalInnerIter())));
|
||||||
|
|
||||||
if (bpiso.finalNonOrthogonalIter())
|
if (bpiso.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
const dictionary& Bpiso = mesh.solution().solutionDict("BPISO");
|
const dictionary& Bpiso = mesh.solutionDict().subDict("BPISO");
|
||||||
|
|
||||||
const int nBcorr = Bpiso.getOrDefault<int>("nCorrectors", 1);
|
const int nBcorr = Bpiso.getOrDefault<int>("nCorrectors", 1);
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
(
|
(
|
||||||
"h",
|
"h",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -20,7 +20,7 @@
|
|||||||
(
|
(
|
||||||
"Us",
|
"Us",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -34,7 +34,7 @@
|
|||||||
(
|
(
|
||||||
"phis",
|
"phis",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -48,7 +48,7 @@
|
|||||||
(
|
(
|
||||||
"phi2s",
|
"phi2s",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::READ_IF_PRESENT,
|
IOobject::READ_IF_PRESENT,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -67,7 +67,7 @@
|
|||||||
(
|
(
|
||||||
"Sm",
|
"Sm",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -82,7 +82,7 @@
|
|||||||
(
|
(
|
||||||
"Sd",
|
"Sd",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -96,7 +96,7 @@
|
|||||||
(
|
(
|
||||||
"Sg",
|
"Sg",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -112,7 +112,7 @@
|
|||||||
(
|
(
|
||||||
"ps",
|
"ps",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -134,7 +134,7 @@
|
|||||||
(
|
(
|
||||||
"manningField",
|
"manningField",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -147,7 +147,7 @@
|
|||||||
(
|
(
|
||||||
"frictionFactor",
|
"frictionFactor",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -155,4 +155,4 @@
|
|||||||
dimensionedScalar("one", dimless, 0.01)
|
dimensionedScalar("one", dimless, 0.01)
|
||||||
);
|
);
|
||||||
|
|
||||||
aMesh.schemes().setFluxRequired("h");
|
aMesh.setFluxRequired("h");
|
||||||
|
|||||||
@ -7,7 +7,7 @@ volVectorField U
|
|||||||
(
|
(
|
||||||
"U",
|
"U",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -22,7 +22,7 @@ volScalarField H
|
|||||||
(
|
(
|
||||||
"H",
|
"H",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
loopControl iters(runTime, aMesh.solution().solutionDict(), "solution");
|
loopControl iters(runTime, aMesh.solutionDict(), "solution");
|
||||||
|
|||||||
@ -5,7 +5,7 @@ areaScalarField Cs
|
|||||||
(
|
(
|
||||||
"Cs",
|
"Cs",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -26,7 +26,7 @@ areaVectorField Us
|
|||||||
(
|
(
|
||||||
"Us",
|
"Us",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -58,7 +58,7 @@ edgeScalarField phis
|
|||||||
(
|
(
|
||||||
"phis",
|
"phis",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
// Create Finite Area mesh
|
||||||
|
faMesh aMesh(mesh);
|
||||||
@ -7,7 +7,7 @@
|
|||||||
(
|
(
|
||||||
"Cvf",
|
"Cvf",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -24,7 +24,7 @@
|
|||||||
(
|
(
|
||||||
"U",
|
"U",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
|
|||||||
@ -5,7 +5,7 @@ areaScalarField Cs
|
|||||||
(
|
(
|
||||||
"Cs",
|
"Cs",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -37,7 +37,7 @@ areaVectorField Us
|
|||||||
(
|
(
|
||||||
"Us",
|
"Us",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
@ -51,7 +51,7 @@ edgeScalarField phis
|
|||||||
(
|
(
|
||||||
"phis",
|
"phis",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
aMesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::NO_WRITE
|
IOobject::NO_WRITE
|
||||||
),
|
),
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
// Create Finite Area mesh
|
||||||
|
faMesh aMesh(mesh);
|
||||||
@ -7,7 +7,7 @@
|
|||||||
(
|
(
|
||||||
"Cvf",
|
"Cvf",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
@ -24,7 +24,7 @@
|
|||||||
(
|
(
|
||||||
"U",
|
"U",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh.thisDb(),
|
mesh,
|
||||||
IOobject::NO_READ,
|
IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
),
|
),
|
||||||
|
|||||||
@ -119,7 +119,7 @@ if (p_rgh.needReference())
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createIncompressibleRadiationModel.H"
|
#include "createIncompressibleRadiationModel.H"
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
p_rghEqn.setReference(pRefCell, getRefCellValue(p_rgh, pRefCell));
|
p_rghEqn.setReference(pRefCell, getRefCellValue(p_rgh, pRefCell));
|
||||||
|
|
||||||
p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
|
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -119,7 +119,7 @@ if (p_rgh.needReference())
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createIncompressibleRadiationModel.H"
|
#include "createIncompressibleRadiationModel.H"
|
||||||
|
|||||||
@ -74,7 +74,7 @@ volScalarField p_rgh
|
|||||||
// Force p_rgh to be consistent with p
|
// Force p_rgh to be consistent with p
|
||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ if (mesh.changing())
|
|||||||
pcorrTypes
|
pcorrTypes
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(pcorr.name());
|
mesh.setFluxRequired(pcorr.name());
|
||||||
|
|
||||||
{
|
{
|
||||||
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
||||||
@ -72,7 +72,7 @@ if (mesh.changing())
|
|||||||
divrhoU()
|
divrhoU()
|
||||||
);
|
);
|
||||||
|
|
||||||
//pcorrEqn.solve(pcorr.select(pimple.finalInnerIter()));
|
//pcorrEqn.solve(mesh.solver(pcorr.select(pimple.finalInnerIter())));
|
||||||
//Bypass virtual layer
|
//Bypass virtual layer
|
||||||
const dictionary& d = mesh.solver
|
const dictionary& d = mesh.solver
|
||||||
(
|
(
|
||||||
|
|||||||
@ -71,7 +71,7 @@ volScalarField p_rgh
|
|||||||
// Force p_rgh to be consistent with p
|
// Force p_rgh to be consistent with p
|
||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
|
|||||||
@ -50,7 +50,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
- fvm::laplacian(rhorAUf, p_rgh)
|
- fvm::laplacian(rhorAUf, p_rgh)
|
||||||
);
|
);
|
||||||
|
|
||||||
p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
|
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -52,7 +52,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
compressible ? getRefCellValue(p_rgh, pRefCell) : pRefValue
|
compressible ? getRefCellValue(p_rgh, pRefCell) : pRefValue
|
||||||
);
|
);
|
||||||
|
|
||||||
p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
|
p_rghEqn.solve(mesh.solver(p_rgh.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -81,7 +81,7 @@ setRefCell
|
|||||||
pRefValue
|
pRefValue
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(p_rgh.name());
|
mesh.setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
dimensionedScalar initialMass = fvc::domainIntegrate(rho);
|
dimensionedScalar initialMass = fvc::domainIntegrate(rho);
|
||||||
dimensionedScalar totalVolume = sum(mesh.V());
|
dimensionedScalar totalVolume = sum(mesh.V());
|
||||||
|
|||||||
@ -174,7 +174,7 @@ forAll(fluidRegions, i)
|
|||||||
// Force p_rgh to be consistent with p
|
// Force p_rgh to be consistent with p
|
||||||
p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
|
p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
|
||||||
|
|
||||||
fluidRegions[i].schemes().setFluxRequired(p_rghFluid[i].name());
|
fluidRegions[i].setFluxRequired(p_rghFluid[i].name());
|
||||||
|
|
||||||
radiation.set
|
radiation.set
|
||||||
(
|
(
|
||||||
@ -185,7 +185,7 @@ forAll(fluidRegions, i)
|
|||||||
initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
|
initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
|
||||||
|
|
||||||
const dictionary& simpleDict =
|
const dictionary& simpleDict =
|
||||||
fluidRegions[i].solution().solutionDict("SIMPLE");
|
fluidRegions[i].solutionDict().subDict("SIMPLE");
|
||||||
|
|
||||||
setRefCell
|
setRefCell
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& simple =
|
const dictionary& simple = fluidRegions[i].solutionDict().subDict("SIMPLE");
|
||||||
fluidRegions[i].solution().solutionDict("SIMPLE");
|
|
||||||
|
|
||||||
const int nNonOrthCorr =
|
const int nNonOrthCorr =
|
||||||
simple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
simple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& simple =
|
const dictionary& simple = mesh.solutionDict().subDict("SIMPLE");
|
||||||
mesh.solution().solutionDict("SIMPLE");
|
|
||||||
|
|
||||||
const int nNonOrthCorr =
|
const int nNonOrthCorr =
|
||||||
simple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
simple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
||||||
|
|||||||
@ -278,14 +278,14 @@ forAll(fluidRegions, i)
|
|||||||
phaseSystemFluid[i].phase1().thermo().p()
|
phaseSystemFluid[i].phase1().thermo().p()
|
||||||
- phaseSystemFluid[i].phase1().thermo().rho()*ghFluid[i];
|
- phaseSystemFluid[i].phase1().thermo().rho()*ghFluid[i];
|
||||||
|
|
||||||
fluidRegions[i].schemes().setFluxRequired(p_rghFluid[i].name());
|
fluidRegions[i].setFluxRequired(p_rghFluid[i].name());
|
||||||
|
|
||||||
Info<< " Correcting initialMassFluid\n" << endl;
|
Info<< " Correcting initialMassFluid\n" << endl;
|
||||||
initialMassFluid[i] =
|
initialMassFluid[i] =
|
||||||
fvc::domainIntegrate(phaseSystemFluid[i].rho()).value();
|
fvc::domainIntegrate(phaseSystemFluid[i].rho()).value();
|
||||||
|
|
||||||
const dictionary& pimpleDict =
|
const dictionary& pimpleDict =
|
||||||
fluidRegions[i].solution().solutionDict("PIMPLE");
|
fluidRegions[i].solutionDict().subDict("PIMPLE");
|
||||||
|
|
||||||
pimpleDict.readIfPresent("frozenFlow", frozenFlowFluid[i]);
|
pimpleDict.readIfPresent("frozenFlow", frozenFlowFluid[i]);
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& pimpleDict =
|
const dictionary& pimpleDict = mesh.solutionDict().subDict("PIMPLE");
|
||||||
mesh.solution().solutionDict("PIMPLE");
|
|
||||||
|
|
||||||
Switch faceMomentum
|
Switch faceMomentum
|
||||||
(
|
(
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(true);
|
mesh.data::add("finalIteration", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frozenFlow)
|
if (frozenFlow)
|
||||||
@ -35,5 +35,5 @@ else
|
|||||||
|
|
||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(false);
|
mesh.data::remove("finalIteration");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(true);
|
mesh.data::add("finalIteration", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -22,7 +22,7 @@ if (finalIter)
|
|||||||
|
|
||||||
fvOptions.constrain(hEqn);
|
fvOptions.constrain(hEqn);
|
||||||
|
|
||||||
hEqn.solve(h.select(finalIter));
|
hEqn.solve(mesh.solver(h.select(finalIter)));
|
||||||
|
|
||||||
fvOptions.correct(h);
|
fvOptions.correct(h);
|
||||||
}
|
}
|
||||||
@ -35,5 +35,5 @@ if (finalIter)
|
|||||||
|
|
||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(false);
|
mesh.data::remove("finalIteration");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
EEqn.solve(he.select(finalIter));
|
EEqn.solve(mesh.solver(he.select(finalIter)));
|
||||||
fvOptions.correct(he);
|
fvOptions.correct(he);
|
||||||
|
|
||||||
thermo.correct();
|
thermo.correct();
|
||||||
|
|||||||
@ -28,7 +28,7 @@
|
|||||||
- fvc::snGrad(p_rgh)
|
- fvc::snGrad(p_rgh)
|
||||||
)*mesh.magSf()
|
)*mesh.magSf()
|
||||||
),
|
),
|
||||||
U.select(finalIter)
|
mesh.solver(U.select(finalIter))
|
||||||
);
|
);
|
||||||
|
|
||||||
fvOptions.correct(U);
|
fvOptions.correct(U);
|
||||||
|
|||||||
@ -9,7 +9,7 @@ if (Y.size())
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.schemes().div("div(phi,Yi_h)")
|
mesh.divScheme("div(phi,Yi_h)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -44,7 +44,7 @@ if (Y.size())
|
|||||||
|
|
||||||
fvOptions.constrain(YiEqn);
|
fvOptions.constrain(YiEqn);
|
||||||
|
|
||||||
YiEqn.solve("Yi");
|
YiEqn.solve(mesh.solver("Yi"));
|
||||||
|
|
||||||
fvOptions.correct(Yi);
|
fvOptions.correct(Yi);
|
||||||
|
|
||||||
|
|||||||
@ -189,7 +189,7 @@ forAll(fluidRegions, i)
|
|||||||
// Force p_rgh to be consistent with p
|
// Force p_rgh to be consistent with p
|
||||||
p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
|
p_rghFluid[i] = thermoFluid[i].p() - rhoFluid[i]*ghFluid[i];
|
||||||
|
|
||||||
fluidRegions[i].schemes().setFluxRequired(p_rghFluid[i].name());
|
fluidRegions[i].setFluxRequired(p_rghFluid[i].name());
|
||||||
|
|
||||||
Info<< " Adding to radiationFluid\n" << endl;
|
Info<< " Adding to radiationFluid\n" << endl;
|
||||||
radiation.set
|
radiation.set
|
||||||
@ -260,8 +260,7 @@ forAll(fluidRegions, i)
|
|||||||
);
|
);
|
||||||
|
|
||||||
const dictionary& pimpleDict =
|
const dictionary& pimpleDict =
|
||||||
fluidRegions[i].solution().solutionDict("PIMPLE");
|
fluidRegions[i].solutionDict().subDict("PIMPLE");
|
||||||
|
|
||||||
pimpleDict.readIfPresent("frozenFlow", frozenFlowFluid[i]);
|
pimpleDict.readIfPresent("frozenFlow", frozenFlowFluid[i]);
|
||||||
|
|
||||||
rhoMaxFluid.set
|
rhoMaxFluid.set
|
||||||
|
|||||||
@ -52,12 +52,15 @@ constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);
|
|||||||
|
|
||||||
p_rghEqn.solve
|
p_rghEqn.solve
|
||||||
(
|
(
|
||||||
p_rgh.select
|
mesh.solver
|
||||||
(
|
(
|
||||||
|
p_rgh.select
|
||||||
(
|
(
|
||||||
oCorr == nOuterCorr-1
|
(
|
||||||
&& corr == nCorr-1
|
oCorr == nOuterCorr-1
|
||||||
&& nonOrth == nNonOrthCorr
|
&& corr == nCorr-1
|
||||||
|
&& nonOrth == nNonOrthCorr
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& pimple =
|
const dictionary& pimple = mesh.solutionDict().subDict("PIMPLE");
|
||||||
mesh.solution().solutionDict("PIMPLE");
|
|
||||||
|
|
||||||
const int nCorr =
|
const int nCorr =
|
||||||
pimple.getOrDefault<int>("nCorrectors", 1);
|
pimple.getOrDefault<int>("nCorrectors", 1);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(true);
|
mesh.data::add("finalIteration", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frozenFlow)
|
if (frozenFlow)
|
||||||
@ -36,5 +36,5 @@ else
|
|||||||
|
|
||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(false);
|
mesh.data::remove("finalIteration");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
bool coupled = false;
|
fvSolution solutionDict(runTime);
|
||||||
{
|
|
||||||
fvSolution solutionDict(runTime);
|
bool coupled(solutionDict.getOrDefault("coupledEnergyField", false));
|
||||||
solutionDict.readIfPresent("coupledEnergyField", coupled);
|
|
||||||
}
|
|
||||||
|
|
||||||
autoPtr<fvMatrix<scalar>> fvMatrixAssemblyPtr;
|
autoPtr<fvMatrix<scalar>> fvMatrixAssemblyPtr;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& pimple =
|
const dictionary& pimple = mesh.solutionDict().subDict("PIMPLE");
|
||||||
mesh.solution().solutionDict("PIMPLE");
|
|
||||||
|
|
||||||
int nNonOrthCorr =
|
int nNonOrthCorr =
|
||||||
pimple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
pimple.getOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
||||||
|
|||||||
@ -25,10 +25,10 @@
|
|||||||
|
|
||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(true);
|
mesh.data::add("finalIteration", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
hEqn.solve(h.select(finalIter));
|
hEqn.solve(mesh.solver(h.select(finalIter)));
|
||||||
|
|
||||||
fvOptions.correct(h);
|
fvOptions.correct(h);
|
||||||
|
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
if (finalIter)
|
if (finalIter)
|
||||||
{
|
{
|
||||||
mesh.data().setFinalIteration(false);
|
mesh.data::remove("finalIteration");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -92,19 +92,21 @@ else
|
|||||||
|
|
||||||
// Consider mesh flux to correct for mesh deformation
|
// Consider mesh flux to correct for mesh deformation
|
||||||
bool meshFluxCorr(false);
|
bool meshFluxCorr(false);
|
||||||
|
if (mesh.solutionDict().found("SIMPLE"))
|
||||||
{
|
{
|
||||||
const dictionary& solutionDict = mesh.solution().solutionDict();
|
meshFluxCorr =
|
||||||
|
mesh.solutionDict().subDict("SIMPLE").getOrDefault<bool>
|
||||||
const dictionary* subdict = nullptr;
|
(
|
||||||
|
"meshFluxCorrection", false
|
||||||
if
|
);
|
||||||
(
|
}
|
||||||
((subdict = solutionDict.findDict("SIMPLE")) != nullptr)
|
else if (mesh.solutionDict().found("PIMPLE"))
|
||||||
|| ((subdict = solutionDict.findDict("PIMPLE")) != nullptr)
|
{
|
||||||
)
|
meshFluxCorr =
|
||||||
{
|
mesh.solutionDict().subDict("PIMPLE").getOrDefault<bool>
|
||||||
meshFluxCorr = subdict->getOrDefault("meshFluxCorrection", false);
|
(
|
||||||
}
|
"meshFluxCorrection", false
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "createRadiationModel.H"
|
#include "createRadiationModel.H"
|
||||||
|
|||||||
@ -68,7 +68,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Info<< "\nEvolving thermodynamics\n" << endl;
|
Info<< "\nEvolving thermodynamics\n" << endl;
|
||||||
|
|
||||||
if (mesh.solution().solutionDict().found("SIMPLE"))
|
if (mesh.solutionDict().found("SIMPLE"))
|
||||||
{
|
{
|
||||||
simpleControl simple(mesh);
|
simpleControl simple(mesh);
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Info<< "\nEvolving thermodynamics\n" << endl;
|
Info<< "\nEvolving thermodynamics\n" << endl;
|
||||||
|
|
||||||
if (mesh.solution().solutionDict().found("SIMPLE"))
|
if (mesh.solutionDict().found("SIMPLE"))
|
||||||
{
|
{
|
||||||
simpleControl simple(mesh);
|
simpleControl simple(mesh);
|
||||||
|
|
||||||
|
|||||||
@ -106,7 +106,7 @@ int main(int argc, char *argv[])
|
|||||||
// mesh.relaxationFactor("alpha")
|
// mesh.relaxationFactor("alpha")
|
||||||
// *(lambda*max(Ua & U, zeroSensitivity) - alpha);
|
// *(lambda*max(Ua & U, zeroSensitivity) - alpha);
|
||||||
alpha +=
|
alpha +=
|
||||||
mesh.solution().fieldRelaxationFactor("alpha")
|
mesh.fieldRelaxationFactor("alpha")
|
||||||
*(min(max(alpha + lambda*(Ua & U), zeroAlpha), alphaMax) - alpha);
|
*(min(max(alpha + lambda*(Ua & U), zeroAlpha), alphaMax) - alpha);
|
||||||
|
|
||||||
zeroCells(alpha, inletCells);
|
zeroCells(alpha, inletCells);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading field pa\n" << endl;
|
Info<< "Reading field pa\n" << endl;
|
||||||
@ -75,7 +75,7 @@ setRefCell
|
|||||||
paRefCell,
|
paRefCell,
|
||||||
paRefValue
|
paRefValue
|
||||||
);
|
);
|
||||||
mesh.schemes().setFluxRequired(pa.name());
|
mesh.setFluxRequired(pa.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|||||||
@ -54,11 +54,5 @@ volVectorField U
|
|||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell
|
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
||||||
(
|
mesh.setFluxRequired(p.name());
|
||||||
p,
|
|
||||||
mesh.solution().solutionDict("PISO"),
|
|
||||||
pRefCell,
|
|
||||||
pRefValue
|
|
||||||
);
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
|
||||||
|
|||||||
@ -141,7 +141,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(piso.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
|
||||||
|
|
||||||
if (piso.finalNonOrthogonalIter())
|
if (piso.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -36,11 +36,5 @@ singlePhaseTransportModel fluid(U, phi);
|
|||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell
|
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
||||||
(
|
mesh.setFluxRequired(p.name());
|
||||||
p,
|
|
||||||
mesh.solution().solutionDict("PISO"),
|
|
||||||
pRefCell,
|
|
||||||
pRefValue
|
|
||||||
);
|
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
|
||||||
|
|||||||
@ -114,7 +114,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(piso.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
|
||||||
|
|
||||||
if (piso.finalNonOrthogonalIter())
|
if (piso.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ surfaceScalarField phi
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating SRF model\n" << endl;
|
Info<< "Creating SRF model\n" << endl;
|
||||||
autoPtr<SRF::SRFModel> SRF
|
autoPtr<SRF::SRFModel> SRF
|
||||||
|
|||||||
@ -40,7 +40,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,7 +34,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
//- Overset specific
|
//- Overset specific
|
||||||
|
|||||||
@ -32,7 +32,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -45,7 +45,7 @@ while (pimple.correctNonOrthogonal())
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(pimple.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,7 +32,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|||||||
@ -26,7 +26,7 @@ while (piso.correctNonOrthogonal())
|
|||||||
|
|
||||||
pEqn.setReference(pRefCell, pRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
pEqn.solve(p.select(piso.finalInnerIter()));
|
pEqn.solve(mesh.solver(p.select(piso.finalInnerIter())));
|
||||||
|
|
||||||
if (piso.finalNonOrthogonalIter())
|
if (piso.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2017 OpenFOAM Foundation
|
Copyright (C) 2011-2017 OpenFOAM Foundation
|
||||||
Copyright (C) 2023 OpenCFD Ltd.
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -106,9 +105,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
|
|
||||||
// Update settings from the control dictionary
|
|
||||||
piso.read();
|
|
||||||
|
|
||||||
// Pressure-velocity PISO corrector
|
// Pressure-velocity PISO corrector
|
||||||
{
|
{
|
||||||
#include "UEqn.H"
|
#include "UEqn.H"
|
||||||
|
|||||||
@ -76,4 +76,4 @@ hTotal.write();
|
|||||||
Info<< "Creating Coriolis Force" << endl;
|
Info<< "Creating Coriolis Force" << endl;
|
||||||
const dimensionedVector F("F", ((2.0*Omega) & gHat)*gHat);
|
const dimensionedVector F("F", ((2.0*Omega) & gHat)*gHat);
|
||||||
|
|
||||||
mesh.schemes().setFluxRequired(h.name());
|
mesh.setFluxRequired(h.name());
|
||||||
|
|||||||
@ -135,7 +135,7 @@ int main(int argc, char *argv[])
|
|||||||
- fvm::laplacian(ghrAUf, h)
|
- fvm::laplacian(ghrAUf, h)
|
||||||
);
|
);
|
||||||
|
|
||||||
hEqn.solve(h.select(pimple.finalInnerIter()));
|
hEqn.solve(mesh.solver(h.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
if (pimple.finalNonOrthogonalIter())
|
if (pimple.finalNonOrthogonalIter())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ surfaceScalarField phi
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating SRF model\n" << endl;
|
Info<< "Creating SRF model\n" << endl;
|
||||||
autoPtr<SRF::SRFModel> SRF(SRF::SRFModel::New(Urel));
|
autoPtr<SRF::SRFModel> SRF(SRF::SRFModel::New(Urel));
|
||||||
|
|||||||
@ -32,7 +32,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
mesh.schemes().setFluxRequired(p.name());
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user