mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Corrected handling of the wall BCs of p for buoyant flows.
This commit is contained in:
@ -58,8 +58,6 @@ else
|
|||||||
//+ fvc::ddtPhiCorr(rUA, rho, U, phi)
|
//+ fvc::ddtPhiCorr(rUA, rho, U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
//bool closedVolume = adjustPhi(phi, U, p);
|
|
||||||
|
|
||||||
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
// Pressure corrector
|
// Pressure corrector
|
||||||
|
|||||||
@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
phi = fvc::interpolate(U) & mesh.Sf();
|
phi = fvc::interpolate(U) & mesh.Sf();
|
||||||
adjustPhi(phi, U, p);
|
adjustPhi(phi, U, p);
|
||||||
|
|
||||||
surfaceScalarField buoyancyPhi =
|
surfaceScalarField buoyancyPhi =
|
||||||
rUAf*fvc::interpolate(rhok)*(g & mesh.Sf());
|
rUAf*fvc::interpolate(rhok)*(g & mesh.Sf());
|
||||||
phi += buoyancyPhi;
|
phi += buoyancyPhi;
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
phi = fvc::interpolate(rho)*(fvc::interpolate(U) & mesh.Sf());
|
phi = fvc::interpolate(rho)*(fvc::interpolate(U) & mesh.Sf());
|
||||||
bool closedVolume = adjustPhi(phi, U, p);
|
bool closedVolume = adjustPhi(phi, U, p);
|
||||||
|
|
||||||
surfaceScalarField buoyancyPhi =
|
surfaceScalarField buoyancyPhi =
|
||||||
rhorUAf*fvc::interpolate(rho)*(g & mesh.Sf());
|
rhorUAf*fvc::interpolate(rho)*(g & mesh.Sf());
|
||||||
phi += buoyancyPhi;
|
phi += buoyancyPhi;
|
||||||
|
|||||||
@ -1,5 +1,9 @@
|
|||||||
{
|
{
|
||||||
wordList pcorrTypes(p.boundaryField().types());
|
wordList pcorrTypes
|
||||||
|
(
|
||||||
|
p.boundaryField().size(),
|
||||||
|
zeroGradientFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -104,12 +104,6 @@ int main(int argc, char *argv[])
|
|||||||
#include "meshCourantNo.H"
|
#include "meshCourantNo.H"
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mesh.changing())
|
|
||||||
{
|
|
||||||
gh = g & mesh.C();
|
|
||||||
ghf = g & mesh.Cf();
|
|
||||||
}
|
|
||||||
|
|
||||||
turbulence->correct();
|
turbulence->correct();
|
||||||
|
|
||||||
// --- Outer-corrector loop
|
// --- Outer-corrector loop
|
||||||
|
|||||||
@ -46,11 +46,6 @@
|
|||||||
#include "createPhi.H"
|
#include "createPhi.H"
|
||||||
|
|
||||||
|
|
||||||
Info<< "Calculating field g.h\n" << endl;
|
|
||||||
volScalarField gh("gh", g & mesh.C());
|
|
||||||
surfaceScalarField ghf("ghf", g & mesh.Cf());
|
|
||||||
|
|
||||||
|
|
||||||
Info<< "Reading transportProperties\n" << endl;
|
Info<< "Reading transportProperties\n" << endl;
|
||||||
twoPhaseMixture twoPhaseProperties(U, phi);
|
twoPhaseMixture twoPhaseProperties(U, phi);
|
||||||
|
|
||||||
@ -134,7 +129,11 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
wordList pcorrTypes(p.boundaryField().types());
|
wordList pcorrTypes
|
||||||
|
(
|
||||||
|
p.boundaryField().size(),
|
||||||
|
zeroGradientFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -92,7 +92,11 @@
|
|||||||
incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)
|
incompressible::turbulenceModel::New(U, phi, twoPhaseProperties)
|
||||||
);
|
);
|
||||||
|
|
||||||
wordList pcorrTypes(p.boundaryField().types());
|
wordList pcorrTypes
|
||||||
|
(
|
||||||
|
p.boundaryField().size(),
|
||||||
|
zeroGradientFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -86,9 +86,6 @@ int main(int argc, char *argv[])
|
|||||||
<< " s" << endl;
|
<< " s" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
volScalarField gh("gh", g & mesh.C());
|
|
||||||
surfaceScalarField ghf("ghf", g & mesh.Cf());
|
|
||||||
|
|
||||||
if (mesh.changing() && correctPhi)
|
if (mesh.changing() && correctPhi)
|
||||||
{
|
{
|
||||||
#include "correctPhi.H"
|
#include "correctPhi.H"
|
||||||
|
|||||||
@ -5,19 +5,19 @@
|
|||||||
U = rAU*UEqn.H();
|
U = rAU*UEqn.H();
|
||||||
surfaceScalarField phiU("phiU", (fvc::interpolate(U) & mesh.Sf()));
|
surfaceScalarField phiU("phiU", (fvc::interpolate(U) & mesh.Sf()));
|
||||||
|
|
||||||
|
if (p.needReference())
|
||||||
|
{
|
||||||
|
fvc::makeRelative(phiU, U);
|
||||||
|
adjustPhi(phiU, U, p);
|
||||||
|
fvc::makeAbsolute(phiU, U);
|
||||||
|
}
|
||||||
|
|
||||||
phi = phiU +
|
phi = phiU +
|
||||||
(
|
(
|
||||||
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
||||||
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
||||||
)*rAUf;
|
)*rAUf;
|
||||||
|
|
||||||
if (p.needReference())
|
|
||||||
{
|
|
||||||
fvc::makeRelative(phi, U);
|
|
||||||
adjustPhi(phi, U, p);
|
|
||||||
fvc::makeAbsolute(phi, U);
|
|
||||||
}
|
|
||||||
|
|
||||||
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
{
|
{
|
||||||
#include "continuityErrs.H"
|
#include "continuityErrs.H"
|
||||||
|
|
||||||
wordList pcorrTypes(p.boundaryField().types());
|
wordList pcorrTypes
|
||||||
|
(
|
||||||
|
p.boundaryField().size(),
|
||||||
|
zeroGradientFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,17 +7,18 @@
|
|||||||
surfaceScalarField phiU
|
surfaceScalarField phiU
|
||||||
(
|
(
|
||||||
"phiU",
|
"phiU",
|
||||||
(fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rUA, rho, U, phi)
|
(fvc::interpolate(U) & mesh.Sf())
|
||||||
|
+ fvc::ddtPhiCorr(rUA, rho, U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
adjustPhi(phiU, U, p);
|
||||||
|
|
||||||
phi = phiU +
|
phi = phiU +
|
||||||
(
|
(
|
||||||
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
||||||
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
||||||
)*rUAf;
|
)*rUAf;
|
||||||
|
|
||||||
adjustPhi(phi, U, p);
|
|
||||||
|
|
||||||
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|||||||
@ -1,7 +1,11 @@
|
|||||||
{
|
{
|
||||||
#include "continuityErrs.H"
|
#include "continuityErrs.H"
|
||||||
|
|
||||||
wordList pcorrTypes(p.boundaryField().types());
|
wordList pcorrTypes
|
||||||
|
(
|
||||||
|
p.boundaryField().size(),
|
||||||
|
zeroGradientFvPatchScalarField::typeName
|
||||||
|
);
|
||||||
|
|
||||||
for (label i=0; i<p.boundaryField().size(); i++)
|
for (label i=0; i<p.boundaryField().size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -11,14 +11,14 @@
|
|||||||
+ fvc::ddtPhiCorr(rUA, rho, U, phi)
|
+ fvc::ddtPhiCorr(rUA, rho, U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
adjustPhi(phiU, U, p);
|
||||||
|
|
||||||
phi = phiU +
|
phi = phiU +
|
||||||
(
|
(
|
||||||
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)*mesh.magSf()
|
||||||
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
||||||
)*rUAf;
|
)*rUAf;
|
||||||
|
|
||||||
adjustPhi(phi, U, p);
|
|
||||||
|
|
||||||
Pair<tmp<volScalarField> > vDotP = twoPhaseProperties->vDotP();
|
Pair<tmp<volScalarField> > vDotP = twoPhaseProperties->vDotP();
|
||||||
const volScalarField& vDotcP = vDotP[0]();
|
const volScalarField& vDotcP = vDotP[0]();
|
||||||
const volScalarField& vDotvP = vDotP[1]();
|
const volScalarField& vDotvP = vDotP[1]();
|
||||||
|
|||||||
@ -10,14 +10,14 @@
|
|||||||
(fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rUA, rho, U, phi)
|
(fvc::interpolate(U) & mesh.Sf()) + fvc::ddtPhiCorr(rUA, rho, U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
adjustPhi(phiU, U, p);
|
||||||
|
|
||||||
phi = phiU +
|
phi = phiU +
|
||||||
(
|
(
|
||||||
mixture.surfaceTensionForce()*mesh.magSf()
|
mixture.surfaceTensionForce()*mesh.magSf()
|
||||||
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
+ fvc::interpolate(rho)*(g & mesh.Sf())
|
||||||
)*rUAf;
|
)*rUAf;
|
||||||
|
|
||||||
adjustPhi(phi, U, p);
|
|
||||||
|
|
||||||
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
fvScalarMatrix pEqn
|
fvScalarMatrix pEqn
|
||||||
|
|||||||
@ -424,7 +424,7 @@ DebugSwitches
|
|||||||
filteredLinear3 0;
|
filteredLinear3 0;
|
||||||
filteredLinear3V 0;
|
filteredLinear3V 0;
|
||||||
fixedEnthalpy 0;
|
fixedEnthalpy 0;
|
||||||
fixedFluxBuoyantPressure 0;
|
buoyantPressure 0;
|
||||||
fixedFluxBoussinesqBuoyantPressure 0;
|
fixedFluxBoussinesqBuoyantPressure 0;
|
||||||
fixedFluxPressure 0;
|
fixedFluxPressure 0;
|
||||||
fixedGradient 0;
|
fixedGradient 0;
|
||||||
|
|||||||
@ -108,7 +108,7 @@ $(derivedFvPatchFields)/advective/advectiveFvPatchFields.C
|
|||||||
$(derivedFvPatchFields)/directMappedFixedValue/directMappedFixedValueFvPatchFields.C
|
$(derivedFvPatchFields)/directMappedFixedValue/directMappedFixedValueFvPatchFields.C
|
||||||
$(derivedFvPatchFields)/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C
|
$(derivedFvPatchFields)/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C
|
||||||
$(derivedFvPatchFields)/fan/fanFvPatchFields.C
|
$(derivedFvPatchFields)/fan/fanFvPatchFields.C
|
||||||
$(derivedFvPatchFields)/fixedFluxBuoyantPressure/fixedFluxBuoyantPressureFvPatchScalarField.C
|
$(derivedFvPatchFields)/buoyantPressure/buoyantPressureFvPatchScalarField.C
|
||||||
$(derivedFvPatchFields)/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C
|
$(derivedFvPatchFields)/fixedFluxPressure/fixedFluxPressureFvPatchScalarField.C
|
||||||
$(derivedFvPatchFields)/fixedInternalValueFvPatchField/fixedInternalValueFvPatchFields.C
|
$(derivedFvPatchFields)/fixedInternalValueFvPatchField/fixedInternalValueFvPatchFields.C
|
||||||
$(derivedFvPatchFields)/fixedNormalSlip/fixedNormalSlipFvPatchFields.C
|
$(derivedFvPatchFields)/fixedNormalSlip/fixedNormalSlipFvPatchFields.C
|
||||||
|
|||||||
@ -13,7 +13,3 @@
|
|||||||
|
|
||||||
int nOuterCorr =
|
int nOuterCorr =
|
||||||
piso.lookupOrDefault<int>("nOuterCorrectors", 1);
|
piso.lookupOrDefault<int>("nOuterCorrectors", 1);
|
||||||
|
|
||||||
bool ddtPhiCorr =
|
|
||||||
piso.lookupOrDefault<Switch>("ddtPhiCorr", false);
|
|
||||||
|
|
||||||
|
|||||||
@ -24,7 +24,7 @@ License
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "fixedFluxBuoyantPressureFvPatchScalarField.H"
|
#include "buoyantPressureFvPatchScalarField.H"
|
||||||
#include "addToRunTimeSelectionTable.H"
|
#include "addToRunTimeSelectionTable.H"
|
||||||
#include "fvPatchFieldMapper.H"
|
#include "fvPatchFieldMapper.H"
|
||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
@ -36,8 +36,8 @@ namespace Foam
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
buoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
const DimensionedField<scalar, volMesh>& iF
|
||||||
@ -48,8 +48,8 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
buoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<scalar, volMesh>& iF,
|
const DimensionedField<scalar, volMesh>& iF,
|
||||||
@ -64,10 +64,10 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
buoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField& ptf,
|
const buoyantPressureFvPatchScalarField& ptf,
|
||||||
const fvPatch& p,
|
const fvPatch& p,
|
||||||
const DimensionedField<scalar, volMesh>& iF,
|
const DimensionedField<scalar, volMesh>& iF,
|
||||||
const fvPatchFieldMapper& mapper
|
const fvPatchFieldMapper& mapper
|
||||||
@ -78,10 +78,10 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
buoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField& ptf
|
const buoyantPressureFvPatchScalarField& ptf
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedGradientFvPatchScalarField(ptf),
|
fixedGradientFvPatchScalarField(ptf),
|
||||||
@ -89,10 +89,10 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
buoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField& ptf,
|
const buoyantPressureFvPatchScalarField& ptf,
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
const DimensionedField<scalar, volMesh>& iF
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
@ -103,7 +103,7 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
void fixedFluxBuoyantPressureFvPatchScalarField::updateCoeffs()
|
void buoyantPressureFvPatchScalarField::updateCoeffs()
|
||||||
{
|
{
|
||||||
if (updated())
|
if (updated())
|
||||||
{
|
{
|
||||||
@ -134,7 +134,7 @@ void fixedFluxBuoyantPressureFvPatchScalarField::updateCoeffs()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void fixedFluxBuoyantPressureFvPatchScalarField::write(Ostream& os) const
|
void buoyantPressureFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fixedGradientFvPatchScalarField::write(os);
|
fixedGradientFvPatchScalarField::write(os);
|
||||||
os.writeKeyword("rho") << rhoName_ << token::END_STATEMENT << nl;
|
os.writeKeyword("rho") << rhoName_ << token::END_STATEMENT << nl;
|
||||||
@ -147,7 +147,7 @@ void fixedFluxBuoyantPressureFvPatchScalarField::write(Ostream& os) const
|
|||||||
makePatchTypeField
|
makePatchTypeField
|
||||||
(
|
(
|
||||||
fvPatchScalarField,
|
fvPatchScalarField,
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
);
|
);
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -23,7 +23,7 @@ License
|
|||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
Class
|
Class
|
||||||
Foam::fixedFluxBuoyantPressureFvPatchScalarField
|
Foam::buoyantPressureFvPatchScalarField
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Set the pressure gradient boundary condition appropriately for buoyant flow.
|
Set the pressure gradient boundary condition appropriately for buoyant flow.
|
||||||
@ -32,12 +32,12 @@ Description
|
|||||||
appropriately. Otherwise assume the variable is the static pressure.
|
appropriately. Otherwise assume the variable is the static pressure.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField.C
|
buoyantPressureFvPatchScalarField.C
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#ifndef fixedFluxBuoyantPressureFvPatchScalarFields_H
|
#ifndef buoyantPressureFvPatchScalarFields_H
|
||||||
#define fixedFluxBuoyantPressureFvPatchScalarFields_H
|
#define buoyantPressureFvPatchScalarFields_H
|
||||||
|
|
||||||
#include "fvPatchFields.H"
|
#include "fvPatchFields.H"
|
||||||
#include "fixedGradientFvPatchFields.H"
|
#include "fixedGradientFvPatchFields.H"
|
||||||
@ -48,10 +48,10 @@ namespace Foam
|
|||||||
{
|
{
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
/*---------------------------------------------------------------------------*\
|
||||||
Class fixedFluxBuoyantPressureFvPatch Declaration
|
Class buoyantPressureFvPatch Declaration
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
class fixedFluxBuoyantPressureFvPatchScalarField
|
class buoyantPressureFvPatchScalarField
|
||||||
:
|
:
|
||||||
public fixedGradientFvPatchScalarField
|
public fixedGradientFvPatchScalarField
|
||||||
{
|
{
|
||||||
@ -64,20 +64,20 @@ class fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
TypeName("fixedFluxBuoyantPressure");
|
TypeName("buoyantPressure");
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from patch and internal field
|
//- Construct from patch and internal field
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch&,
|
const fvPatch&,
|
||||||
const DimensionedField<scalar, volMesh>&
|
const DimensionedField<scalar, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct from patch, internal field and dictionary
|
//- Construct from patch, internal field and dictionary
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch&,
|
const fvPatch&,
|
||||||
const DimensionedField<scalar, volMesh>&,
|
const DimensionedField<scalar, volMesh>&,
|
||||||
@ -85,19 +85,19 @@ public:
|
|||||||
);
|
);
|
||||||
|
|
||||||
//- Construct by mapping given
|
//- Construct by mapping given
|
||||||
// fixedFluxBuoyantPressureFvPatchScalarField onto a new patch
|
// buoyantPressureFvPatchScalarField onto a new patch
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField&,
|
const buoyantPressureFvPatchScalarField&,
|
||||||
const fvPatch&,
|
const fvPatch&,
|
||||||
const DimensionedField<scalar, volMesh>&,
|
const DimensionedField<scalar, volMesh>&,
|
||||||
const fvPatchFieldMapper&
|
const fvPatchFieldMapper&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct as copy
|
//- Construct as copy
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField&
|
const buoyantPressureFvPatchScalarField&
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Construct and return a clone
|
//- Construct and return a clone
|
||||||
@ -105,14 +105,14 @@ public:
|
|||||||
{
|
{
|
||||||
return tmp<fvPatchScalarField>
|
return tmp<fvPatchScalarField>
|
||||||
(
|
(
|
||||||
new fixedFluxBuoyantPressureFvPatchScalarField(*this)
|
new buoyantPressureFvPatchScalarField(*this)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//- Construct as copy setting internal field reference
|
//- Construct as copy setting internal field reference
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
buoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField&,
|
const buoyantPressureFvPatchScalarField&,
|
||||||
const DimensionedField<scalar, volMesh>&
|
const DimensionedField<scalar, volMesh>&
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ public:
|
|||||||
{
|
{
|
||||||
return tmp<fvPatchScalarField>
|
return tmp<fvPatchScalarField>
|
||||||
(
|
(
|
||||||
new fixedFluxBuoyantPressureFvPatchScalarField(*this, iF)
|
new buoyantPressureFvPatchScalarField(*this, iF)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -22,21 +22,21 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,21 +22,21 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,28 +22,28 @@ boundaryField
|
|||||||
{
|
{
|
||||||
ground
|
ground
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
igloo_region0
|
igloo_region0
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
twoFridgeFreezers_seal_0
|
twoFridgeFreezers_seal_0
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
twoFridgeFreezers_herring_1
|
twoFridgeFreezers_herring_1
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
rho rhok;
|
rho rhok;
|
||||||
value uniform 0;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,19 +22,19 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,19 +22,19 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 1e5;
|
value uniform 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,25 +22,25 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
box
|
box
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,25 +22,25 @@ boundaryField
|
|||||||
{
|
{
|
||||||
floor
|
floor
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
ceiling
|
ceiling
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
fixedWalls
|
fixedWalls
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
box
|
box
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value uniform 100000;
|
value uniform 100000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,33 +22,33 @@ boundaryField
|
|||||||
{
|
{
|
||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
minY
|
minY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxY
|
maxY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxZ
|
maxZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -232,42 +232,42 @@ dictionaryReplacement
|
|||||||
{
|
{
|
||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
minY
|
minY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxZ
|
maxZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_leftSolid
|
bottomAir_to_leftSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_heater
|
bottomAir_to_heater
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_rightSolid
|
bottomAir_to_rightSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -231,7 +231,7 @@ dictionaryReplacement
|
|||||||
{
|
{
|
||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
@ -249,34 +249,34 @@ dictionaryReplacement
|
|||||||
|
|
||||||
minY
|
minY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxZ
|
maxZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
topAir_to_leftSolid
|
topAir_to_leftSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
topAir_to_heater
|
topAir_to_heater
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
topAir_to_rightSolid
|
topAir_to_rightSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -255,42 +255,42 @@ dictionaryReplacement
|
|||||||
{
|
{
|
||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
minY
|
minY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxZ
|
maxZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_leftSolid
|
bottomAir_to_leftSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_heater
|
bottomAir_to_heater
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
bottomAir_to_rightSolid
|
bottomAir_to_rightSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -265,7 +265,7 @@ dictionaryReplacement
|
|||||||
{
|
{
|
||||||
minX
|
minX
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxX
|
maxX
|
||||||
@ -283,34 +283,34 @@ dictionaryReplacement
|
|||||||
|
|
||||||
maxY
|
maxY
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
minZ
|
minZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
maxZ
|
maxZ
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
|
|
||||||
topAir_to_leftSolid
|
topAir_to_leftSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
topAir_to_heater
|
topAir_to_heater
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
topAir_to_rightSolid
|
topAir_to_rightSolid
|
||||||
{
|
{
|
||||||
type fixedFluxBuoyantPressure;
|
type buoyantPressure;
|
||||||
value 1e5;
|
value 1e5;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user