mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
fluxRequired: Added setFluxRequired function to fvSchemes class
Added calls to setFluxRequired for p in all incompressible solvers which avoids the need to add fluxRequired entries in fvSchemes dictionary. Will add calls to setFluxRequired to the rest of the solvers.
This commit is contained in:
@ -1,98 +1,99 @@
|
|||||||
Info<< "Reading velocity field U\n" << endl;
|
Info<< "Reading velocity field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
U = dimensionedVector("0", U.dimensions(), vector::zero);
|
|
||||||
|
|
||||||
surfaceScalarField phi
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"phi",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
fvc::interpolate(U) & mesh.Sf()
|
|
||||||
);
|
|
||||||
|
|
||||||
if (args.optionFound("initialiseUBCs"))
|
|
||||||
{
|
|
||||||
U.correctBoundaryConditions();
|
|
||||||
phi = fvc::interpolate(U) & mesh.Sf();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Default name for the pressure field
|
|
||||||
word pName("p");
|
|
||||||
|
|
||||||
// Update name of the pressure field from the command-line option
|
|
||||||
args.optionReadIfPresent("pName", pName);
|
|
||||||
|
|
||||||
// Infer the pressure BCs from the velocity BCs
|
|
||||||
wordList pBCTypes
|
|
||||||
(
|
|
||||||
U.boundaryField().size(),
|
|
||||||
fixedValueFvPatchScalarField::typeName
|
|
||||||
);
|
|
||||||
|
|
||||||
forAll(U.boundaryField(), patchi)
|
|
||||||
{
|
|
||||||
if (U.boundaryField()[patchi].fixesValue())
|
|
||||||
{
|
|
||||||
pBCTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "Constructing pressure field " << pName << nl << endl;
|
|
||||||
volScalarField p
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
pName,
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::READ_IF_PRESENT,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar(pName, sqr(dimVelocity), 0),
|
IOobject::MUST_READ,
|
||||||
pBCTypes
|
IOobject::AUTO_WRITE
|
||||||
);
|
),
|
||||||
|
mesh
|
||||||
|
);
|
||||||
|
|
||||||
Info<< "Constructing velocity potential field Phi\n" << endl;
|
U = dimensionedVector("0", U.dimensions(), vector::zero);
|
||||||
volScalarField Phi
|
|
||||||
|
surfaceScalarField phi
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"phi",
|
||||||
(
|
runTime.timeName(),
|
||||||
"Phi",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::READ_IF_PRESENT,
|
|
||||||
IOobject::NO_WRITE
|
|
||||||
),
|
|
||||||
mesh,
|
mesh,
|
||||||
dimensionedScalar("Phi", dimLength*dimVelocity, 0),
|
IOobject::NO_READ,
|
||||||
p.boundaryField().types()
|
IOobject::AUTO_WRITE
|
||||||
);
|
),
|
||||||
|
fvc::interpolate(U) & mesh.Sf()
|
||||||
|
);
|
||||||
|
|
||||||
label PhiRefCell = 0;
|
if (args.optionFound("initialiseUBCs"))
|
||||||
scalar PhiRefValue = 0;
|
{
|
||||||
setRefCell
|
U.correctBoundaryConditions();
|
||||||
|
phi = fvc::interpolate(U) & mesh.Sf();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Default name for the pressure field
|
||||||
|
word pName("p");
|
||||||
|
|
||||||
|
// Update name of the pressure field from the command-line option
|
||||||
|
args.optionReadIfPresent("pName", pName);
|
||||||
|
|
||||||
|
// Infer the pressure BCs from the velocity BCs
|
||||||
|
wordList pBCTypes
|
||||||
|
(
|
||||||
|
U.boundaryField().size(),
|
||||||
|
fixedValueFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
|
forAll(U.boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if (U.boundaryField()[patchi].fixesValue())
|
||||||
|
{
|
||||||
|
pBCTypes[patchi] = zeroGradientFvPatchScalarField::typeName;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Info<< "Constructing pressure field " << pName << nl << endl;
|
||||||
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
Phi,
|
pName,
|
||||||
potentialFlow.dict(),
|
runTime.timeName(),
|
||||||
PhiRefCell,
|
mesh,
|
||||||
PhiRefValue
|
IOobject::READ_IF_PRESENT,
|
||||||
);
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
mesh,
|
||||||
|
dimensionedScalar(pName, sqr(dimVelocity), 0),
|
||||||
|
pBCTypes
|
||||||
|
);
|
||||||
|
|
||||||
|
Info<< "Constructing velocity potential field Phi\n" << endl;
|
||||||
|
volScalarField Phi
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"Phi",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::READ_IF_PRESENT,
|
||||||
|
IOobject::NO_WRITE
|
||||||
|
),
|
||||||
|
mesh,
|
||||||
|
dimensionedScalar("Phi", dimLength*dimVelocity, 0),
|
||||||
|
p.boundaryField().types()
|
||||||
|
);
|
||||||
|
|
||||||
|
label PhiRefCell = 0;
|
||||||
|
scalar PhiRefValue = 0;
|
||||||
|
setRefCell
|
||||||
|
(
|
||||||
|
Phi,
|
||||||
|
potentialFlow.dict(),
|
||||||
|
PhiRefCell,
|
||||||
|
PhiRefValue
|
||||||
|
);
|
||||||
|
mesh.setFluxRequired(Phi.name());
|
||||||
|
|||||||
@ -1,109 +1,111 @@
|
|||||||
Info<< "Reading field p\n" << endl;
|
Info<< "Reading field p\n" << endl;
|
||||||
volScalarField p
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"p",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
Info<< "Reading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"U",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading field pa\n" << endl;
|
Info<< "Reading field pa\n" << endl;
|
||||||
volScalarField pa
|
volScalarField pa
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"pa",
|
||||||
(
|
runTime.timeName(),
|
||||||
"pa",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading field Ua\n" << endl;
|
Info<< "Reading field Ua\n" << endl;
|
||||||
volVectorField Ua
|
volVectorField Ua
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"Ua",
|
||||||
(
|
runTime.timeName(),
|
||||||
"Ua",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhia.H"
|
#include "createPhia.H"
|
||||||
|
|
||||||
|
|
||||||
label paRefCell = 0;
|
label paRefCell = 0;
|
||||||
scalar paRefValue = 0.0;
|
scalar paRefValue = 0.0;
|
||||||
setRefCell
|
setRefCell
|
||||||
|
(
|
||||||
|
pa,
|
||||||
|
simple.dict(),
|
||||||
|
paRefCell,
|
||||||
|
paRefValue
|
||||||
|
);
|
||||||
|
mesh.setFluxRequired(pa.name());
|
||||||
|
|
||||||
|
|
||||||
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|
||||||
|
autoPtr<incompressible::RASModel> turbulence
|
||||||
|
(
|
||||||
|
incompressible::RASModel::New(U, phi, laminarTransport)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
dimensionedScalar zeroSensitivity("0", dimVelocity*dimVelocity, 0.0);
|
||||||
|
dimensionedScalar zeroAlpha("0", dimless/dimTime, 0.0);
|
||||||
|
|
||||||
|
dimensionedScalar lambda(laminarTransport.lookup("lambda"));
|
||||||
|
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"));
|
||||||
|
|
||||||
|
const labelList& inletCells = mesh.boundary()["inlet"].faceCells();
|
||||||
|
//const labelList& outletCells = mesh.boundary()["outlet"].faceCells();
|
||||||
|
|
||||||
|
volScalarField alpha
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
pa,
|
"alpha",
|
||||||
simple.dict(),
|
runTime.timeName(),
|
||||||
paRefCell,
|
mesh,
|
||||||
paRefValue
|
IOobject::READ_IF_PRESENT,
|
||||||
);
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
lambda*max(Ua & U, zeroSensitivity)
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
);
|
||||||
|
zeroCells(alpha, inletCells);
|
||||||
autoPtr<incompressible::RASModel> turbulence
|
//zeroCells(alpha, outletCells);
|
||||||
(
|
|
||||||
incompressible::RASModel::New(U, phi, laminarTransport)
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
dimensionedScalar zeroSensitivity("0", dimVelocity*dimVelocity, 0.0);
|
|
||||||
dimensionedScalar zeroAlpha("0", dimless/dimTime, 0.0);
|
|
||||||
|
|
||||||
dimensionedScalar lambda(laminarTransport.lookup("lambda"));
|
|
||||||
dimensionedScalar alphaMax(laminarTransport.lookup("alphaMax"));
|
|
||||||
|
|
||||||
const labelList& inletCells = mesh.boundary()["inlet"].faceCells();
|
|
||||||
//const labelList& outletCells = mesh.boundary()["outlet"].faceCells();
|
|
||||||
|
|
||||||
volScalarField alpha
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"alpha",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::READ_IF_PRESENT,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
lambda*max(Ua & U, zeroSensitivity)
|
|
||||||
);
|
|
||||||
zeroCells(alpha, inletCells);
|
|
||||||
//zeroCells(alpha, outletCells);
|
|
||||||
|
|||||||
@ -1,55 +1,56 @@
|
|||||||
Info<< "Reading transportProperties\n" << endl;
|
Info<< "Reading transportProperties\n" << endl;
|
||||||
|
|
||||||
IOdictionary transportProperties
|
IOdictionary transportProperties
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"transportProperties",
|
||||||
(
|
runTime.constant(),
|
||||||
"transportProperties",
|
mesh,
|
||||||
runTime.constant(),
|
IOobject::MUST_READ_IF_MODIFIED,
|
||||||
mesh,
|
IOobject::NO_WRITE
|
||||||
IOobject::MUST_READ_IF_MODIFIED,
|
)
|
||||||
IOobject::NO_WRITE
|
);
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
dimensionedScalar nu
|
dimensionedScalar nu
|
||||||
|
(
|
||||||
|
transportProperties.lookup("nu")
|
||||||
|
);
|
||||||
|
|
||||||
|
Info<< "Reading field p\n" << endl;
|
||||||
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
transportProperties.lookup("nu")
|
"p",
|
||||||
);
|
runTime.timeName(),
|
||||||
|
mesh,
|
||||||
|
IOobject::MUST_READ,
|
||||||
|
IOobject::AUTO_WRITE
|
||||||
|
),
|
||||||
|
mesh
|
||||||
|
);
|
||||||
|
|
||||||
Info<< "Reading field p\n" << endl;
|
|
||||||
volScalarField p
|
Info<< "Reading field U\n" << endl;
|
||||||
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
#include "createPhi.H"
|
||||||
volVectorField U
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"U",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::MUST_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
label pRefCell = 0;
|
||||||
|
scalar pRefValue = 0.0;
|
||||||
|
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
||||||
label pRefCell = 0;
|
mesh.setFluxRequired(p.name());
|
||||||
scalar pRefValue = 0.0;
|
|
||||||
setRefCell(p, mesh.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
|
||||||
|
|||||||
@ -1,39 +1,40 @@
|
|||||||
Info<< "Reading field p\n" << endl;
|
Info<< "Reading field p\n" << endl;
|
||||||
volScalarField p
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"p",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
Info<< "Reading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"U",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel fluid(U, phi);
|
singlePhaseTransportModel fluid(U, phi);
|
||||||
|
|
||||||
|
|
||||||
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.solutionDict().subDict("PISO"), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|||||||
@ -43,6 +43,7 @@ surfaceScalarField phi
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(Urel, phi);
|
singlePhaseTransportModel laminarTransport(Urel, phi);
|
||||||
|
|
||||||
|
|||||||
@ -32,6 +32,7 @@ volVectorField U
|
|||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
setRefCell(p, pimple.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
#include "../createFields.H"
|
||||||
|
mesh.setFluxRequired("pcorr");
|
||||||
@ -1,42 +1,43 @@
|
|||||||
Info<< "Reading field p\n" << endl;
|
Info<< "Reading field p\n" << endl;
|
||||||
volScalarField p
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"p",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
Info<< "Reading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"U",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
setRefCell(p, piso.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|
||||||
autoPtr<incompressible::turbulenceModel> turbulence
|
autoPtr<incompressible::turbulenceModel> turbulence
|
||||||
(
|
(
|
||||||
incompressible::turbulenceModel::New(U, phi, laminarTransport)
|
incompressible::turbulenceModel::New(U, phi, laminarTransport)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -73,3 +73,5 @@ 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());
|
||||||
|
|||||||
@ -1,55 +1,56 @@
|
|||||||
Info<< "Reading field p\n" << endl;
|
Info<< "Reading field p\n" << endl;
|
||||||
volScalarField p
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"p",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading field Urel\n" << endl;
|
Info<< "Reading field Urel\n" << endl;
|
||||||
volVectorField Urel
|
volVectorField Urel
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"Urel",
|
||||||
(
|
runTime.timeName(),
|
||||||
"Urel",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading/calculating face flux field phi\n" << endl;
|
Info<< "Reading/calculating face flux field phi\n" << endl;
|
||||||
surfaceScalarField phi
|
surfaceScalarField phi
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"phi",
|
||||||
(
|
runTime.timeName(),
|
||||||
"phi",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::READ_IF_PRESENT,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::READ_IF_PRESENT,
|
),
|
||||||
IOobject::AUTO_WRITE
|
linearInterpolate(Urel) & mesh.Sf()
|
||||||
),
|
);
|
||||||
linearInterpolate(Urel) & mesh.Sf()
|
|
||||||
);
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(Urel, phi);
|
singlePhaseTransportModel laminarTransport(Urel, phi);
|
||||||
|
|
||||||
autoPtr<incompressible::RASModel> turbulence
|
autoPtr<incompressible::RASModel> turbulence
|
||||||
(
|
(
|
||||||
incompressible::RASModel::New(Urel, phi, laminarTransport)
|
incompressible::RASModel::New(Urel, phi, laminarTransport)
|
||||||
);
|
);
|
||||||
|
|
||||||
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));
|
||||||
|
|||||||
@ -1,42 +1,43 @@
|
|||||||
Info<< "Reading field p\n" << endl;
|
Info<< "Reading field p\n" << endl;
|
||||||
volScalarField p
|
volScalarField p
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"p",
|
||||||
(
|
runTime.timeName(),
|
||||||
"p",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
Info<< "Reading field U\n" << endl;
|
Info<< "Reading field U\n" << endl;
|
||||||
volVectorField U
|
volVectorField U
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
(
|
(
|
||||||
IOobject
|
"U",
|
||||||
(
|
runTime.timeName(),
|
||||||
"U",
|
mesh,
|
||||||
runTime.timeName(),
|
IOobject::MUST_READ,
|
||||||
mesh,
|
IOobject::AUTO_WRITE
|
||||||
IOobject::MUST_READ,
|
),
|
||||||
IOobject::AUTO_WRITE
|
mesh
|
||||||
),
|
);
|
||||||
mesh
|
|
||||||
);
|
|
||||||
|
|
||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
label pRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
setRefCell(p, simple.dict(), pRefCell, pRefValue);
|
||||||
|
mesh.setFluxRequired(p.name());
|
||||||
|
|
||||||
|
|
||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|
||||||
autoPtr<incompressible::turbulenceModel> turbulence
|
autoPtr<incompressible::turbulenceModel> turbulence
|
||||||
(
|
(
|
||||||
incompressible::turbulenceModel::New(U, phi, laminarTransport)
|
incompressible::turbulenceModel::New(U, phi, laminarTransport)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -42,13 +42,13 @@ void Foam::fvSchemes::clear()
|
|||||||
defaultD2dt2Scheme_.clear();
|
defaultD2dt2Scheme_.clear();
|
||||||
interpolationSchemes_.clear();
|
interpolationSchemes_.clear();
|
||||||
defaultInterpolationScheme_.clear();
|
defaultInterpolationScheme_.clear();
|
||||||
divSchemes_.clear(); // optional
|
divSchemes_.clear();
|
||||||
defaultDivScheme_.clear();
|
defaultDivScheme_.clear();
|
||||||
gradSchemes_.clear(); // optional
|
gradSchemes_.clear();
|
||||||
defaultGradScheme_.clear();
|
defaultGradScheme_.clear();
|
||||||
snGradSchemes_.clear();
|
snGradSchemes_.clear();
|
||||||
defaultSnGradScheme_.clear();
|
defaultSnGradScheme_.clear();
|
||||||
laplacianSchemes_.clear(); // optional
|
laplacianSchemes_.clear();
|
||||||
defaultLaplacianScheme_.clear();
|
defaultLaplacianScheme_.clear();
|
||||||
fluxRequired_.clear();
|
fluxRequired_.clear();
|
||||||
defaultFluxRequired_ = false;
|
defaultFluxRequired_ = false;
|
||||||
@ -558,6 +558,17 @@ Foam::ITstream& Foam::fvSchemes::laplacianScheme(const word& name) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::fvSchemes::setFluxRequired(const word& name)
|
||||||
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Info<< "Setting fluxRequired for " << name << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
fluxRequired_.add(name, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Foam::fvSchemes::fluxRequired(const word& name) const
|
bool Foam::fvSchemes::fluxRequired(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 |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -130,6 +130,8 @@ public:
|
|||||||
|
|
||||||
ITstream& laplacianScheme(const word& name) const;
|
ITstream& laplacianScheme(const word& name) const;
|
||||||
|
|
||||||
|
void setFluxRequired(const word& name);
|
||||||
|
|
||||||
bool fluxRequired(const word& name) const;
|
bool fluxRequired(const word& name) const;
|
||||||
|
|
||||||
//- Return true if the default ddtScheme is steadyState
|
//- Return true if the default ddtScheme is steadyState
|
||||||
|
|||||||
@ -47,11 +47,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
Phi ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -47,11 +47,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
Phi ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,11 +49,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -54,12 +54,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -53,11 +53,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
pa;
|
|
||||||
}
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -47,11 +47,5 @@ snGradSchemes
|
|||||||
default orthogonal;
|
default orthogonal;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -46,11 +46,5 @@ snGradSchemes
|
|||||||
default orthogonal;
|
default orthogonal;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -46,11 +46,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -46,11 +46,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -47,11 +47,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,12 +50,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
pcorr ;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,12 +50,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
pcorr ;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,12 +52,5 @@ snGradSchemes
|
|||||||
default limited corrected 0.33;
|
default limited corrected 0.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
pcorr ;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,12 +52,5 @@ snGradSchemes
|
|||||||
default limited corrected 0.33;
|
default limited corrected 0.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
pcorr ;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,13 +50,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
pcorr ;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -50,12 +50,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -54,11 +54,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,11 +52,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,11 +52,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -51,12 +51,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -50,12 +50,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -61,11 +61,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,12 +57,6 @@ snGradSchemes
|
|||||||
default limited corrected 0.33;
|
default limited corrected 0.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -52,13 +52,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
Phi;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -48,11 +48,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -51,11 +51,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -53,11 +53,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,11 +52,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,11 +50,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,11 +50,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -50,11 +50,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -45,10 +45,5 @@ snGradSchemes
|
|||||||
default uncorrected;
|
default uncorrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
h;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -48,12 +48,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -49,11 +49,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -49,13 +49,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
Phi;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -52,11 +52,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -52,12 +52,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -52,11 +52,5 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -58,12 +58,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
@ -50,11 +50,5 @@ snGradSchemes
|
|||||||
default limited corrected 0.333;
|
default limited corrected 0.333;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -57,12 +57,6 @@ snGradSchemes
|
|||||||
default corrected;
|
default corrected;
|
||||||
}
|
}
|
||||||
|
|
||||||
fluxRequired
|
|
||||||
{
|
|
||||||
default no;
|
|
||||||
p ;
|
|
||||||
}
|
|
||||||
|
|
||||||
wallDist
|
wallDist
|
||||||
{
|
{
|
||||||
method meshWave;
|
method meshWave;
|
||||||
|
|||||||
Reference in New Issue
Block a user