mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changed Boussinesq solvers to use p rather than pd and added hotRoom tutorial cases for them.
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
EXE_INC = \
|
EXE_INC = \
|
||||||
|
-I../buoyantBoussinesqSimpleFoam \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/turbulenceModels \
|
-I$(LIB_SRC)/turbulenceModels \
|
||||||
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \
|
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/lnInclude \
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
volScalarField kappaEff
|
volScalarField kappaEff
|
||||||
(
|
(
|
||||||
"kappaEff",
|
"kappaEff",
|
||||||
turbulence->nu() + turbulence->nut()/Prt
|
turbulence->nu()/Pr + turbulence->nut()/Prt
|
||||||
);
|
);
|
||||||
|
|
||||||
fvScalarMatrix TEqn
|
fvScalarMatrix TEqn
|
||||||
@ -15,4 +15,6 @@
|
|||||||
TEqn.relax();
|
TEqn.relax();
|
||||||
|
|
||||||
TEqn.solve();
|
TEqn.solve();
|
||||||
|
|
||||||
|
rhok = 1.0 - beta*(T - TRef);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,23 +1,26 @@
|
|||||||
// Solve the momentum equation
|
// Solve the momentum equation
|
||||||
|
|
||||||
tmp<fvVectorMatrix> UEqn
|
fvVectorMatrix UEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(U)
|
fvm::ddt(U)
|
||||||
+ fvm::div(phi, U)
|
+ fvm::div(phi, U)
|
||||||
+ turbulence->divDevReff(U)
|
+ turbulence->divDevReff(U)
|
||||||
);
|
);
|
||||||
|
|
||||||
UEqn().relax();
|
UEqn.relax();
|
||||||
|
|
||||||
solve
|
if (momentumPredictor)
|
||||||
(
|
{
|
||||||
UEqn()
|
solve
|
||||||
==
|
|
||||||
-fvc::reconstruct
|
|
||||||
(
|
(
|
||||||
|
UEqn
|
||||||
|
==
|
||||||
|
fvc::reconstruct
|
||||||
(
|
(
|
||||||
fvc::snGrad(pd)
|
(
|
||||||
- betaghf*fvc::snGrad(T)
|
fvc::interpolate(rhok)*(g & mesh.Sf())
|
||||||
) * mesh.magSf()
|
- fvc::snGrad(p)*mesh.magSf()
|
||||||
)
|
)
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@ -54,18 +54,17 @@ Description
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#include "setRootCase.H"
|
||||||
|
#include "createTime.H"
|
||||||
|
#include "createMesh.H"
|
||||||
|
#include "readEnvironmentalProperties.H"
|
||||||
|
#include "createFields.H"
|
||||||
|
#include "initContinuityErrs.H"
|
||||||
|
#include "readTimeControls.H"
|
||||||
|
#include "CourantNo.H"
|
||||||
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
# include "setRootCase.H"
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
# include "createTime.H"
|
|
||||||
# include "createMesh.H"
|
|
||||||
# include "readEnvironmentalProperties.H"
|
|
||||||
# include "createFields.H"
|
|
||||||
# include "initContinuityErrs.H"
|
|
||||||
# include "readTimeControls.H"
|
|
||||||
# include "CourantNo.H"
|
|
||||||
# include "setInitialDeltaT.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|
||||||
@ -73,26 +72,23 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
# include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
# include "readPISOControls.H"
|
#include "readPISOControls.H"
|
||||||
# include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
# include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
# include "UEqn.H"
|
#include "UEqn.H"
|
||||||
|
#include "TEqn.H"
|
||||||
|
|
||||||
// --- PISO loop
|
// --- PISO loop
|
||||||
for (int corr=0; corr<nCorr; corr++)
|
for (int corr=0; corr<nCorr; corr++)
|
||||||
{
|
{
|
||||||
# include "TEqn.H"
|
#include "pEqn.H"
|
||||||
# include "pdEqn.H"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
turbulence->correct();
|
turbulence->correct();
|
||||||
|
|
||||||
if (runTime.write())
|
runTime.write();
|
||||||
{
|
|
||||||
# include "writeAdditionalFields.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||||
|
|||||||
@ -14,13 +14,12 @@
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
// kinematic pd
|
Info<< "Reading field p\n" << endl;
|
||||||
Info<< "Reading field pd\n" << endl;
|
volScalarField p
|
||||||
volScalarField pd
|
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"pd",
|
"p",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
@ -53,15 +52,25 @@
|
|||||||
incompressible::RASModel::New(U, phi, laminarTransport)
|
incompressible::RASModel::New(U, phi, laminarTransport)
|
||||||
);
|
);
|
||||||
|
|
||||||
Info<< "Calculating field beta*(g.h)\n" << endl;
|
label pRefCell = 0;
|
||||||
surfaceScalarField betaghf("betagh", beta*(g & mesh.Cf()));
|
scalar pRefValue = 0.0;
|
||||||
|
|
||||||
label pdRefCell = 0;
|
|
||||||
scalar pdRefValue = 0.0;
|
|
||||||
setRefCell
|
setRefCell
|
||||||
(
|
(
|
||||||
pd,
|
p,
|
||||||
mesh.solutionDict().subDict("SIMPLE"),
|
mesh.solutionDict().subDict("PISO"),
|
||||||
pdRefCell,
|
pRefCell,
|
||||||
pdRefValue
|
pRefValue
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Kinematic density for buoyancy force
|
||||||
|
volScalarField rhok
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhok",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh
|
||||||
|
),
|
||||||
|
1.0 - beta*(T - TRef)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,9 +1,8 @@
|
|||||||
{
|
{
|
||||||
volScalarField rUA("rUA", 1.0/UEqn().A());
|
volScalarField rUA("rUA", 1.0/UEqn.A());
|
||||||
surfaceScalarField rUAf("(1|A(U))", fvc::interpolate(rUA));
|
surfaceScalarField rUAf("(1|A(U))", fvc::interpolate(rUA));
|
||||||
|
|
||||||
U = rUA*UEqn().H();
|
U = rUA*UEqn.H();
|
||||||
UEqn.clear();
|
|
||||||
|
|
||||||
surfaceScalarField phiU
|
surfaceScalarField phiU
|
||||||
(
|
(
|
||||||
@ -11,31 +10,31 @@
|
|||||||
+ fvc::ddtPhiCorr(rUA, U, phi)
|
+ fvc::ddtPhiCorr(rUA, U, phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
phi = phiU + betaghf*fvc::snGrad(T)*rUAf*mesh.magSf();
|
phi = phiU + rUAf*fvc::interpolate(rhok)*(g & mesh.Sf());
|
||||||
|
|
||||||
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
fvScalarMatrix pdEqn
|
fvScalarMatrix pEqn
|
||||||
(
|
(
|
||||||
fvm::laplacian(rUAf, pd) == fvc::div(phi)
|
fvm::laplacian(rUAf, p) == fvc::div(phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
if (corr == nCorr-1 && nonOrth == nNonOrthCorr)
|
if (corr == nCorr-1 && nonOrth == nNonOrthCorr)
|
||||||
{
|
{
|
||||||
pdEqn.solve(mesh.solver(pd.name() + "Final"));
|
pEqn.solve(mesh.solver(p.name() + "Final"));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pdEqn.solve(mesh.solver(pd.name()));
|
pEqn.solve(mesh.solver(p.name()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nonOrth == nNonOrthCorr)
|
if (nonOrth == nNonOrthCorr)
|
||||||
{
|
{
|
||||||
phi += pdEqn.flux();
|
phi -= pEqn.flux();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
U -= rUA*fvc::reconstruct((phi - phiU)/rUAf);
|
U += rUA*fvc::reconstruct((phi - phiU)/rUAf);
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
|
|
||||||
#include "continuityErrs.H"
|
#include "continuityErrs.H"
|
||||||
@ -1,13 +0,0 @@
|
|||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
|
||||||
|
|
||||||
// thermal expansion coefficient [1/K]
|
|
||||||
dimensionedScalar beta(laminarTransport.lookup("beta"));
|
|
||||||
|
|
||||||
// reference temperature [K]
|
|
||||||
dimensionedScalar TRef(laminarTransport.lookup("TRef"));
|
|
||||||
|
|
||||||
// reference kinematic pressure [m2/s2]
|
|
||||||
dimensionedScalar pRef(laminarTransport.lookup("pRef"));
|
|
||||||
|
|
||||||
// turbulent Prandtl number
|
|
||||||
dimensionedScalar Prt(laminarTransport.lookup("Prt"));
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
volScalarField rhoEff
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rhoEff",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
1.0 - beta*(T - TRef)
|
|
||||||
);
|
|
||||||
rhoEff.write();
|
|
||||||
|
|
||||||
volScalarField p
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"p",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
pd + rhoEff*(g & mesh.C()) + pRef
|
|
||||||
);
|
|
||||||
p.write();
|
|
||||||
}
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
volScalarField kappaEff
|
volScalarField kappaEff
|
||||||
(
|
(
|
||||||
"kappaEff",
|
"kappaEff",
|
||||||
turbulence->nu() + turbulence->nut()/Prt
|
turbulence->nu()/Pr + turbulence->nut()/Prt
|
||||||
);
|
);
|
||||||
|
|
||||||
fvScalarMatrix TEqn
|
fvScalarMatrix TEqn
|
||||||
@ -16,4 +16,6 @@
|
|||||||
|
|
||||||
eqnResidual = TEqn.solve().initialResidual();
|
eqnResidual = TEqn.solve().initialResidual();
|
||||||
maxResidual = max(eqnResidual, maxResidual);
|
maxResidual = max(eqnResidual, maxResidual);
|
||||||
|
|
||||||
|
rhok = 1.0 - beta*(T - TRef);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,12 +13,12 @@
|
|||||||
(
|
(
|
||||||
UEqn()
|
UEqn()
|
||||||
==
|
==
|
||||||
-fvc::reconstruct
|
fvc::reconstruct
|
||||||
(
|
(
|
||||||
(
|
(
|
||||||
fvc::snGrad(pd)
|
fvc::interpolate(rhok)*(g & mesh.Sf())
|
||||||
- betaghf*fvc::snGrad(T)
|
- fvc::snGrad(p)*mesh.magSf()
|
||||||
) * mesh.magSf()
|
)
|
||||||
)
|
)
|
||||||
).initialResidual();
|
).initialResidual();
|
||||||
|
|
||||||
|
|||||||
@ -54,15 +54,14 @@ Description
|
|||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#include "setRootCase.H"
|
||||||
|
#include "createTime.H"
|
||||||
|
#include "createMesh.H"
|
||||||
|
#include "readEnvironmentalProperties.H"
|
||||||
|
#include "createFields.H"
|
||||||
|
#include "initContinuityErrs.H"
|
||||||
|
|
||||||
# include "setRootCase.H"
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
# include "createTime.H"
|
|
||||||
# include "createMesh.H"
|
|
||||||
# include "readEnvironmentalProperties.H"
|
|
||||||
# include "createFields.H"
|
|
||||||
# include "initContinuityErrs.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< "\nStarting time loop\n" << endl;
|
||||||
|
|
||||||
@ -70,30 +69,27 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
# include "readSIMPLEControls.H"
|
#include "readSIMPLEControls.H"
|
||||||
# include "initConvergenceCheck.H"
|
#include "initConvergenceCheck.H"
|
||||||
|
|
||||||
pd.storePrevIter();
|
p.storePrevIter();
|
||||||
|
|
||||||
// Pressure-velocity SIMPLE corrector
|
// Pressure-velocity SIMPLE corrector
|
||||||
{
|
{
|
||||||
# include "UEqn.H"
|
#include "UEqn.H"
|
||||||
# include "TEqn.H"
|
#include "TEqn.H"
|
||||||
# include "pdEqn.H"
|
#include "pEqn.H"
|
||||||
}
|
}
|
||||||
|
|
||||||
turbulence->correct();
|
turbulence->correct();
|
||||||
|
|
||||||
if (runTime.write())
|
runTime.write();
|
||||||
{
|
|
||||||
# include "writeAdditionalFields.H"
|
|
||||||
}
|
|
||||||
|
|
||||||
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
|
||||||
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
<< " ClockTime = " << runTime.elapsedClockTime() << " s"
|
||||||
<< nl << endl;
|
<< nl << endl;
|
||||||
|
|
||||||
# include "convergenceCheck.H"
|
#include "convergenceCheck.H"
|
||||||
}
|
}
|
||||||
|
|
||||||
Info<< "End\n" << endl;
|
Info<< "End\n" << endl;
|
||||||
|
|||||||
@ -14,13 +14,12 @@
|
|||||||
mesh
|
mesh
|
||||||
);
|
);
|
||||||
|
|
||||||
// kinematic pd
|
Info<< "Reading field p\n" << endl;
|
||||||
Info<< "Reading field pd\n" << endl;
|
volScalarField p
|
||||||
volScalarField pd
|
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
(
|
(
|
||||||
"pd",
|
"p",
|
||||||
runTime.timeName(),
|
runTime.timeName(),
|
||||||
mesh,
|
mesh,
|
||||||
IOobject::MUST_READ,
|
IOobject::MUST_READ,
|
||||||
@ -56,12 +55,25 @@
|
|||||||
Info<< "Calculating field beta*(g.h)\n" << endl;
|
Info<< "Calculating field beta*(g.h)\n" << endl;
|
||||||
surfaceScalarField betaghf("betagh", beta*(g & mesh.Cf()));
|
surfaceScalarField betaghf("betagh", beta*(g & mesh.Cf()));
|
||||||
|
|
||||||
label pdRefCell = 0;
|
label pRefCell = 0;
|
||||||
scalar pdRefValue = 0.0;
|
scalar pRefValue = 0.0;
|
||||||
setRefCell
|
setRefCell
|
||||||
(
|
(
|
||||||
pd,
|
p,
|
||||||
mesh.solutionDict().subDict("SIMPLE"),
|
mesh.solutionDict().subDict("SIMPLE"),
|
||||||
pdRefCell,
|
pRefCell,
|
||||||
pdRefValue
|
pRefValue
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// Kinematic density for buoyancy force
|
||||||
|
volScalarField rhok
|
||||||
|
(
|
||||||
|
IOobject
|
||||||
|
(
|
||||||
|
"rhok",
|
||||||
|
runTime.timeName(),
|
||||||
|
mesh
|
||||||
|
),
|
||||||
|
1.0 - beta*(T - TRef)
|
||||||
);
|
);
|
||||||
|
|||||||
@ -6,41 +6,42 @@
|
|||||||
UEqn.clear();
|
UEqn.clear();
|
||||||
|
|
||||||
phi = fvc::interpolate(U) & mesh.Sf();
|
phi = fvc::interpolate(U) & mesh.Sf();
|
||||||
adjustPhi(phi, U, pd);
|
adjustPhi(phi, U, p);
|
||||||
surfaceScalarField buoyancyPhi = -betaghf*fvc::snGrad(T)*rUAf*mesh.magSf();
|
surfaceScalarField buoyancyPhi =
|
||||||
phi -= buoyancyPhi;
|
rUAf*fvc::interpolate(rhok)*(g & mesh.Sf());
|
||||||
|
phi += buoyancyPhi;
|
||||||
|
|
||||||
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
|
||||||
{
|
{
|
||||||
fvScalarMatrix pdEqn
|
fvScalarMatrix pEqn
|
||||||
(
|
(
|
||||||
fvm::laplacian(rUAf, pd) == fvc::div(phi)
|
fvm::laplacian(rUAf, p) == fvc::div(phi)
|
||||||
);
|
);
|
||||||
|
|
||||||
pdEqn.setReference(pdRefCell, pdRefValue);
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
// retain the residual from the first iteration
|
// retain the residual from the first iteration
|
||||||
if (nonOrth == 0)
|
if (nonOrth == 0)
|
||||||
{
|
{
|
||||||
eqnResidual = pdEqn.solve().initialResidual();
|
eqnResidual = pEqn.solve().initialResidual();
|
||||||
maxResidual = max(eqnResidual, maxResidual);
|
maxResidual = max(eqnResidual, maxResidual);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pdEqn.solve();
|
pEqn.solve();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nonOrth == nNonOrthCorr)
|
if (nonOrth == nNonOrthCorr)
|
||||||
{
|
{
|
||||||
// Calculate the conservative fluxes
|
// Calculate the conservative fluxes
|
||||||
phi -= pdEqn.flux();
|
phi -= pEqn.flux();
|
||||||
|
|
||||||
// Explicitly relax pressure for momentum corrector
|
// Explicitly relax pressure for momentum corrector
|
||||||
pd.relax();
|
p.relax();
|
||||||
|
|
||||||
// Correct the momentum source with the pressure gradient flux
|
// Correct the momentum source with the pressure gradient flux
|
||||||
// calculated from the relaxed pressure
|
// calculated from the relaxed pressure
|
||||||
U -= rUA*fvc::reconstruct((buoyancyPhi + pdEqn.flux())/rUAf);
|
U += rUA*fvc::reconstruct((buoyancyPhi - pEqn.flux())/rUAf);
|
||||||
U.correctBoundaryConditions();
|
U.correctBoundaryConditions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,13 +1,13 @@
|
|||||||
singlePhaseTransportModel laminarTransport(U, phi);
|
singlePhaseTransportModel laminarTransport(U, phi);
|
||||||
|
|
||||||
// thermal expansion coefficient [1/K]
|
// Thermal expansion coefficient [1/K]
|
||||||
dimensionedScalar beta(laminarTransport.lookup("beta"));
|
dimensionedScalar beta(laminarTransport.lookup("beta"));
|
||||||
|
|
||||||
// reference temperature [K]
|
// Reference temperature [K]
|
||||||
dimensionedScalar TRef(laminarTransport.lookup("TRef"));
|
dimensionedScalar TRef(laminarTransport.lookup("TRef"));
|
||||||
|
|
||||||
// reference kinematic pressure [m2/s2]
|
// Laminar Prandtl number
|
||||||
dimensionedScalar pRef(laminarTransport.lookup("pRef"));
|
dimensionedScalar Pr(laminarTransport.lookup("Pr"));
|
||||||
|
|
||||||
// turbulent Prandtl number
|
// Turbulent Prandtl number
|
||||||
dimensionedScalar Prt(laminarTransport.lookup("Prt"));
|
dimensionedScalar Prt(laminarTransport.lookup("Prt"));
|
||||||
|
|||||||
@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
volScalarField rhoEff
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"rhoEff",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
1.0 - beta*(T - TRef)
|
|
||||||
);
|
|
||||||
rhoEff.write();
|
|
||||||
|
|
||||||
volScalarField p
|
|
||||||
(
|
|
||||||
IOobject
|
|
||||||
(
|
|
||||||
"p",
|
|
||||||
runTime.timeName(),
|
|
||||||
mesh,
|
|
||||||
IOobject::NO_READ,
|
|
||||||
IOobject::AUTO_WRITE
|
|
||||||
),
|
|
||||||
pd + rhoEff*(g & mesh.C()) + pRef
|
|
||||||
);
|
|
||||||
p.write();
|
|
||||||
}
|
|
||||||
@ -65,4 +65,3 @@
|
|||||||
dimensionedScalar initialMass = fvc::domainIntegrate(rho);
|
dimensionedScalar initialMass = fvc::domainIntegrate(rho);
|
||||||
|
|
||||||
dimensionedScalar totalVolume = sum(mesh.V());
|
dimensionedScalar totalVolume = sum(mesh.V());
|
||||||
|
|
||||||
|
|||||||
@ -109,7 +109,6 @@ $(derivedFvPatchFields)/directMappedFixedValue/directMappedFixedValueFvPatchFiel
|
|||||||
$(derivedFvPatchFields)/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C
|
$(derivedFvPatchFields)/directMappedVelocityFluxFixedValue/directMappedVelocityFluxFixedValueFvPatchField.C
|
||||||
$(derivedFvPatchFields)/fan/fanFvPatchFields.C
|
$(derivedFvPatchFields)/fan/fanFvPatchFields.C
|
||||||
$(derivedFvPatchFields)/fixedFluxBuoyantPressure/fixedFluxBuoyantPressureFvPatchScalarField.C
|
$(derivedFvPatchFields)/fixedFluxBuoyantPressure/fixedFluxBuoyantPressureFvPatchScalarField.C
|
||||||
$(derivedFvPatchFields)/fixedFluxBoussinesqBuoyantPressure/fixedFluxBoussinesqBuoyantPressureFvPatchScalarField.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
|
||||||
|
|||||||
@ -1,149 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM is free software; you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by the
|
|
||||||
Free Software Foundation; either version 2 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with OpenFOAM; if not, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#include "fixedFluxBoussinesqBuoyantPressureFvPatchScalarField.H"
|
|
||||||
#include "addToRunTimeSelectionTable.H"
|
|
||||||
#include "fvPatchFieldMapper.H"
|
|
||||||
#include "volFields.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fvPatch& p,
|
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(p, iF)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField& ptf,
|
|
||||||
const fvPatch& p,
|
|
||||||
const DimensionedField<scalar, volMesh>& iF,
|
|
||||||
const fvPatchFieldMapper& mapper
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(ptf, p, iF, mapper)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fvPatch& p,
|
|
||||||
const DimensionedField<scalar, volMesh>& iF,
|
|
||||||
const dictionary&
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(p, iF)
|
|
||||||
{
|
|
||||||
fvPatchField<scalar>::operator=(patchInternalField());
|
|
||||||
gradient() = 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField& wbppsf
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(wbppsf)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField& wbppsf,
|
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(wbppsf, iF)
|
|
||||||
{}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
void fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::updateCoeffs()
|
|
||||||
{
|
|
||||||
if (updated())
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const dictionary& environmentalProperties
|
|
||||||
= db().lookupObject<IOdictionary>("environmentalProperties");
|
|
||||||
|
|
||||||
dimensionedVector g(environmentalProperties.lookup("g"));
|
|
||||||
|
|
||||||
const dictionary& transportProperties
|
|
||||||
= db().lookupObject<IOdictionary>("transportProperties");
|
|
||||||
|
|
||||||
dimensionedScalar beta(transportProperties.lookup("beta"));
|
|
||||||
|
|
||||||
const fvPatchField<scalar>& T =
|
|
||||||
patch().lookupPatchField<volScalarField, scalar>("T");
|
|
||||||
|
|
||||||
gradient() = beta.value()*T.snGrad()*(g.value() & patch().Cf());
|
|
||||||
|
|
||||||
fixedGradientFvPatchScalarField::updateCoeffs();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void fixedFluxBoussinesqBuoyantPressureFvPatchScalarField::write
|
|
||||||
(
|
|
||||||
Ostream& os
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
fixedGradientFvPatchScalarField::write(os);
|
|
||||||
writeEntry("value", os);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
makePatchTypeField
|
|
||||||
(
|
|
||||||
fvPatchScalarField,
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
);
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -1,148 +0,0 @@
|
|||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
========= |
|
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
||||||
\\ / O peration |
|
|
||||||
\\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
|
|
||||||
\\/ M anipulation |
|
|
||||||
-------------------------------------------------------------------------------
|
|
||||||
License
|
|
||||||
This file is part of OpenFOAM.
|
|
||||||
|
|
||||||
OpenFOAM is free software; you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by the
|
|
||||||
Free Software Foundation; either version 2 of the License, or (at your
|
|
||||||
option) any later version.
|
|
||||||
|
|
||||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
|
||||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with OpenFOAM; if not, write to the Free Software Foundation,
|
|
||||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
||||||
|
|
||||||
Class
|
|
||||||
Foam::fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
|
|
||||||
Description
|
|
||||||
Boundary condition on pressure for use with buoyant solvers employing the
|
|
||||||
Boussinesq approximation to balance the flux generated by the temperature
|
|
||||||
gradient.
|
|
||||||
|
|
||||||
SourceFiles
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField.C
|
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef fixedFluxBoussinesqBuoyantPressureFvPatchScalarFields_H
|
|
||||||
#define fixedFluxBoussinesqBuoyantPressureFvPatchScalarFields_H
|
|
||||||
|
|
||||||
#include "fvPatchFields.H"
|
|
||||||
#include "fixedGradientFvPatchFields.H"
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
namespace Foam
|
|
||||||
{
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*\
|
|
||||||
Class fixedFluxBoussinesqBuoyantPressureFvPatchScalarField Declaration
|
|
||||||
\*---------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
class fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
:
|
|
||||||
public fixedGradientFvPatchScalarField
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
|
|
||||||
//- Runtime type information
|
|
||||||
TypeName("fixedFluxBoussinesqBuoyantPressure");
|
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
|
||||||
|
|
||||||
//- Construct from patch and internal field
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fvPatch&,
|
|
||||||
const DimensionedField<scalar, volMesh>&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct from patch, internal field and dictionary
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fvPatch&,
|
|
||||||
const DimensionedField<scalar, volMesh>&,
|
|
||||||
const dictionary&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct by mapping given
|
|
||||||
// fixedFluxBoussinesqBuoyantPressureFvPatchScalarField onto a new
|
|
||||||
// patch
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField&,
|
|
||||||
const fvPatch&,
|
|
||||||
const DimensionedField<scalar, volMesh>&,
|
|
||||||
const fvPatchFieldMapper&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct as copy
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct and return a clone
|
|
||||||
virtual tmp<fvPatchScalarField> clone() const
|
|
||||||
{
|
|
||||||
return tmp<fvPatchScalarField>
|
|
||||||
(
|
|
||||||
new fixedFluxBoussinesqBuoyantPressureFvPatchScalarField(*this)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
//- Construct as copy setting internal field reference
|
|
||||||
fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBoussinesqBuoyantPressureFvPatchScalarField&,
|
|
||||||
const DimensionedField<scalar, volMesh>&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Construct and return a clone setting internal field reference
|
|
||||||
virtual tmp<fvPatchScalarField> clone
|
|
||||||
(
|
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
|
||||||
) const
|
|
||||||
{
|
|
||||||
return tmp<fvPatchScalarField>
|
|
||||||
(
|
|
||||||
new fixedFluxBoussinesqBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
*this,
|
|
||||||
iF
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// Member functions
|
|
||||||
|
|
||||||
//- Update the coefficients associated with the patch field
|
|
||||||
virtual void updateCoeffs();
|
|
||||||
|
|
||||||
//- Write
|
|
||||||
virtual void write(Ostream&) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
} // End namespace Foam
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
|
||||||
@ -43,10 +43,27 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
const DimensionedField<scalar, volMesh>& iF
|
const DimensionedField<scalar, volMesh>& iF
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedGradientFvPatchScalarField(p, iF)
|
fixedGradientFvPatchScalarField(p, iF),
|
||||||
|
rhoName_("rho")
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
fixedFluxBuoyantPressureFvPatchScalarField::
|
||||||
|
fixedFluxBuoyantPressureFvPatchScalarField
|
||||||
|
(
|
||||||
|
const fvPatch& p,
|
||||||
|
const DimensionedField<scalar, volMesh>& iF,
|
||||||
|
const dictionary& dict
|
||||||
|
)
|
||||||
|
:
|
||||||
|
fixedGradientFvPatchScalarField(p, iF),
|
||||||
|
rhoName_(dict.lookupOrDefault<word>("rho", "rho"))
|
||||||
|
{
|
||||||
|
fvPatchField<scalar>::operator=(patchInternalField());
|
||||||
|
gradient() = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
fixedFluxBuoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
fixedFluxBuoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
@ -56,43 +73,31 @@ fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
const fvPatchFieldMapper& mapper
|
const fvPatchFieldMapper& mapper
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedGradientFvPatchScalarField(ptf, p, iF, mapper)
|
fixedGradientFvPatchScalarField(ptf, p, iF, mapper),
|
||||||
|
rhoName_(ptf.rhoName_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
fixedFluxBuoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
fixedFluxBuoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fvPatch& p,
|
const fixedFluxBuoyantPressureFvPatchScalarField& ptf
|
||||||
const DimensionedField<scalar, volMesh>& iF,
|
|
||||||
const dictionary&
|
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedGradientFvPatchScalarField(p, iF)
|
fixedGradientFvPatchScalarField(ptf),
|
||||||
{
|
rhoName_(ptf.rhoName_)
|
||||||
fvPatchField<scalar>::operator=(patchInternalField());
|
|
||||||
gradient() = 0.0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
|
||||||
(
|
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField& wbppsf
|
|
||||||
)
|
|
||||||
:
|
|
||||||
fixedGradientFvPatchScalarField(wbppsf)
|
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField::
|
fixedFluxBuoyantPressureFvPatchScalarField::
|
||||||
fixedFluxBuoyantPressureFvPatchScalarField
|
fixedFluxBuoyantPressureFvPatchScalarField
|
||||||
(
|
(
|
||||||
const fixedFluxBuoyantPressureFvPatchScalarField& wbppsf,
|
const fixedFluxBuoyantPressureFvPatchScalarField& ptf,
|
||||||
const DimensionedField<scalar, volMesh>& iF
|
const DimensionedField<scalar, volMesh>& iF
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
fixedGradientFvPatchScalarField(wbppsf, iF)
|
fixedGradientFvPatchScalarField(ptf, iF),
|
||||||
|
rhoName_(ptf.rhoName_)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -111,7 +116,7 @@ void fixedFluxBuoyantPressureFvPatchScalarField::updateCoeffs()
|
|||||||
dimensionedVector g(environmentalProperties.lookup("g"));
|
dimensionedVector g(environmentalProperties.lookup("g"));
|
||||||
|
|
||||||
const fvPatchField<scalar>& rho =
|
const fvPatchField<scalar>& rho =
|
||||||
patch().lookupPatchField<volScalarField, scalar>("rho");
|
patch().lookupPatchField<volScalarField, scalar>(rhoName_);
|
||||||
|
|
||||||
// If the variable name is "pd" assume it is p - rho*g.h
|
// If the variable name is "pd" assume it is p - rho*g.h
|
||||||
// and set the gradient appropriately.
|
// and set the gradient appropriately.
|
||||||
@ -132,6 +137,7 @@ void fixedFluxBuoyantPressureFvPatchScalarField::updateCoeffs()
|
|||||||
void fixedFluxBuoyantPressureFvPatchScalarField::write(Ostream& os) const
|
void fixedFluxBuoyantPressureFvPatchScalarField::write(Ostream& os) const
|
||||||
{
|
{
|
||||||
fixedGradientFvPatchScalarField::write(os);
|
fixedGradientFvPatchScalarField::write(os);
|
||||||
|
os.writeKeyword("rho") << rhoName_ << token::END_STATEMENT << nl;
|
||||||
writeEntry("value", os);
|
writeEntry("value", os);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -55,6 +55,11 @@ class fixedFluxBuoyantPressureFvPatchScalarField
|
|||||||
:
|
:
|
||||||
public fixedGradientFvPatchScalarField
|
public fixedGradientFvPatchScalarField
|
||||||
{
|
{
|
||||||
|
// Private data
|
||||||
|
|
||||||
|
//- Name of the density field used to calculate the buoyancy force
|
||||||
|
word rhoName_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,6 @@ License
|
|||||||
#include "volFields.H"
|
#include "volFields.H"
|
||||||
#include "surfaceFields.H"
|
#include "surfaceFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
443
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/T
Normal file
443
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/T
Normal file
@ -0,0 +1,443 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object T;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 1 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 300;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value nonuniform List<scalar>
|
||||||
|
400
|
||||||
|
(
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 300;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
443
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/T.org
Normal file
443
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/T.org
Normal file
@ -0,0 +1,443 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object T;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 1 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 300;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value nonuniform List<scalar>
|
||||||
|
400
|
||||||
|
(
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 300;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
42
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/U
Normal file
42
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/U
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volVectorField;
|
||||||
|
object U;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object alphat;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [1 -1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object epsilon;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -3 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.01;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object epsilon;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -3 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.01;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
42
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/k
Normal file
42
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/k
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object k;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.1;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object k;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.1;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object mut;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [1 -1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object nut;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
45
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/p
Normal file
45
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/0/p
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
7
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/Allclean
Executable file
7
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/Allclean
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
cp 0/T.org 0/T
|
||||||
10
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/Allrun
Executable file
10
tutorials/heatTransfer/buoyantBoussinesqPisoFoam/hotRoom/Allrun
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
application="buoyantBoussinesqPisoFoam"
|
||||||
|
|
||||||
|
compileApplication ../../buoyantPisoFoam/hotRoom/setHotRoom
|
||||||
|
runApplication blockMesh
|
||||||
|
runApplication setHotRoom
|
||||||
|
runApplication $application
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "constant";
|
||||||
|
object RASProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
RASModel kEpsilon;
|
||||||
|
|
||||||
|
turbulence on;
|
||||||
|
|
||||||
|
printCoeffs on;
|
||||||
|
|
||||||
|
laminarCoeffs
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
kEpsilonCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
C3 0.85;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
RNGkEpsilonCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.0845;
|
||||||
|
C1 1.42;
|
||||||
|
C2 1.68;
|
||||||
|
C3 -0.33;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1.39;
|
||||||
|
alphaEps 1.39;
|
||||||
|
eta0 4.38;
|
||||||
|
beta 0.012;
|
||||||
|
}
|
||||||
|
|
||||||
|
LaunderSharmaKECoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
C3 -0.33;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRRCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
Clrr1 1.8;
|
||||||
|
Clrr2 0.6;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
alphah 1;
|
||||||
|
Cs 0.25;
|
||||||
|
Ceps 0.15;
|
||||||
|
alphaR 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
LaunderGibsonRSTMCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
Clg1 1.8;
|
||||||
|
Clg2 0.6;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
alphah 1;
|
||||||
|
C1Ref 0.5;
|
||||||
|
C2Ref 0.3;
|
||||||
|
Cs 0.25;
|
||||||
|
Ceps 0.15;
|
||||||
|
alphaR 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
wallFunctionCoeffs
|
||||||
|
{
|
||||||
|
kappa 0.4187;
|
||||||
|
E 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "constant";
|
||||||
|
object environmentalProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
g g [ 0 1 -2 0 0 0 0 ] ( 0 -9.81 0 );
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object blockMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
convertToMeters 1;
|
||||||
|
|
||||||
|
vertices
|
||||||
|
(
|
||||||
|
(0 0 0)
|
||||||
|
(10 0 0)
|
||||||
|
(10 5 0)
|
||||||
|
(0 5 0)
|
||||||
|
(0 0 10)
|
||||||
|
(10 0 10)
|
||||||
|
(10 5 10)
|
||||||
|
(0 5 10)
|
||||||
|
);
|
||||||
|
|
||||||
|
blocks
|
||||||
|
(
|
||||||
|
hex (0 1 2 3 4 5 6 7) (20 10 20) simpleGrading (1 1 1)
|
||||||
|
);
|
||||||
|
|
||||||
|
edges
|
||||||
|
(
|
||||||
|
);
|
||||||
|
|
||||||
|
patches
|
||||||
|
(
|
||||||
|
wall floor
|
||||||
|
(
|
||||||
|
(1 5 4 0)
|
||||||
|
)
|
||||||
|
wall ceiling
|
||||||
|
(
|
||||||
|
(3 7 6 2)
|
||||||
|
)
|
||||||
|
wall fixedWalls
|
||||||
|
(
|
||||||
|
(0 4 7 3)
|
||||||
|
(2 6 5 1)
|
||||||
|
(0 3 2 1)
|
||||||
|
(4 5 6 7)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
mergePatchPairs
|
||||||
|
(
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class polyBoundaryMesh;
|
||||||
|
location "constant/polyMesh";
|
||||||
|
object boundary;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
3
|
||||||
|
(
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 400;
|
||||||
|
startFace 11200;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 400;
|
||||||
|
startFace 11600;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 800;
|
||||||
|
startFace 12000;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5.x |
|
||||||
|
| \\ / A nd | Web: http://www.openfoam.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
|
||||||
|
root "";
|
||||||
|
case "";
|
||||||
|
instance "";
|
||||||
|
local "";
|
||||||
|
|
||||||
|
class dictionary;
|
||||||
|
object transportProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
transportModel Newtonian;
|
||||||
|
|
||||||
|
// Laminar viscosity
|
||||||
|
nu nu [0 2 -1 0 0 0 0] 1e-05;
|
||||||
|
|
||||||
|
// Thermal expansion coefficient
|
||||||
|
beta beta [0 0 0 -1 0 0 0] 3e-03;
|
||||||
|
|
||||||
|
// Reference temperature
|
||||||
|
TRef TRef [0 0 0 1 0 0 0] 300;
|
||||||
|
|
||||||
|
// Laminar Prandtl number
|
||||||
|
Pr Pr [0 0 0 0 0 0 0] 0.9;
|
||||||
|
|
||||||
|
// Turbulent Prandtl number
|
||||||
|
Prt Prt [0 0 0 0 0 0 0] 0.7;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object controlDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
startFrom startTime;
|
||||||
|
|
||||||
|
startTime 0;
|
||||||
|
|
||||||
|
stopAt endTime;
|
||||||
|
|
||||||
|
endTime 1000;
|
||||||
|
|
||||||
|
deltaT 1;
|
||||||
|
|
||||||
|
writeControl timeStep;
|
||||||
|
|
||||||
|
writeInterval 100;
|
||||||
|
|
||||||
|
purgeWrite 0;
|
||||||
|
|
||||||
|
writeFormat ascii;
|
||||||
|
|
||||||
|
writePrecision 6;
|
||||||
|
|
||||||
|
writeCompression uncompressed;
|
||||||
|
|
||||||
|
timeFormat general;
|
||||||
|
|
||||||
|
timePrecision 6;
|
||||||
|
|
||||||
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
adjustTimeStep no;
|
||||||
|
|
||||||
|
maxCo 0.5;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSchemes;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
ddtSchemes
|
||||||
|
{
|
||||||
|
default Euler;
|
||||||
|
}
|
||||||
|
|
||||||
|
gradSchemes
|
||||||
|
{
|
||||||
|
default Gauss linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
divSchemes
|
||||||
|
{
|
||||||
|
default none;
|
||||||
|
div(phi,U) Gauss upwind;
|
||||||
|
div(phi,T) Gauss upwind;
|
||||||
|
div(phi,k) Gauss upwind;
|
||||||
|
div(phi,epsilon) Gauss upwind;
|
||||||
|
div(phi,R) Gauss upwind;
|
||||||
|
div(R) Gauss linear;
|
||||||
|
div((nuEff*dev(grad(U).T()))) Gauss linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
laplacianSchemes
|
||||||
|
{
|
||||||
|
default none;
|
||||||
|
laplacian(nuEff,U) Gauss linear corrected;
|
||||||
|
laplacian((1|A(U)),p) Gauss linear corrected;
|
||||||
|
laplacian(kappaEff,T) Gauss linear corrected;
|
||||||
|
laplacian(DkEff,k) Gauss linear corrected;
|
||||||
|
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
|
||||||
|
laplacian(DREff,R) Gauss linear corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
interpolationSchemes
|
||||||
|
{
|
||||||
|
default linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
snGradSchemes
|
||||||
|
{
|
||||||
|
default corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
fluxRequired
|
||||||
|
{
|
||||||
|
default no;
|
||||||
|
p ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,87 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSolution;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
solvers
|
||||||
|
{
|
||||||
|
p
|
||||||
|
{
|
||||||
|
solver PCG;
|
||||||
|
preconditioner DIC;
|
||||||
|
tolerance 1e-07;
|
||||||
|
relTol 0.1;
|
||||||
|
}
|
||||||
|
|
||||||
|
pFinal
|
||||||
|
{
|
||||||
|
solver PCG;
|
||||||
|
preconditioner DIC;
|
||||||
|
tolerance 1e-07;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
U
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
T
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
k
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
epsilon
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
R
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PISO
|
||||||
|
{
|
||||||
|
momentumPredictor yes;
|
||||||
|
nCorrectors 2;
|
||||||
|
nNonOrthogonalCorrectors 0;
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
443
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/T
Normal file
443
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/0/T
Normal file
@ -0,0 +1,443 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object T;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 1 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 300;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value nonuniform List<scalar>
|
||||||
|
400
|
||||||
|
(
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 300;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,443 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object T;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 1 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 300;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value nonuniform List<scalar>
|
||||||
|
400
|
||||||
|
(
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
600
|
||||||
|
600
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
300
|
||||||
|
)
|
||||||
|
;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 300;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volVectorField;
|
||||||
|
object U;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object alphat;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [1 -1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type alphatWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object epsilon;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -3 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.01;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object epsilon;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -3 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.01;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type compressible::epsilonWallFunction;
|
||||||
|
value uniform 0.01;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object k;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.1;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object k;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.1;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type compressible::kQRWallFunction;
|
||||||
|
value uniform 0.1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object mut;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [1 -1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type mutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
location "0";
|
||||||
|
object nut;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type nutWallFunction;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,45 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class volScalarField;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type fixedFluxBuoyantPressure;
|
||||||
|
rho rhok;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
7
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean
Executable file
7
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allclean
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
cp 0/T.org 0/T
|
||||||
10
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun
Executable file
10
tutorials/heatTransfer/buoyantBoussinesqSimpleFoam/hotRoom/Allrun
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
application="buoyantBoussinesqSimpleFoam"
|
||||||
|
|
||||||
|
compileApplication ../../buoyantPisoFoam/hotRoom/setHotRoom
|
||||||
|
runApplication blockMesh
|
||||||
|
runApplication setHotRoom
|
||||||
|
runApplication $application
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "constant";
|
||||||
|
object RASProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
RASModel kEpsilon;
|
||||||
|
|
||||||
|
turbulence on;
|
||||||
|
|
||||||
|
printCoeffs on;
|
||||||
|
|
||||||
|
laminarCoeffs
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
kEpsilonCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
C3 0.85;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
RNGkEpsilonCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.0845;
|
||||||
|
C1 1.42;
|
||||||
|
C2 1.68;
|
||||||
|
C3 -0.33;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1.39;
|
||||||
|
alphaEps 1.39;
|
||||||
|
eta0 4.38;
|
||||||
|
beta 0.012;
|
||||||
|
}
|
||||||
|
|
||||||
|
LaunderSharmaKECoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
C3 -0.33;
|
||||||
|
alphah 1;
|
||||||
|
alphak 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
LRRCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
Clrr1 1.8;
|
||||||
|
Clrr2 0.6;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
alphah 1;
|
||||||
|
Cs 0.25;
|
||||||
|
Ceps 0.15;
|
||||||
|
alphaR 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
LaunderGibsonRSTMCoeffs
|
||||||
|
{
|
||||||
|
Cmu 0.09;
|
||||||
|
Clg1 1.8;
|
||||||
|
Clg2 0.6;
|
||||||
|
C1 1.44;
|
||||||
|
C2 1.92;
|
||||||
|
alphah 1;
|
||||||
|
C1Ref 0.5;
|
||||||
|
C2Ref 0.3;
|
||||||
|
Cs 0.25;
|
||||||
|
Ceps 0.15;
|
||||||
|
alphaR 1;
|
||||||
|
alphaEps 0.76923;
|
||||||
|
}
|
||||||
|
|
||||||
|
wallFunctionCoeffs
|
||||||
|
{
|
||||||
|
kappa 0.4187;
|
||||||
|
E 9;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "constant";
|
||||||
|
object environmentalProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
g g [ 0 1 -2 0 0 0 0 ] ( 0 -9.81 0 );
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
object blockMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
convertToMeters 1;
|
||||||
|
|
||||||
|
vertices
|
||||||
|
(
|
||||||
|
(0 0 0)
|
||||||
|
(10 0 0)
|
||||||
|
(10 5 0)
|
||||||
|
(0 5 0)
|
||||||
|
(0 0 10)
|
||||||
|
(10 0 10)
|
||||||
|
(10 5 10)
|
||||||
|
(0 5 10)
|
||||||
|
);
|
||||||
|
|
||||||
|
blocks
|
||||||
|
(
|
||||||
|
hex (0 1 2 3 4 5 6 7) (20 10 20) simpleGrading (1 1 1)
|
||||||
|
);
|
||||||
|
|
||||||
|
edges
|
||||||
|
(
|
||||||
|
);
|
||||||
|
|
||||||
|
patches
|
||||||
|
(
|
||||||
|
wall floor
|
||||||
|
(
|
||||||
|
(1 5 4 0)
|
||||||
|
)
|
||||||
|
wall ceiling
|
||||||
|
(
|
||||||
|
(3 7 6 2)
|
||||||
|
)
|
||||||
|
wall fixedWalls
|
||||||
|
(
|
||||||
|
(0 4 7 3)
|
||||||
|
(2 6 5 1)
|
||||||
|
(0 3 2 1)
|
||||||
|
(4 5 6 7)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
mergePatchPairs
|
||||||
|
(
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: dev |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class polyBoundaryMesh;
|
||||||
|
location "constant/polyMesh";
|
||||||
|
object boundary;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
3
|
||||||
|
(
|
||||||
|
floor
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 400;
|
||||||
|
startFace 11200;
|
||||||
|
}
|
||||||
|
ceiling
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 400;
|
||||||
|
startFace 11600;
|
||||||
|
}
|
||||||
|
fixedWalls
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 800;
|
||||||
|
startFace 12000;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,42 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5.x |
|
||||||
|
| \\ / A nd | Web: http://www.openfoam.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
|
||||||
|
root "";
|
||||||
|
case "";
|
||||||
|
instance "";
|
||||||
|
local "";
|
||||||
|
|
||||||
|
class dictionary;
|
||||||
|
object transportProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
transportModel Newtonian;
|
||||||
|
|
||||||
|
// Laminar viscosity
|
||||||
|
nu nu [0 2 -1 0 0 0 0] 1e-05;
|
||||||
|
|
||||||
|
// Thermal expansion coefficient
|
||||||
|
beta beta [0 0 0 -1 0 0 0] 3e-03;
|
||||||
|
|
||||||
|
// Reference temperature
|
||||||
|
TRef TRef [0 0 0 1 0 0 0] 300;
|
||||||
|
|
||||||
|
// Laminar Prandtl number
|
||||||
|
Pr Pr [0 0 0 0 0 0 0] 0.9;
|
||||||
|
|
||||||
|
// Turbulent Prandtl number
|
||||||
|
Prt Prt [0 0 0 0 0 0 0] 0.7;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,47 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object controlDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
startFrom latestTime;
|
||||||
|
|
||||||
|
startTime 0;
|
||||||
|
|
||||||
|
stopAt endTime;
|
||||||
|
|
||||||
|
endTime 1000;
|
||||||
|
|
||||||
|
deltaT 1;
|
||||||
|
|
||||||
|
writeControl timeStep;
|
||||||
|
|
||||||
|
writeInterval 100;
|
||||||
|
|
||||||
|
purgeWrite 0;
|
||||||
|
|
||||||
|
writeFormat ascii;
|
||||||
|
|
||||||
|
writePrecision 6;
|
||||||
|
|
||||||
|
writeCompression uncompressed;
|
||||||
|
|
||||||
|
timeFormat general;
|
||||||
|
|
||||||
|
timePrecision 6;
|
||||||
|
|
||||||
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSchemes;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
ddtSchemes
|
||||||
|
{
|
||||||
|
default steadyState;
|
||||||
|
}
|
||||||
|
|
||||||
|
gradSchemes
|
||||||
|
{
|
||||||
|
default Gauss linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
divSchemes
|
||||||
|
{
|
||||||
|
default none;
|
||||||
|
div(phi,U) Gauss upwind;
|
||||||
|
div(phi,T) Gauss upwind;
|
||||||
|
div(phi,k) Gauss upwind;
|
||||||
|
div(phi,epsilon) Gauss upwind;
|
||||||
|
div(phi,R) Gauss upwind;
|
||||||
|
div(R) Gauss linear;
|
||||||
|
div((nuEff*dev(grad(U).T()))) Gauss linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
laplacianSchemes
|
||||||
|
{
|
||||||
|
default none;
|
||||||
|
laplacian(nuEff,U) Gauss linear corrected;
|
||||||
|
laplacian((1|A(U)),p) Gauss linear corrected;
|
||||||
|
laplacian(kappaEff,T) Gauss linear corrected;
|
||||||
|
laplacian(DkEff,k) Gauss linear corrected;
|
||||||
|
laplacian(DepsilonEff,epsilon) Gauss linear corrected;
|
||||||
|
laplacian(DREff,R) Gauss linear corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
interpolationSchemes
|
||||||
|
{
|
||||||
|
default linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
snGradSchemes
|
||||||
|
{
|
||||||
|
default corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
fluxRequired
|
||||||
|
{
|
||||||
|
default no;
|
||||||
|
p ;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,88 @@
|
|||||||
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
|
| ========= | |
|
||||||
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||||
|
| \\ / O peration | Version: 1.5 |
|
||||||
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||||
|
| \\/ M anipulation | |
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
FoamFile
|
||||||
|
{
|
||||||
|
version 2.0;
|
||||||
|
format ascii;
|
||||||
|
class dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSolution;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
solvers
|
||||||
|
{
|
||||||
|
p
|
||||||
|
{
|
||||||
|
solver PCG;
|
||||||
|
preconditioner DIC;
|
||||||
|
tolerance 1e-08;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
U
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
T
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
k
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
epsilon
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
R
|
||||||
|
{
|
||||||
|
solver PBiCG;
|
||||||
|
preconditioner DILU;
|
||||||
|
tolerance 1e-05;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
SIMPLE
|
||||||
|
{
|
||||||
|
nNonOrthogonalCorrectors 0;
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
rho 1;
|
||||||
|
p 0.7;
|
||||||
|
U 0.2;
|
||||||
|
T 0.7;
|
||||||
|
k 0.7;
|
||||||
|
epsilon 0.7;
|
||||||
|
R 0.7;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -21,9 +21,9 @@ startTime 0;
|
|||||||
|
|
||||||
stopAt endTime;
|
stopAt endTime;
|
||||||
|
|
||||||
endTime 400;
|
endTime 1000;
|
||||||
|
|
||||||
deltaT 0.25;
|
deltaT 1;
|
||||||
|
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user