fvMesh: fvSchemes and fvSolution are now demand-driven
fvMesh is no longer derived from fvSchemes and fvSolution, these are now
demand-driven and accessed by the member functions schemes() and solution()
respectively. This means that the system/fvSchemes and system/fvSolution files
are no longer required during fvMesh constructions simplifying the mesh
generation and manipulation phase; theses files are read on the first call of
their access functions.
The fvSchemes member function names have also been simplified taking advantage
of the context in which they are called, for example
mesh.ddtScheme(fieldName) -> mesh.schemes().ddt(fieldName)
This commit is contained in:
@ -30,6 +30,6 @@ volVectorField U
|
|||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
#include "readTurbulenceProperties.H"
|
#include "readTurbulenceProperties.H"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
const dictionary& potentialFlow
|
const dictionary& potentialFlow
|
||||||
(
|
(
|
||||||
mesh.solutionDict().subDict("potentialFlow")
|
mesh.solution().dict().subDict("potentialFlow")
|
||||||
);
|
);
|
||||||
|
|
||||||
const int nNonOrthCorr
|
const int nNonOrthCorr
|
||||||
|
|||||||
@ -111,6 +111,6 @@ setRefCell
|
|||||||
PhiRefCell,
|
PhiRefCell,
|
||||||
PhiRefValue
|
PhiRefValue
|
||||||
);
|
);
|
||||||
mesh.setFluxRequired(Phi.name());
|
mesh.schemes().setFluxRequired(Phi.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.divScheme("div(phi,ft_b_ha_hau)")
|
mesh.schemes().div("div(phi,ft_b_ha_hau)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -43,7 +43,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::RASModel> turbulence
|
autoPtr<compressible::RASModel> turbulence
|
||||||
|
|||||||
@ -44,7 +44,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::momentumTransportModel> turbulence
|
autoPtr<compressible::momentumTransportModel> turbulence
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.divScheme("div(phi,ft_b_ha_hau)")
|
mesh.schemes().div("div(phi,ft_b_ha_hau)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ tmp<fv::convectionScheme<scalar>> mvConvection
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.divScheme("div(phi,Yi_h)")
|
mesh.schemes().div("div(phi,Yi_h)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -39,7 +39,7 @@ volScalarField& p = thermo.p();
|
|||||||
|
|
||||||
#include "compressibleCreatePhi.H"
|
#include "compressibleCreatePhi.H"
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info << "Creating turbulence model.\n" << nl;
|
Info << "Creating turbulence model.\n" << nl;
|
||||||
autoPtr<compressible::momentumTransportModel> turbulence
|
autoPtr<compressible::momentumTransportModel> turbulence
|
||||||
@ -94,7 +94,7 @@ pressureReference pressureReference
|
|||||||
thermo.incompressible()
|
thermo.incompressible()
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
hydrostaticInitialisation
|
hydrostaticInitialisation
|
||||||
(
|
(
|
||||||
|
|||||||
@ -40,7 +40,7 @@ volScalarField& p = thermo.p();
|
|||||||
|
|
||||||
pressureReference pressureReference(p, pimple.dict(), false);
|
pressureReference pressureReference(p, pimple.dict(), false);
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().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.schemesDict().readIfPresent("fluxScheme", fluxScheme))
|
if (mesh.schemes().dict().readIfPresent("fluxScheme", fluxScheme))
|
||||||
{
|
{
|
||||||
if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov"))
|
if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov"))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -47,7 +47,7 @@ pressureReference pressureReference
|
|||||||
thermo.incompressible()
|
thermo.incompressible()
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::momentumTransportModel> turbulence
|
autoPtr<compressible::momentumTransportModel> turbulence
|
||||||
|
|||||||
@ -95,7 +95,7 @@ if (pimple.transonic())
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (mesh.steady())
|
if (mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
adjustMass = adjustPhi(phiHbyA, U, p);
|
adjustMass = adjustPhi(phiHbyA, U, p);
|
||||||
}
|
}
|
||||||
@ -133,7 +133,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh.steady())
|
if (mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
#include "incompressible/continuityErrs.H"
|
#include "incompressible/continuityErrs.H"
|
||||||
}
|
}
|
||||||
@ -161,7 +161,7 @@ U.correctBoundaryConditions();
|
|||||||
fvConstraints.constrain(U);
|
fvConstraints.constrain(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
|
|
||||||
if (mesh.steady())
|
if (mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
fvConstraints.constrain(p);
|
fvConstraints.constrain(p);
|
||||||
}
|
}
|
||||||
@ -175,7 +175,7 @@ if (adjustMass && !thermo.incompressible())
|
|||||||
p.correctBoundaryConditions();
|
p.correctBoundaryConditions();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh.steady() || pimple.simpleRho() || adjustMass)
|
if (mesh.schemes().steady() || pimple.simpleRho() || adjustMass)
|
||||||
{
|
{
|
||||||
rho = thermo.rho();
|
rho = thermo.rho();
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ if (mesh.steady() || pimple.simpleRho() || adjustMass)
|
|||||||
// Correct rhoUf if the mesh is moving
|
// Correct rhoUf if the mesh is moving
|
||||||
fvc::correctRhoUf(rhoUf, rho, U, phi);
|
fvc::correctRhoUf(rhoUf, rho, U, phi);
|
||||||
|
|
||||||
if (mesh.steady() || pimple.simpleRho())
|
if (mesh.schemes().steady() || pimple.simpleRho())
|
||||||
{
|
{
|
||||||
rho.relax();
|
rho.relax();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -138,7 +138,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
!mesh.steady()
|
!mesh.schemes().steady()
|
||||||
&& !pimple.simpleRho()
|
&& !pimple.simpleRho()
|
||||||
&& pimple.firstPimpleIter()
|
&& pimple.firstPimpleIter()
|
||||||
)
|
)
|
||||||
@ -164,7 +164,7 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mesh.steady())
|
if (!mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
rho = thermo.rho();
|
rho = thermo.rho();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ pressureReference pressureReference
|
|||||||
thermo.incompressible()
|
thermo.incompressible()
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
autoPtr<compressible::momentumTransportModel> turbulence
|
autoPtr<compressible::momentumTransportModel> turbulence
|
||||||
|
|||||||
@ -111,5 +111,5 @@ DBU.name() = "DBU";
|
|||||||
|
|
||||||
pressureReference pressureReference(p, piso.dict());
|
pressureReference pressureReference(p, piso.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
mesh.setFluxRequired(pB.name());
|
mesh.schemes().setFluxRequired(pB.name());
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
const dictionary& Bpiso = mesh.solutionDict().subDict("BPISO");
|
const dictionary& Bpiso = mesh.solution().dict().subDict("BPISO");
|
||||||
|
|
||||||
const int nBcorr = Bpiso.lookupOrDefault<int>("nCorrectors", 1);
|
const int nBcorr = Bpiso.lookupOrDefault<int>("nCorrectors", 1);
|
||||||
|
|||||||
@ -84,7 +84,7 @@ pressureReference pressureReference
|
|||||||
thermo.incompressible()
|
thermo.incompressible()
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
hydrostaticInitialisation
|
hydrostaticInitialisation
|
||||||
(
|
(
|
||||||
|
|||||||
@ -23,7 +23,7 @@ surfaceScalarField phiHbyA
|
|||||||
|
|
||||||
MRF.makeRelative(fvc::interpolate(rho), phiHbyA);
|
MRF.makeRelative(fvc::interpolate(rho), phiHbyA);
|
||||||
|
|
||||||
bool adjustMass = mesh.steady() && adjustPhi(phiHbyA, U, p_rgh);
|
bool adjustMass = mesh.schemes().steady() && adjustPhi(phiHbyA, U, p_rgh);
|
||||||
|
|
||||||
const surfaceScalarField phig(-rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());
|
const surfaceScalarField phig(-rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ else
|
|||||||
|
|
||||||
phi = phiHbyA + p_rghEqn.flux();
|
phi = phiHbyA + p_rghEqn.flux();
|
||||||
|
|
||||||
if (mesh.steady())
|
if (mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
#include "incompressible/continuityErrs.H"
|
#include "incompressible/continuityErrs.H"
|
||||||
}
|
}
|
||||||
@ -131,7 +131,7 @@ U.correctBoundaryConditions();
|
|||||||
fvConstraints.constrain(U);
|
fvConstraints.constrain(U);
|
||||||
K = 0.5*magSqr(U);
|
K = 0.5*magSqr(U);
|
||||||
|
|
||||||
if (mesh.steady())
|
if (mesh.schemes().steady())
|
||||||
{
|
{
|
||||||
if (fvConstraints.constrain(p))
|
if (fvConstraints.constrain(p))
|
||||||
{
|
{
|
||||||
@ -150,12 +150,12 @@ if (adjustMass && !thermo.incompressible())
|
|||||||
p_rgh.correctBoundaryConditions();
|
p_rgh.correctBoundaryConditions();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh.steady() || pimple.simpleRho() || adjustMass)
|
if (mesh.schemes().steady() || pimple.simpleRho() || adjustMass)
|
||||||
{
|
{
|
||||||
rho = thermo.rho();
|
rho = thermo.rho();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh.steady() || pimple.simpleRho())
|
if (mesh.schemes().steady() || pimple.simpleRho())
|
||||||
{
|
{
|
||||||
rho.relax();
|
rho.relax();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,7 +7,7 @@ if (Y.size())
|
|||||||
mesh,
|
mesh,
|
||||||
fields,
|
fields,
|
||||||
phi,
|
phi,
|
||||||
mesh.divScheme("div(phi,Yi_h)")
|
mesh.schemes().div("div(phi,Yi_h)")
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -214,7 +214,7 @@ forAll(fluidRegions, i)
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
fluidRegions[i].setFluxRequired(p_rghFluid[i].name());
|
fluidRegions[i].schemes().setFluxRequired(p_rghFluid[i].name());
|
||||||
|
|
||||||
initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
|
initialMassFluid[i] = fvc::domainIntegrate(rhoFluid[i]).value();
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@ else
|
|||||||
{
|
{
|
||||||
if (Ecorr == 0)
|
if (Ecorr == 0)
|
||||||
{
|
{
|
||||||
if (!mesh.steady() && pimples.firstPimpleIter())
|
if (!mesh.schemes().steady() && pimples.firstPimpleIter())
|
||||||
{
|
{
|
||||||
#include "rhoEqn.H"
|
#include "rhoEqn.H"
|
||||||
}
|
}
|
||||||
@ -61,7 +61,7 @@ else
|
|||||||
thermophysicalTransport.correct();
|
thermophysicalTransport.correct();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mesh.steady() && pimples.finalPimpleIter())
|
if (!mesh.schemes().steady() && pimples.finalPimpleIter())
|
||||||
{
|
{
|
||||||
rho = thermo.rho();
|
rho = thermo.rho();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2013-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -55,7 +55,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
Info<< "\nEvolving thermodynamics\n" << endl;
|
Info<< "\nEvolving thermodynamics\n" << endl;
|
||||||
|
|
||||||
if (mesh.solutionDict().found("SIMPLE"))
|
if (mesh.solution().dict().found("SIMPLE"))
|
||||||
{
|
{
|
||||||
simpleControl simple(mesh);
|
simpleControl simple(mesh);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -97,7 +97,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.fieldRelaxationFactor("alpha")
|
mesh.solution().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);
|
||||||
|
|||||||
@ -31,7 +31,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureReference pressureReference(p, simple.dict());
|
pressureReference pressureReference(p, simple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading field pa\n" << endl;
|
Info<< "Reading field pa\n" << endl;
|
||||||
@ -74,7 +74,7 @@ setRefCell
|
|||||||
paRefCell,
|
paRefCell,
|
||||||
paRefValue
|
paRefValue
|
||||||
);
|
);
|
||||||
mesh.setFluxRequired(pa.name());
|
mesh.schemes().setFluxRequired(pa.name());
|
||||||
|
|
||||||
|
|
||||||
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
||||||
|
|||||||
@ -54,5 +54,5 @@ volVectorField U
|
|||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
setRefCell(p, mesh.solution().dict().subDict("PISO"), pRefCell, pRefValue);
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|||||||
@ -41,7 +41,7 @@ surfaceScalarField phi
|
|||||||
);
|
);
|
||||||
|
|
||||||
pressureReference pressureReference(p, pimple.dict());
|
pressureReference pressureReference(p, pimple.dict());
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating SRF model\n" << endl;
|
Info<< "Creating SRF model\n" << endl;
|
||||||
autoPtr<SRF::SRFModel> SRF
|
autoPtr<SRF::SRFModel> SRF
|
||||||
|
|||||||
@ -32,7 +32,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureReference pressureReference(p, pimple.dict());
|
pressureReference pressureReference(p, pimple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
||||||
|
|||||||
@ -31,7 +31,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureReference pressureReference(p, piso.dict());
|
pressureReference pressureReference(p, piso.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
||||||
|
|||||||
@ -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.setFluxRequired(h.name());
|
mesh.schemes().setFluxRequired(h.name());
|
||||||
|
|||||||
@ -42,7 +42,7 @@ surfaceScalarField phi
|
|||||||
|
|
||||||
pressureReference pressureReference(p, simple.dict());
|
pressureReference pressureReference(p, simple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().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));
|
||||||
|
|||||||
@ -30,7 +30,7 @@ volVectorField U
|
|||||||
|
|
||||||
pressureReference pressureReference(p, simple.dict());
|
pressureReference pressureReference(p, simple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
autoPtr<viscosityModel> viscosity(viscosityModel::New(mesh));
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ surfaceScalarField phic
|
|||||||
|
|
||||||
pressureReference pressureReference(p, pimple.dict());
|
pressureReference pressureReference(p, pimple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
Info<< "Creating turbulence model\n" << endl;
|
Info<< "Creating turbulence model\n" << endl;
|
||||||
|
|
||||||
@ -127,7 +127,7 @@ parcelCloudList clouds(rhoc, Uc, muc, g);
|
|||||||
// Particle fraction upper limit
|
// Particle fraction upper limit
|
||||||
scalar alphacMin
|
scalar alphacMin
|
||||||
(
|
(
|
||||||
1 - mesh.solverDict(alphac.name()).lookup<scalar>("max")
|
1 - mesh.solution().solverDict(alphac.name()).lookup<scalar>("max")
|
||||||
);
|
);
|
||||||
|
|
||||||
// Update alphac from the particle locations
|
// Update alphac from the particle locations
|
||||||
|
|||||||
@ -22,7 +22,7 @@ correctUphiBCs(U, phi, true);
|
|||||||
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"));
|
surfaceScalarField rhof(fvc::interpolate(rho, "div(phi,rho)"));
|
||||||
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
dimensionedScalar rAUf("rAUf", dimTime, 1.0);
|
||||||
|
|
||||||
mesh.setFluxRequired(pcorr.name());
|
mesh.schemes().setFluxRequired(pcorr.name());
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ volVectorField U
|
|||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
|
|
||||||
// Mass flux (corrected by rhoEqn.H)
|
// Mass flux (corrected by rhoEqn.H)
|
||||||
surfaceScalarField rhoPhi
|
surfaceScalarField rhoPhi
|
||||||
@ -86,8 +86,8 @@ rho == max
|
|||||||
rhoMin
|
rhoMin
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p.name());
|
mesh.schemes().setFluxRequired(p.name());
|
||||||
mesh.setFluxRequired(rho.name());
|
mesh.schemes().setFluxRequired(rho.name());
|
||||||
|
|
||||||
// Create incompressible turbulence model
|
// Create incompressible turbulence model
|
||||||
autoPtr<incompressible::momentumTransportModel> turbulence
|
autoPtr<incompressible::momentumTransportModel> turbulence
|
||||||
|
|||||||
@ -48,8 +48,8 @@ dimensionedScalar pMin
|
|||||||
mixture
|
mixture
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
mesh.setFluxRequired(alpha1.name());
|
mesh.schemes().setFluxRequired(alpha1.name());
|
||||||
|
|
||||||
|
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
|
|||||||
@ -332,7 +332,7 @@ void Foam::compressibleMultiphaseMixture::solve()
|
|||||||
{
|
{
|
||||||
const Time& runTime = mesh_.time();
|
const Time& runTime = mesh_.time();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solution().solverDict("alpha");
|
||||||
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
scalar cAlpha(alphaControls.lookup<scalar>("cAlpha"));
|
scalar cAlpha(alphaControls.lookup<scalar>("cAlpha"));
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@ const volScalarField& rho = mixture.rho();
|
|||||||
|
|
||||||
dimensionedScalar pMin("pMin", dimPressure, mixture);
|
dimensionedScalar pMin("pMin", dimPressure, mixture);
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
|
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solution().solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
|
|||||||
@ -103,8 +103,8 @@ if (p_rgh.needReference())
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
mesh.setFluxRequired(alpha1.name());
|
mesh.schemes().setFluxRequired(alpha1.name());
|
||||||
|
|
||||||
// MULES Correction
|
// MULES Correction
|
||||||
tmp<surfaceScalarField> talphaPhiCorr0;
|
tmp<surfaceScalarField> talphaPhiCorr0;
|
||||||
|
|||||||
@ -87,10 +87,10 @@ if (p_rgh.needReference())
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
volScalarField& alpha1(mixture.alpha1());
|
volScalarField& alpha1(mixture.alpha1());
|
||||||
mesh.setFluxRequired(alpha1.name());
|
mesh.schemes().setFluxRequired(alpha1.name());
|
||||||
|
|
||||||
|
|
||||||
#include "createAlphaFluxes.H"
|
#include "createAlphaFluxes.H"
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solution().solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|
||||||
|
|||||||
@ -113,8 +113,8 @@ if (p_rgh.needReference())
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
mesh.setFluxRequired(alpha2.name());
|
mesh.schemes().setFluxRequired(alpha2.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvModels.H"
|
#include "createFvModels.H"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -154,7 +154,7 @@ Foam::threePhaseInterfaceProperties::threePhaseInterfaceProperties
|
|||||||
mixture_(mixture),
|
mixture_(mixture),
|
||||||
cAlpha_
|
cAlpha_
|
||||||
(
|
(
|
||||||
mixture.U().mesh().solverDict
|
mixture.U().mesh().solution().solverDict
|
||||||
(
|
(
|
||||||
mixture_.alpha1().name()
|
mixture_.alpha1().name()
|
||||||
).lookup<scalar>("cAlpha")
|
).lookup<scalar>("cAlpha")
|
||||||
|
|||||||
@ -62,7 +62,7 @@ if (p_rgh.needReference() && fluid.incompressible())
|
|||||||
|
|
||||||
p_rgh = p - fluid.rho()*gh;
|
p_rgh = p - fluid.rho()*gh;
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
PtrList<volScalarField> rAUs;
|
PtrList<volScalarField> rAUs;
|
||||||
PtrList<surfaceScalarField> rAUfs;
|
PtrList<surfaceScalarField> rAUfs;
|
||||||
|
|||||||
@ -836,7 +836,7 @@ bool Foam::MomentumTransferPhaseSystem<BasePhaseSystem>::
|
|||||||
implicitPhasePressure(const phaseModel& phase) const
|
implicitPhasePressure(const phaseModel& phase) const
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
this->mesh_.solverDict(phase.volScalarField::name()).
|
this->mesh_.solution().solverDict(phase.volScalarField::name()).
|
||||||
template lookupOrDefault<Switch>
|
template lookupOrDefault<Switch>
|
||||||
(
|
(
|
||||||
"implicitPhasePressure",
|
"implicitPhasePressure",
|
||||||
|
|||||||
@ -609,7 +609,7 @@ Foam::ThermalPhaseChangePhaseSystem<BasePhaseSystem>::correctInterfaceThermo()
|
|||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
const scalar dmdtfRelax =
|
const scalar dmdtfRelax =
|
||||||
this->mesh().fieldRelaxationFactor(dmdtf.member());
|
this->mesh().solution().fieldRelaxationFactor(dmdtf.member());
|
||||||
|
|
||||||
dmdtf = (1 - dmdtfRelax)*dmdtf + dmdtfRelax*dmdtfNew;
|
dmdtf = (1 - dmdtfRelax)*dmdtf + dmdtfRelax*dmdtfNew;
|
||||||
|
|
||||||
|
|||||||
@ -28,6 +28,7 @@ License
|
|||||||
#include "sinteringModel.H"
|
#include "sinteringModel.H"
|
||||||
#include "fvm.H"
|
#include "fvm.H"
|
||||||
#include "fvcDdt.H"
|
#include "fvcDdt.H"
|
||||||
|
#include "fvcDiv.H"
|
||||||
#include "mixedFvPatchField.H"
|
#include "mixedFvPatchField.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
@ -204,8 +205,8 @@ void Foam::diameterModels::shapeModels::fractal::correct()
|
|||||||
|
|
||||||
fvScalarMatrix kappaEqn
|
fvScalarMatrix kappaEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(alpha, fi, kappa_)
|
fvm::ddt(alpha, fi, kappa_) + fvm::div(fAlphaPhi, kappa_)
|
||||||
+ fvm::div(fAlphaPhi, kappa_)
|
- fvm::Sp(fvc::ddt(alpha, fi) + fvc::div(fAlphaPhi), kappa_)
|
||||||
==
|
==
|
||||||
- sinteringModel_->R()
|
- sinteringModel_->R()
|
||||||
+ Su_
|
+ Su_
|
||||||
|
|||||||
@ -224,7 +224,8 @@ void Foam::diameterModels::velocityGroup::correct()
|
|||||||
|
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
phase().mesh().solverDict(popBalName_).lookupOrDefault<Switch>
|
phase().mesh().solution().solverDict(popBalName_)
|
||||||
|
.lookupOrDefault<Switch>
|
||||||
(
|
(
|
||||||
"scale",
|
"scale",
|
||||||
true
|
true
|
||||||
|
|||||||
@ -335,7 +335,7 @@ Foam::phaseSystem::phaseSystem
|
|||||||
forAll(phases(), phasei)
|
forAll(phases(), phasei)
|
||||||
{
|
{
|
||||||
const volScalarField& alphai = phases()[phasei];
|
const volScalarField& alphai = phases()[phasei];
|
||||||
mesh_.setFluxRequired(alphai.name());
|
mesh_.schemes().setFluxRequired(alphai.name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ void Foam::phaseSystem::solve
|
|||||||
const PtrList<surfaceScalarField>& rAUfs
|
const PtrList<surfaceScalarField>& rAUfs
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solution().solverDict("alpha");
|
||||||
|
|
||||||
const label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
const label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
const label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
const label nAlphaCorr(alphaControls.lookup<label>("nAlphaCorr"));
|
||||||
|
|||||||
@ -33,6 +33,7 @@ License
|
|||||||
#include "surfaceTensionModel.H"
|
#include "surfaceTensionModel.H"
|
||||||
#include "fvm.H"
|
#include "fvm.H"
|
||||||
#include "fvcDdt.H"
|
#include "fvcDdt.H"
|
||||||
|
#include "fvcDiv.H"
|
||||||
#include "shapeModel.H"
|
#include "shapeModel.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
@ -1036,7 +1037,7 @@ void Foam::diameterModels::populationBalanceModel::solve()
|
|||||||
{
|
{
|
||||||
const label nCorr = this->nCorr();
|
const label nCorr = this->nCorr();
|
||||||
const scalar tolerance =
|
const scalar tolerance =
|
||||||
mesh_.solverDict(name_).lookup<scalar>("tolerance");
|
mesh_.solution().solverDict(name_).lookup<scalar>("tolerance");
|
||||||
|
|
||||||
if (nCorr > 0)
|
if (nCorr > 0)
|
||||||
{
|
{
|
||||||
@ -1070,8 +1071,8 @@ void Foam::diameterModels::populationBalanceModel::solve()
|
|||||||
|
|
||||||
fvScalarMatrix sizeGroupEqn
|
fvScalarMatrix sizeGroupEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(alpha, fi)
|
fvm::ddt(alpha, fi) + fvm::div(phase.alphaPhi(), fi)
|
||||||
+ fvm::div(phase.alphaPhi(), fi)
|
- fvm::Sp(fvc::ddt(alpha) + fvc::div(phase.alphaPhi()), fi)
|
||||||
==
|
==
|
||||||
Su_[i]
|
Su_[i]
|
||||||
- fvm::Sp(Sp_[i], fi)
|
- fvm::Sp(Sp_[i], fi)
|
||||||
|
|||||||
@ -29,7 +29,7 @@ inline Foam::label
|
|||||||
Foam::diameterModels::populationBalanceModel::sourceUpdateInterval() const
|
Foam::diameterModels::populationBalanceModel::sourceUpdateInterval() const
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
mesh_.solverDict(name_)
|
mesh_.solution().solverDict(name_)
|
||||||
.lookupOrDefault<label>("sourceUpdateInterval", 1);
|
.lookupOrDefault<label>("sourceUpdateInterval", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ Foam::diameterModels::populationBalanceModel::dict() const
|
|||||||
|
|
||||||
inline Foam::label Foam::diameterModels::populationBalanceModel::nCorr() const
|
inline Foam::label Foam::diameterModels::populationBalanceModel::nCorr() const
|
||||||
{
|
{
|
||||||
return mesh_.solverDict(name_).lookup<label>("nCorr");
|
return mesh_.solution().solverDict(name_).lookup<label>("nCorr");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ inline Foam::Switch
|
|||||||
Foam::diameterModels::populationBalanceModel::solveOnFinalIterOnly() const
|
Foam::diameterModels::populationBalanceModel::solveOnFinalIterOnly() const
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
mesh_.solverDict(name_).lookupOrDefault<bool>
|
mesh_.solution().solverDict(name_).lookupOrDefault<bool>
|
||||||
(
|
(
|
||||||
"solveOnFinalIterOnly",
|
"solveOnFinalIterOnly",
|
||||||
false
|
false
|
||||||
|
|||||||
@ -83,7 +83,7 @@ if (p_rgh.needReference())
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvModels.H"
|
#include "createFvModels.H"
|
||||||
|
|||||||
@ -303,7 +303,7 @@ void Foam::multiphaseMixture::solve()
|
|||||||
|
|
||||||
volScalarField& alpha = phases_.first();
|
volScalarField& alpha = phases_.first();
|
||||||
|
|
||||||
const dictionary& alphaControls = mesh_.solverDict("alpha");
|
const dictionary& alphaControls = mesh_.solution().solverDict("alpha");
|
||||||
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
scalar cAlpha(alphaControls.lookup<scalar>("cAlpha"));
|
scalar cAlpha(alphaControls.lookup<scalar>("cAlpha"));
|
||||||
|
|
||||||
|
|||||||
@ -73,7 +73,7 @@ p_gh = p - (g & mesh.C());
|
|||||||
|
|
||||||
pressureReference pressureReference(p_gh, pimple.dict());
|
pressureReference pressureReference(p_gh, pimple.dict());
|
||||||
|
|
||||||
mesh.setFluxRequired(p_gh.name());
|
mesh.schemes().setFluxRequired(p_gh.name());
|
||||||
|
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvModels.H"
|
#include "createFvModels.H"
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
const dictionary& alphaControls = mesh.solution().solverDict(alpha1.name());
|
||||||
|
|
||||||
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
label nAlphaSubCycles(alphaControls.lookup<label>("nAlphaSubCycles"));
|
||||||
|
|||||||
@ -102,5 +102,5 @@ if (p_rgh.needReference())
|
|||||||
p_rgh = p - rho*gh;
|
p_rgh = p - rho*gh;
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(p_rgh.name());
|
mesh.schemes().setFluxRequired(p_rgh.name());
|
||||||
mesh.setFluxRequired(alpha1.name());
|
mesh.schemes().setFluxRequired(alpha1.name());
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
|
const dictionary& stressControl =
|
||||||
|
mesh.solution().dict().subDict("stressAnalysis");
|
||||||
|
|
||||||
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));
|
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));
|
||||||
|
|||||||
@ -51,7 +51,7 @@ else
|
|||||||
divSigmaExp -= fvc::div((2*mu + lambda)*fvc::grad(D), "div(sigmaD)");
|
divSigmaExp -= fvc::div((2*mu + lambda)*fvc::grad(D), "div(sigmaD)");
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(D.name());
|
mesh.schemes().setFluxRequired(D.name());
|
||||||
|
|
||||||
#include "createFvModels.H"
|
#include "createFvModels.H"
|
||||||
#include "createFvConstraints.H"
|
#include "createFvConstraints.H"
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
const dictionary& stressControl =
|
const dictionary& stressControl =
|
||||||
mesh.solutionDict().subDict("stressAnalysis");
|
mesh.solution().dict().subDict("stressAnalysis");
|
||||||
|
|
||||||
nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
|
nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
|
||||||
convergenceTolerance = stressControl.lookup<scalar>("D");
|
convergenceTolerance = stressControl.lookup<scalar>("D");
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
const scalar accFac
|
const scalar accFac
|
||||||
(
|
(
|
||||||
mesh.solutionDict().subDict("stressAnalysis")
|
mesh.solution().dict().subDict("stressAnalysis")
|
||||||
.lookup<scalar>("accelerationFactor")
|
.lookup<scalar>("accelerationFactor")
|
||||||
);
|
);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -112,18 +112,6 @@ int main(int argc, char *argv[])
|
|||||||
mesh
|
mesh
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// For convenience create any fv* files
|
|
||||||
if (!exists(scMesh().fvSolution::objectPath()))
|
|
||||||
{
|
|
||||||
mkDir(scMesh().fvSolution::path());
|
|
||||||
ln("../fvSolution", scMesh().fvSolution::objectPath());
|
|
||||||
}
|
|
||||||
if (!exists(scMesh().fvSchemes::objectPath()))
|
|
||||||
{
|
|
||||||
mkDir(scMesh().fvSolution::path());
|
|
||||||
ln("../fvSchemes", scMesh().fvSchemes::objectPath());
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
forAll(timeDirs, timeI)
|
forAll(timeDirs, timeI)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -521,6 +521,25 @@ dimensioned<Type> DimensionedField<Type, GeoMesh>::weightedAverage
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Type, class GeoMesh>
|
||||||
|
void DimensionedField<Type, GeoMesh>::reset
|
||||||
|
(
|
||||||
|
const DimensionedField<Type, GeoMesh>& df
|
||||||
|
)
|
||||||
|
{
|
||||||
|
// Check for assignment to self
|
||||||
|
if (this == &df)
|
||||||
|
{
|
||||||
|
FatalErrorInFunction
|
||||||
|
<< "attempted assignment to self"
|
||||||
|
<< abort(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
|
dimensions_ = df.dimensions();
|
||||||
|
Field<Type>::operator=(df);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<class Type, class GeoMesh>
|
template<class Type, class GeoMesh>
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -325,6 +325,10 @@ public:
|
|||||||
const tmp<DimensionedField<scalar, GeoMesh>>&
|
const tmp<DimensionedField<scalar, GeoMesh>>&
|
||||||
) const;
|
) const;
|
||||||
|
|
||||||
|
//- Reset the field contents to the given field
|
||||||
|
// Used for mesh to mesh mapping
|
||||||
|
void reset(const DimensionedField<Type, GeoMesh>&);
|
||||||
|
|
||||||
|
|
||||||
// Write
|
// Write
|
||||||
|
|
||||||
|
|||||||
@ -977,8 +977,7 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::~GeometricField()
|
|||||||
{
|
{
|
||||||
this->db().cacheTemporaryObject(*this);
|
this->db().cacheTemporaryObject(*this);
|
||||||
|
|
||||||
deleteDemandDrivenData(field0Ptr_);
|
clearOldTimes();
|
||||||
deleteDemandDrivenData(fieldPrevIterPtr_);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1159,6 +1158,14 @@ Foam::GeometricField<Type, PatchField, GeoMesh>::prevIter() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Type, template<class> class PatchField, class GeoMesh>
|
||||||
|
void Foam::GeometricField<Type, PatchField, GeoMesh>::clearOldTimes()
|
||||||
|
{
|
||||||
|
deleteDemandDrivenData(field0Ptr_);
|
||||||
|
deleteDemandDrivenData(fieldPrevIterPtr_);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type, template<class> class PatchField, class GeoMesh>
|
template<class Type, template<class> class PatchField, class GeoMesh>
|
||||||
void Foam::GeometricField<Type, PatchField, GeoMesh>::
|
void Foam::GeometricField<Type, PatchField, GeoMesh>::
|
||||||
correctBoundaryConditions()
|
correctBoundaryConditions()
|
||||||
@ -1169,6 +1176,21 @@ correctBoundaryConditions()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Type, template<class> class PatchField, class GeoMesh>
|
||||||
|
void Foam::GeometricField<Type, PatchField, GeoMesh>::reset
|
||||||
|
(
|
||||||
|
const tmp<GeometricField<Type, PatchField, GeoMesh>>& tgf
|
||||||
|
)
|
||||||
|
{
|
||||||
|
const GeometricField<Type, PatchField, GeoMesh>& gf = tgf();
|
||||||
|
|
||||||
|
Internal::reset(gf);
|
||||||
|
boundaryField_ == gf.boundaryField();
|
||||||
|
|
||||||
|
tgf.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class Type, template<class> class PatchField, class GeoMesh>
|
template<class Type, template<class> class PatchField, class GeoMesh>
|
||||||
bool Foam::GeometricField<Type, PatchField, GeoMesh>::needReference() const
|
bool Foam::GeometricField<Type, PatchField, GeoMesh>::needReference() const
|
||||||
{
|
{
|
||||||
@ -1215,14 +1237,20 @@ void Foam::GeometricField<Type, PatchField, GeoMesh>::relax()
|
|||||||
"finalIteration",
|
"finalIteration",
|
||||||
false
|
false
|
||||||
)
|
)
|
||||||
&& this->mesh().relaxField(this->name() + "Final")
|
&& this->mesh().solution().relaxField(this->name() + "Final")
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
relax(this->mesh().fieldRelaxationFactor(this->name() + "Final"));
|
relax
|
||||||
|
(
|
||||||
|
this->mesh().solution().fieldRelaxationFactor
|
||||||
|
(
|
||||||
|
this->name() + "Final"
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else if (this->mesh().relaxField(this->name()))
|
else if (this->mesh().solution().relaxField(this->name()))
|
||||||
{
|
{
|
||||||
relax(this->mesh().fieldRelaxationFactor(this->name()));
|
relax(this->mesh().solution().fieldRelaxationFactor(this->name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -420,9 +420,16 @@ public:
|
|||||||
//- Return previous iteration field
|
//- Return previous iteration field
|
||||||
const GeometricField<Type, PatchField, GeoMesh>& prevIter() const;
|
const GeometricField<Type, PatchField, GeoMesh>& prevIter() const;
|
||||||
|
|
||||||
|
//- Delete old time and previous iteration fields
|
||||||
|
void clearOldTimes();
|
||||||
|
|
||||||
//- Correct boundary field
|
//- Correct boundary field
|
||||||
void correctBoundaryConditions();
|
void correctBoundaryConditions();
|
||||||
|
|
||||||
|
//- Reset the field contents to the given field
|
||||||
|
// Used for mesh to mesh mapping
|
||||||
|
void reset(const tmp<GeometricField<Type, PatchField, GeoMesh>>&);
|
||||||
|
|
||||||
//- Does the field need a reference level for solution
|
//- Does the field need a reference level for solution
|
||||||
bool needReference() const;
|
bool needReference() const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -155,7 +155,7 @@ Foam::solution::solution
|
|||||||
|| (readOpt() == IOobject::READ_IF_PRESENT && headerOk())
|
|| (readOpt() == IOobject::READ_IF_PRESENT && headerOk())
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
read(solutionDict());
|
read(dict());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ Foam::scalar Foam::solution::equationRelaxationFactor(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::dictionary& Foam::solution::solutionDict() const
|
const Foam::dictionary& Foam::solution::dict() const
|
||||||
{
|
{
|
||||||
if (found("select"))
|
if (found("select"))
|
||||||
{
|
{
|
||||||
@ -354,7 +354,7 @@ bool Foam::solution::read()
|
|||||||
{
|
{
|
||||||
if (regIOobject::read())
|
if (regIOobject::read())
|
||||||
{
|
{
|
||||||
read(solutionDict());
|
read(dict());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -134,7 +134,7 @@ public:
|
|||||||
|
|
||||||
//- Return the selected sub-dictionary of solvers if the "select"
|
//- Return the selected sub-dictionary of solvers if the "select"
|
||||||
// keyword is given, otherwise return the complete dictionary
|
// keyword is given, otherwise return the complete dictionary
|
||||||
const dictionary& solutionDict() const;
|
const dictionary& dict() const;
|
||||||
|
|
||||||
//- Return the solver controls dictionary for the given field
|
//- Return the solver controls dictionary for the given field
|
||||||
const dictionary& solverDict(const word& name) const;
|
const dictionary& solverDict(const word& name) const;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -90,7 +90,7 @@ void Foam::CorrectPhi
|
|||||||
fvc::makeAbsolute(phi, U);
|
fvc::makeAbsolute(phi, U);
|
||||||
}
|
}
|
||||||
|
|
||||||
mesh.setFluxRequired(pcorr.name());
|
mesh.schemes().setFluxRequired(pcorr.name());
|
||||||
|
|
||||||
while (pcorrControl.correctNonOrthogonal())
|
while (pcorrControl.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
@ -157,7 +157,7 @@ void Foam::CorrectPhi
|
|||||||
pcorrTypes
|
pcorrTypes
|
||||||
);
|
);
|
||||||
|
|
||||||
mesh.setFluxRequired(pcorr.name());
|
mesh.schemes().setFluxRequired(pcorr.name());
|
||||||
|
|
||||||
while (pcorrControl.correctNonOrthogonal())
|
while (pcorrControl.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
|
|||||||
@ -109,7 +109,7 @@ void Foam::SRFFreestreamVelocityFvPatchVectorField::updateCoeffs()
|
|||||||
word ddtScheme
|
word ddtScheme
|
||||||
(
|
(
|
||||||
this->internalField().mesh()
|
this->internalField().mesh()
|
||||||
.ddtScheme(this->internalField().name())
|
.schemes().ddt(this->internalField().name())
|
||||||
);
|
);
|
||||||
|
|
||||||
if (ddtScheme == fv::steadyStateDdtScheme<scalar>::typeName)
|
if (ddtScheme == fv::steadyStateDdtScheme<scalar>::typeName)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,14 +50,16 @@ Foam::pimpleControl::pimpleControl(fvMesh& mesh, const word& algorithmName)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Info<< nl << algorithmName << ": Operating solver in "
|
Info<< nl << algorithmName << ": Operating solver in "
|
||||||
<< (mesh.steady() ? "steady-state" : mesh.transient() ? "transient" :
|
<< (mesh.schemes().steady()
|
||||||
|
? "steady-state"
|
||||||
|
: mesh.schemes().transient() ? "transient" :
|
||||||
"mixed steady-state/transient") << " mode with " << nCorrPimple_
|
"mixed steady-state/transient") << " mode with " << nCorrPimple_
|
||||||
<< " outer corrector" << (nCorrPimple_ == 1 ? "" : "s") << nl;
|
<< " outer corrector" << (nCorrPimple_ == 1 ? "" : "s") << nl;
|
||||||
|
|
||||||
if (nCorrPimple_ == 1)
|
if (nCorrPimple_ == 1)
|
||||||
{
|
{
|
||||||
Info<< algorithmName << ": Operating solver in "
|
Info<< algorithmName << ": Operating solver in "
|
||||||
<< (mesh.steady() ? "SIMPLE" : "PISO") << " mode" << nl;
|
<< (mesh.schemes().steady() ? "SIMPLE" : "PISO") << " mode" << nl;
|
||||||
}
|
}
|
||||||
|
|
||||||
Info<< nl << endl;
|
Info<< nl << endl;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -87,8 +87,8 @@ Foam::pimpleMultiRegionControl::pimpleMultiRegionControl
|
|||||||
new pimpleNoLoopControl(pimpleMeshes[i], algorithmName, *this)
|
new pimpleNoLoopControl(pimpleMeshes[i], algorithmName, *this)
|
||||||
);
|
);
|
||||||
|
|
||||||
allSteady = allSteady && pimpleMeshes[i].steady();
|
allSteady = allSteady && pimpleMeshes[i].schemes().steady();
|
||||||
allTransient = allTransient && pimpleMeshes[i].transient();
|
allTransient = allTransient && pimpleMeshes[i].schemes().transient();
|
||||||
}
|
}
|
||||||
|
|
||||||
forAll(solidMeshes, i)
|
forAll(solidMeshes, i)
|
||||||
@ -98,8 +98,8 @@ Foam::pimpleMultiRegionControl::pimpleMultiRegionControl
|
|||||||
new solidNoLoopControl(solidMeshes[i], algorithmName, *this)
|
new solidNoLoopControl(solidMeshes[i], algorithmName, *this)
|
||||||
);
|
);
|
||||||
|
|
||||||
allSteady = allSteady && solidMeshes[i].steady();
|
allSteady = allSteady && solidMeshes[i].schemes().steady();
|
||||||
allTransient = allTransient && solidMeshes[i].transient();
|
allTransient = allTransient && solidMeshes[i].schemes().transient();
|
||||||
}
|
}
|
||||||
|
|
||||||
read();
|
read();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -84,7 +84,7 @@ bool Foam::pimpleNoLoopControl::read()
|
|||||||
dict().lookupOrDefaultBackwardsCompatible<bool>
|
dict().lookupOrDefaultBackwardsCompatible<bool>
|
||||||
(
|
(
|
||||||
{"simpleRho", "SIMPLErho"},
|
{"simpleRho", "SIMPLErho"},
|
||||||
mesh().steady()
|
mesh().schemes().steady()
|
||||||
);
|
);
|
||||||
|
|
||||||
turbOnFinalIterOnly_ =
|
turbOnFinalIterOnly_ =
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -57,7 +57,7 @@ Foam::singleRegionSolutionControl::~singleRegionSolutionControl()
|
|||||||
|
|
||||||
const Foam::dictionary& Foam::singleRegionSolutionControl::dict() const
|
const Foam::dictionary& Foam::singleRegionSolutionControl::dict() const
|
||||||
{
|
{
|
||||||
return mesh_.solutionDict().subDict(algorithmName());
|
return mesh_.solution().dict().subDict(algorithmName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2018-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -41,7 +41,7 @@ void Foam::singleRegionSolutionControl::storePrevIterTypeFields() const
|
|||||||
|
|
||||||
size_t prevIterField = fName.find("PrevIter");
|
size_t prevIterField = fName.find("PrevIter");
|
||||||
|
|
||||||
if (prevIterField == word::npos && mesh_.relaxField(fName))
|
if (prevIterField == word::npos && mesh_.solution().relaxField(fName))
|
||||||
{
|
{
|
||||||
fld.storePrevIter();
|
fld.storePrevIter();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -180,7 +180,7 @@ void Foam::advectiveFvPatchField<Type>::updateCoeffs()
|
|||||||
|
|
||||||
word ddtScheme
|
word ddtScheme
|
||||||
(
|
(
|
||||||
mesh.ddtScheme(this->internalField().name())
|
mesh.schemes().ddt(this->internalField().name())
|
||||||
);
|
);
|
||||||
scalar deltaT = this->db().time().deltaTValue();
|
scalar deltaT = this->db().time().deltaTValue();
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -137,7 +137,7 @@ void Foam::waveSurfacePressureFvPatchScalarField::updateCoeffs()
|
|||||||
vectorField& zetap = zeta.boundaryFieldRef()[patchi];
|
vectorField& zetap = zeta.boundaryFieldRef()[patchi];
|
||||||
|
|
||||||
// Lookup d/dt scheme from database for zeta
|
// Lookup d/dt scheme from database for zeta
|
||||||
const word ddtSchemeName(zeta.mesh().ddtScheme(zeta.name()));
|
const word ddtSchemeName(zeta.mesh().schemes().ddt(zeta.name()));
|
||||||
ddtSchemeType ddtScheme(ddtSchemeTypeNames_[ddtSchemeName]);
|
ddtSchemeType ddtScheme(ddtSchemeTypeNames_[ddtSchemeName]);
|
||||||
|
|
||||||
// Retrieve the flux field from the database
|
// Retrieve the flux field from the database
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2015-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2015-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -37,7 +37,7 @@ Foam::word Foam::fv::localEulerDdt::rSubDeltaTName("rSubDeltaT");
|
|||||||
bool Foam::fv::localEulerDdt::enabled(const fvMesh& mesh)
|
bool Foam::fv::localEulerDdt::enabled(const fvMesh& mesh)
|
||||||
{
|
{
|
||||||
return
|
return
|
||||||
word(mesh.ddtScheme("default"))
|
word(mesh.schemes().ddt("default"))
|
||||||
== fv::localEulerDdtScheme<scalar>::typeName;
|
== fv::localEulerDdtScheme<scalar>::typeName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -322,7 +322,7 @@ Foam::fvSchemes::fvSchemes(const objectRegistry& obr)
|
|||||||
|| (readOpt() == IOobject::READ_IF_PRESENT && headerOk())
|
|| (readOpt() == IOobject::READ_IF_PRESENT && headerOk())
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
read(schemesDict());
|
read(dict());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -336,7 +336,7 @@ bool Foam::fvSchemes::read()
|
|||||||
// Clear current settings except fluxRequired
|
// Clear current settings except fluxRequired
|
||||||
clear();
|
clear();
|
||||||
|
|
||||||
read(schemesDict());
|
read(dict());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -347,7 +347,7 @@ bool Foam::fvSchemes::read()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::dictionary& Foam::fvSchemes::schemesDict() const
|
const Foam::dictionary& Foam::fvSchemes::dict() const
|
||||||
{
|
{
|
||||||
if (found("select"))
|
if (found("select"))
|
||||||
{
|
{
|
||||||
@ -360,7 +360,7 @@ const Foam::dictionary& Foam::fvSchemes::schemesDict() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::ddtScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::ddt(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -379,7 +379,7 @@ Foam::ITstream& Foam::fvSchemes::ddtScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::d2dt2Scheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::d2dt2(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -398,7 +398,7 @@ Foam::ITstream& Foam::fvSchemes::d2dt2Scheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::interpolationScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::interpolation(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -421,7 +421,7 @@ Foam::ITstream& Foam::fvSchemes::interpolationScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::divScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::div(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -440,7 +440,7 @@ Foam::ITstream& Foam::fvSchemes::divScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::gradScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::grad(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -459,7 +459,7 @@ Foam::ITstream& Foam::fvSchemes::gradScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::snGradScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::snGrad(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -478,7 +478,7 @@ Foam::ITstream& Foam::fvSchemes::snGradScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::ITstream& Foam::fvSchemes::laplacianScheme(const word& name) const
|
Foam::ITstream& Foam::fvSchemes::laplacian(const word& name) const
|
||||||
{
|
{
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -111,21 +111,21 @@ public:
|
|||||||
|
|
||||||
// Access
|
// Access
|
||||||
|
|
||||||
const dictionary& schemesDict() const;
|
const dictionary& dict() const;
|
||||||
|
|
||||||
ITstream& ddtScheme(const word& name) const;
|
ITstream& ddt(const word& name) const;
|
||||||
|
|
||||||
ITstream& d2dt2Scheme(const word& name) const;
|
ITstream& d2dt2(const word& name) const;
|
||||||
|
|
||||||
ITstream& interpolationScheme(const word& name) const;
|
ITstream& interpolation(const word& name) const;
|
||||||
|
|
||||||
ITstream& divScheme(const word& name) const;
|
ITstream& div(const word& name) const;
|
||||||
|
|
||||||
ITstream& gradScheme(const word& name) const;
|
ITstream& grad(const word& name) const;
|
||||||
|
|
||||||
ITstream& snGradScheme(const word& name) const;
|
ITstream& snGrad(const word& name) const;
|
||||||
|
|
||||||
ITstream& laplacianScheme(const word& name) const;
|
ITstream& laplacian(const word& name) const;
|
||||||
|
|
||||||
void setFluxRequired(const word& name) const;
|
void setFluxRequired(const word& name) const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -49,7 +49,7 @@ d2dt2
|
|||||||
return fv::d2dt2Scheme<Type>::New
|
return fv::d2dt2Scheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("d2dt2(" + vf.name() + ')')
|
vf.mesh().schemes().ddt("d2dt2(" + vf.name() + ')')
|
||||||
).ref().fvcD2dt2(vf);
|
).ref().fvcD2dt2(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ d2dt2
|
|||||||
return fv::d2dt2Scheme<Type>::New
|
return fv::d2dt2Scheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvcD2dt2(rho, vf);
|
).ref().fvcD2dt2(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
mesh.ddtScheme("ddt(" + dt.name() + ')')
|
mesh.schemes().ddt("ddt(" + dt.name() + ')')
|
||||||
).ref().fvcDdt(dt);
|
).ref().fvcDdt(dt);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,7 +65,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + vf.name() + ')')
|
||||||
).ref().fvcDdt(vf);
|
).ref().fvcDdt(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvcDdt(rho, vf);
|
).ref().fvcDdt(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvcDdt(rho, vf);
|
).ref().fvcDdt(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme
|
vf.mesh().schemes().ddt
|
||||||
(
|
(
|
||||||
"ddt("
|
"ddt("
|
||||||
+ alpha.name() + ','
|
+ alpha.name() + ','
|
||||||
@ -135,7 +135,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
sf.mesh(),
|
sf.mesh(),
|
||||||
sf.mesh().ddtScheme("ddt(" + sf.name() + ')')
|
sf.mesh().schemes().ddt("ddt(" + sf.name() + ')')
|
||||||
).ref().fvcDdt(sf);
|
).ref().fvcDdt(sf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,7 +175,7 @@ ddtCorr
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
U.mesh(),
|
U.mesh(),
|
||||||
U.mesh().ddtScheme("ddt(" + U.name() + ')')
|
U.mesh().schemes().ddt("ddt(" + U.name() + ')')
|
||||||
).ref().fvcDdtUfCorr(U, Uf);
|
).ref().fvcDdtUfCorr(U, Uf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ ddtCorr
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
U.mesh(),
|
U.mesh(),
|
||||||
U.mesh().ddtScheme("ddt(" + U.name() + ')')
|
U.mesh().schemes().ddt("ddt(" + U.name() + ')')
|
||||||
).ref().fvcDdtPhiCorr(U, phi);
|
).ref().fvcDdtPhiCorr(U, phi);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ ddtCorr
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
U.mesh(),
|
U.mesh(),
|
||||||
U.mesh().ddtScheme("ddt(" + U.name() + ')')
|
U.mesh().schemes().ddt("ddt(" + U.name() + ')')
|
||||||
).ref().fvcDdtUfCorr(rho, U, Uf);
|
).ref().fvcDdtUfCorr(rho, U, Uf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,7 +260,7 @@ ddtCorr
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
U.mesh(),
|
U.mesh(),
|
||||||
U.mesh().ddtScheme("ddt(" + rho.name() + ',' + U.name() + ')')
|
U.mesh().schemes().ddt("ddt(" + rho.name() + ',' + U.name() + ')')
|
||||||
).ref().fvcDdtPhiCorr(rho, U, phi);
|
).ref().fvcDdtPhiCorr(rho, U, phi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -85,7 +85,7 @@ div
|
|||||||
{
|
{
|
||||||
return fv::divScheme<Type>::New
|
return fv::divScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(), vf.mesh().divScheme(name)
|
vf.mesh(), vf.mesh().schemes().div(name)
|
||||||
).ref().fvcDiv(vf);
|
).ref().fvcDiv(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ div
|
|||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
flux,
|
flux,
|
||||||
vf.mesh().divScheme(name)
|
vf.mesh().schemes().div(name)
|
||||||
).ref().fvcDiv(flux, vf);
|
).ref().fvcDiv(flux, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -66,7 +66,7 @@ flux
|
|||||||
const word& name
|
const word& name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return fvc::flux(phi, vf, vf.mesh().divScheme(name));
|
return fvc::flux(phi, vf, vf.mesh().schemes().div(name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -97,7 +97,7 @@ grad
|
|||||||
return fv::gradScheme<Type>::New
|
return fv::gradScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().gradScheme(name)
|
vf.mesh().schemes().grad(name)
|
||||||
)().grad(vf, name);
|
)().grad(vf, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ laplacian
|
|||||||
return fv::laplacianScheme<Type, scalar>::New
|
return fv::laplacianScheme<Type, scalar>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().laplacianScheme(name)
|
vf.mesh().schemes().laplacian(name)
|
||||||
).ref().fvcLaplacian(vf);
|
).ref().fvcLaplacian(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -201,7 +201,7 @@ laplacian
|
|||||||
return fv::laplacianScheme<Type, GType>::New
|
return fv::laplacianScheme<Type, GType>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().laplacianScheme(name)
|
vf.mesh().schemes().laplacian(name)
|
||||||
).ref().fvcLaplacian(gamma, vf);
|
).ref().fvcLaplacian(gamma, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -343,7 +343,7 @@ laplacian
|
|||||||
return fv::laplacianScheme<Type, GType>::New
|
return fv::laplacianScheme<Type, GType>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().laplacianScheme(name)
|
vf.mesh().schemes().laplacian(name)
|
||||||
).ref().fvcLaplacian(gamma, vf);
|
).ref().fvcLaplacian(gamma, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -38,7 +38,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::fvc::meshPhi
|
|||||||
return fv::ddtScheme<vector>::New
|
return fv::ddtScheme<vector>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + vf.name() + ')')
|
||||||
).ref().meshPhi(vf);
|
).ref().meshPhi(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::fvc::meshPhi
|
|||||||
return fv::ddtScheme<vector>::New
|
return fv::ddtScheme<vector>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().meshPhi(vf);
|
).ref().meshPhi(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ Foam::tmp<Foam::surfaceScalarField> Foam::fvc::meshPhi
|
|||||||
return fv::ddtScheme<vector>::New
|
return fv::ddtScheme<vector>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().meshPhi(vf);
|
).ref().meshPhi(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ snGrad
|
|||||||
return fv::snGradScheme<Type>::New
|
return fv::snGradScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().snGradScheme(name)
|
vf.mesh().schemes().snGrad(name)
|
||||||
)().snGrad(vf);
|
)().snGrad(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ d2dt2
|
|||||||
return fv::d2dt2Scheme<Type>::New
|
return fv::d2dt2Scheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().d2dt2Scheme("d2dt2(" + vf.name() + ')')
|
vf.mesh().schemes().d2dt2("d2dt2(" + vf.name() + ')')
|
||||||
).ref().fvmD2dt2(vf);
|
).ref().fvmD2dt2(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ d2dt2
|
|||||||
return fv::d2dt2Scheme<Type>::New
|
return fv::d2dt2Scheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().d2dt2Scheme("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().d2dt2("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvmD2dt2(rho, vf);
|
).ref().fvmD2dt2(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ d2dt2
|
|||||||
return fv::d2dt2Scheme<Type>::New
|
return fv::d2dt2Scheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().d2dt2Scheme("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().d2dt2("d2dt2(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvmD2dt2(rho, vf);
|
).ref().fvmD2dt2(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -50,7 +50,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + vf.name() + ')')
|
||||||
).ref().fvmDdt(vf);
|
).ref().fvmDdt(vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvmDdt(rho, vf);
|
).ref().fvmDdt(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme("ddt(" + rho.name() + ',' + vf.name() + ')')
|
vf.mesh().schemes().ddt("ddt(" + rho.name() + ',' + vf.name() + ')')
|
||||||
).ref().fvmDdt(rho, vf);
|
).ref().fvmDdt(rho, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ ddt
|
|||||||
return fv::ddtScheme<Type>::New
|
return fv::ddtScheme<Type>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().ddtScheme
|
vf.mesh().schemes().ddt
|
||||||
(
|
(
|
||||||
"ddt("
|
"ddt("
|
||||||
+ alpha.name() + ','
|
+ alpha.name() + ','
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -53,7 +53,7 @@ div
|
|||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
flux,
|
flux,
|
||||||
vf.mesh().divScheme(name)
|
vf.mesh().schemes().div(name)
|
||||||
)().fvmDiv(flux, vf);
|
)().fvmDiv(flux, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -215,7 +215,7 @@ laplacian
|
|||||||
return fv::laplacianScheme<Type, GType>::New
|
return fv::laplacianScheme<Type, GType>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().laplacianScheme(name)
|
vf.mesh().schemes().laplacian(name)
|
||||||
).ref().fvmLaplacian(gamma, vf);
|
).ref().fvmLaplacian(gamma, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,7 +280,7 @@ laplacian
|
|||||||
return fv::laplacianScheme<Type, GType>::New
|
return fv::laplacianScheme<Type, GType>::New
|
||||||
(
|
(
|
||||||
vf.mesh(),
|
vf.mesh(),
|
||||||
vf.mesh().laplacianScheme(name)
|
vf.mesh().schemes().laplacian(name)
|
||||||
).ref().fvmLaplacian(gamma, vf);
|
).ref().fvmLaplacian(gamma, vf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -99,7 +99,7 @@ Foam::fv::gradScheme<Type>::grad
|
|||||||
typedef typename outerProduct<vector, Type>::type GradType;
|
typedef typename outerProduct<vector, Type>::type GradType;
|
||||||
typedef GeometricField<GradType, fvPatchField, volMesh> GradFieldType;
|
typedef GeometricField<GradType, fvPatchField, volMesh> GradFieldType;
|
||||||
|
|
||||||
if (!this->mesh().changing() && this->mesh().cache(name))
|
if (!this->mesh().changing() && this->mesh().solution().cache(name))
|
||||||
{
|
{
|
||||||
if (!mesh().objectRegistry::template foundObject<GradFieldType>(name))
|
if (!mesh().objectRegistry::template foundObject<GradFieldType>(name))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -182,7 +182,7 @@ gaussLaplacianScheme<Type, GType>::fvmLaplacian
|
|||||||
|
|
||||||
fvm.source() -= mesh.V()*fvc::div(tfaceFluxCorrection())().primitiveField();
|
fvm.source() -= mesh.V()*fvc::div(tfaceFluxCorrection())().primitiveField();
|
||||||
|
|
||||||
if (mesh.fluxRequired(vf.name()))
|
if (mesh.schemes().fluxRequired(vf.name()))
|
||||||
{
|
{
|
||||||
fvm.faceFluxCorrectionPtr() = tfaceFluxCorrection.ptr();
|
fvm.faceFluxCorrectionPtr() = tfaceFluxCorrection.ptr();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -57,7 +57,7 @@ Foam::fv::gaussLaplacianScheme<Foam::Type, Foam::scalar>::fvmLaplacian \
|
|||||||
\
|
\
|
||||||
if (this->tsnGradScheme_().corrected()) \
|
if (this->tsnGradScheme_().corrected()) \
|
||||||
{ \
|
{ \
|
||||||
if (mesh.fluxRequired(vf.name())) \
|
if (mesh.schemes().fluxRequired(vf.name())) \
|
||||||
{ \
|
{ \
|
||||||
fvm.faceFluxCorrectionPtr() = new \
|
fvm.faceFluxCorrectionPtr() = new \
|
||||||
GeometricField<Type, fvsPatchField, surfaceMesh> \
|
GeometricField<Type, fvsPatchField, surfaceMesh> \
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -56,7 +56,7 @@ Foam::fv::correctedSnGrad<Type>::fullGradCorrection
|
|||||||
gradScheme<Type>::New
|
gradScheme<Type>::New
|
||||||
(
|
(
|
||||||
mesh,
|
mesh,
|
||||||
mesh.gradScheme("grad(" + vf.name() + ')')
|
mesh.schemes().grad("grad(" + vf.name() + ')')
|
||||||
)().grad(vf, "grad(" + vf.name() + ')')
|
)().grad(vf, "grad(" + vf.name() + ')')
|
||||||
);
|
);
|
||||||
tssf.ref().rename("snGradCorr(" + vf.name() + ')');
|
tssf.ref().rename("snGradCorr(" + vf.name() + ')');
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -675,14 +675,20 @@ void Foam::fvMatrix<Type>::relax()
|
|||||||
(
|
(
|
||||||
psi_.mesh().data::template lookupOrDefault<bool>
|
psi_.mesh().data::template lookupOrDefault<bool>
|
||||||
("finalIteration", false)
|
("finalIteration", false)
|
||||||
&& psi_.mesh().relaxEquation(psi_.name() + "Final")
|
&& psi_.mesh().solution().relaxEquation(psi_.name() + "Final")
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
relax(psi_.mesh().equationRelaxationFactor(psi_.name() + "Final"));
|
relax
|
||||||
|
(
|
||||||
|
psi_.mesh().solution().equationRelaxationFactor
|
||||||
|
(
|
||||||
|
psi_.name() + "Final"
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else if (psi_.mesh().relaxEquation(psi_.name()))
|
else if (psi_.mesh().solution().relaxEquation(psi_.name()))
|
||||||
{
|
{
|
||||||
relax(psi_.mesh().equationRelaxationFactor(psi_.name()));
|
relax(psi_.mesh().solution().equationRelaxationFactor(psi_.name()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -855,7 +861,7 @@ Foam::tmp<Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>>
|
|||||||
Foam::fvMatrix<Type>::
|
Foam::fvMatrix<Type>::
|
||||||
flux() const
|
flux() const
|
||||||
{
|
{
|
||||||
if (!psi_.mesh().fluxRequired(psi_.name()))
|
if (!psi_.mesh().schemes().fluxRequired(psi_.name()))
|
||||||
{
|
{
|
||||||
FatalErrorInFunction
|
FatalErrorInFunction
|
||||||
<< "flux requested but " << psi_.name()
|
<< "flux requested but " << psi_.name()
|
||||||
|
|||||||
@ -282,11 +282,11 @@ Foam::fvMatrix<Type>::solver()
|
|||||||
{
|
{
|
||||||
return solver
|
return solver
|
||||||
(
|
(
|
||||||
psi_.mesh().solverDict
|
psi_.mesh().solution().solverDict
|
||||||
(
|
(
|
||||||
psi_.select
|
psi_.select
|
||||||
(
|
(
|
||||||
!psi_.mesh().steady()
|
!psi_.mesh().schemes().steady()
|
||||||
&& psi_.mesh().data::template lookupOrDefault<bool>
|
&& psi_.mesh().data::template lookupOrDefault<bool>
|
||||||
("finalIteration", false)
|
("finalIteration", false)
|
||||||
)
|
)
|
||||||
@ -300,11 +300,11 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::fvSolver::solve()
|
|||||||
{
|
{
|
||||||
return solve
|
return solve
|
||||||
(
|
(
|
||||||
fvMat_.psi_.mesh().solverDict
|
fvMat_.psi_.mesh().solution().solverDict
|
||||||
(
|
(
|
||||||
fvMat_.psi_.select
|
fvMat_.psi_.select
|
||||||
(
|
(
|
||||||
!fvMat_.psi_.mesh().steady()
|
!fvMat_.psi_.mesh().schemes().steady()
|
||||||
&& fvMat_.psi_.mesh().data::template lookupOrDefault<bool>
|
&& fvMat_.psi_.mesh().data::template lookupOrDefault<bool>
|
||||||
("finalIteration", false)
|
("finalIteration", false)
|
||||||
)
|
)
|
||||||
@ -318,9 +318,9 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::solve(const word& name)
|
|||||||
{
|
{
|
||||||
return solve
|
return solve
|
||||||
(
|
(
|
||||||
psi_.mesh().solverDict
|
psi_.mesh().solution().solverDict
|
||||||
(
|
(
|
||||||
!psi_.mesh().steady()
|
!psi_.mesh().schemes().steady()
|
||||||
&& psi_.mesh().data::template lookupOrDefault<bool>
|
&& psi_.mesh().data::template lookupOrDefault<bool>
|
||||||
("finalIteration", false)
|
("finalIteration", false)
|
||||||
? word(name + "Final")
|
? word(name + "Final")
|
||||||
@ -335,11 +335,11 @@ Foam::SolverPerformance<Type> Foam::fvMatrix<Type>::solve()
|
|||||||
{
|
{
|
||||||
return solve
|
return solve
|
||||||
(
|
(
|
||||||
psi_.mesh().solverDict
|
psi_.mesh().solution().solverDict
|
||||||
(
|
(
|
||||||
psi_.select
|
psi_.select
|
||||||
(
|
(
|
||||||
!psi_.mesh().steady()
|
!psi_.mesh().schemes().steady()
|
||||||
&& psi_.mesh().data::template lookupOrDefault<bool>
|
&& psi_.mesh().data::template lookupOrDefault<bool>
|
||||||
(
|
(
|
||||||
"finalIteration",
|
"finalIteration",
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2013-2021 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2013-2022 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -215,7 +215,7 @@ void Foam::MULES::limiterCorr
|
|||||||
|
|
||||||
const fvMesh& mesh = psi.mesh();
|
const fvMesh& mesh = psi.mesh();
|
||||||
|
|
||||||
const dictionary& MULEScontrols = mesh.solverDict(psi.name());
|
const dictionary& MULEScontrols = mesh.solution().solverDict(psi.name());
|
||||||
|
|
||||||
const label nLimiterIter
|
const label nLimiterIter
|
||||||
(
|
(
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user