mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
Conflicts: applications/utilities/surface/surfaceFeatureExtract/surfaceFeatureExtract.C
This commit is contained in:
@ -16,11 +16,8 @@ IOdictionary thermophysicalProperties
|
|||||||
|
|
||||||
dimensionedScalar Pr
|
dimensionedScalar Pr
|
||||||
(
|
(
|
||||||
dimensionedScalar::lookupOrDefault
|
"Pr",
|
||||||
(
|
dimless,
|
||||||
"Pr",
|
thermophysicalProperties.subDict("mixture").subDict("transport")
|
||||||
thermophysicalProperties,
|
.lookup("Pr")
|
||||||
1.0
|
|
||||||
)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -22,11 +22,11 @@ License
|
|||||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
Application
|
Application
|
||||||
uncoupledKinematicParcelFoam
|
uncoupledKinematicParcelDyMFoam
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Transient solver for the passive transport of a single kinematic
|
Transient solver for the passive transport of a single kinematic
|
||||||
particle could.
|
particle cloud.
|
||||||
|
|
||||||
Uses a pre-calculated velocity field to evolve the cloud.
|
Uses a pre-calculated velocity field to evolve the cloud.
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -26,7 +26,7 @@ Application
|
|||||||
|
|
||||||
Description
|
Description
|
||||||
Transient solver for the passive transport of a single kinematic
|
Transient solver for the passive transport of a single kinematic
|
||||||
particle could.
|
particle cloud.
|
||||||
|
|
||||||
Uses a pre-calculated velocity field to evolve the cloud.
|
Uses a pre-calculated velocity field to evolve the cloud.
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,11 @@
|
|||||||
fvc::ddt(U1)
|
fvc::ddt(U1)
|
||||||
+ fvc::div(phi1, U1)
|
+ fvc::div(phi1, U1)
|
||||||
- fvc::div(phi1)*U1;
|
- fvc::div(phi1)*U1;
|
||||||
|
mrfZones.addCoriolis(U1, DDtU1);
|
||||||
|
|
||||||
DDtU2 =
|
DDtU2 =
|
||||||
fvc::ddt(U2)
|
fvc::ddt(U2)
|
||||||
+ fvc::div(phi2, U2)
|
+ fvc::div(phi2, U2)
|
||||||
- fvc::div(phi2)*U2;
|
- fvc::div(phi2)*U2;
|
||||||
|
mrfZones.addCoriolis(U2, DDtU2);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,7 @@ fvVectorMatrix U2Eqn(U2, U2.dimensions()*dimVol/dimTime);
|
|||||||
- fvm::Sp(dragCoeff/rho1, U1)
|
- fvm::Sp(dragCoeff/rho1, U1)
|
||||||
- alpha1*alpha2/rho1*(liftForce - Cvm*rho2*DDtU2)
|
- alpha1*alpha2/rho1*(liftForce - Cvm*rho2*DDtU2)
|
||||||
);
|
);
|
||||||
mrfZones.addCoriolis(alpha1, U1Eqn);
|
mrfZones.addCoriolis(alpha1*(1 + Cvm*rho2*alpha2/rho1), U1Eqn);
|
||||||
U1Eqn.relax();
|
U1Eqn.relax();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ fvVectorMatrix U2Eqn(U2, U2.dimensions()*dimVol/dimTime);
|
|||||||
- fvm::Sp(dragCoeff/rho2, U2)
|
- fvm::Sp(dragCoeff/rho2, U2)
|
||||||
+ alpha1*alpha2/rho2*(liftForce + Cvm*rho2*DDtU1)
|
+ alpha1*alpha2/rho2*(liftForce + Cvm*rho2*DDtU1)
|
||||||
);
|
);
|
||||||
mrfZones.addCoriolis(alpha2, U2Eqn);
|
mrfZones.addCoriolis(alpha2*(1 + Cvm*rho2*alpha1/rho2), U2Eqn);
|
||||||
U2Eqn.relax();
|
U2Eqn.relax();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -33,6 +33,7 @@ Description
|
|||||||
#include "fvCFD.H"
|
#include "fvCFD.H"
|
||||||
#include "nearWallDist.H"
|
#include "nearWallDist.H"
|
||||||
#include "wallFvPatch.H"
|
#include "wallFvPatch.H"
|
||||||
|
#include "fixedValueFvsPatchFields.H"
|
||||||
#include "Switch.H"
|
#include "Switch.H"
|
||||||
|
|
||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
|
|||||||
@ -77,4 +77,15 @@ volScalarField heatTransferCoeff
|
|||||||
heatTransferCoeff *= alpha1Coeff;
|
heatTransferCoeff *= alpha1Coeff;
|
||||||
|
|
||||||
liftForce = Cl*(alpha1*rho1 + alpha2*rho2)*(Ur ^ fvc::curl(U));
|
liftForce = Cl*(alpha1*rho1 + alpha2*rho2)*(Ur ^ fvc::curl(U));
|
||||||
|
|
||||||
|
// Remove lift, drag and phase heat-transfer at fixed-flux boundaries
|
||||||
|
forAll(phi1.boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if (isA<fixedValueFvsPatchScalarField>(phi1.boundaryField()[patchi]))
|
||||||
|
{
|
||||||
|
dragCoeff.boundaryField()[patchi] = 0.0;
|
||||||
|
heatTransferCoeff.boundaryField()[patchi] = 0.0;
|
||||||
|
liftForce.boundaryField()[patchi] = vector::zero;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -122,16 +122,22 @@
|
|||||||
U1 = HbyA1
|
U1 = HbyA1
|
||||||
+ fvc::reconstruct
|
+ fvc::reconstruct
|
||||||
(
|
(
|
||||||
rAlphaAU1f*(g & mesh.Sf())
|
rAlphaAU1f
|
||||||
+ rAlphaAU1f*mSfGradp/fvc::interpolate(rho1)
|
*(
|
||||||
|
(g & mesh.Sf())
|
||||||
|
+ mSfGradp/fvc::interpolate(rho1)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
U1.correctBoundaryConditions();
|
U1.correctBoundaryConditions();
|
||||||
|
|
||||||
U2 = HbyA2
|
U2 = HbyA2
|
||||||
+ fvc::reconstruct
|
+ fvc::reconstruct
|
||||||
(
|
(
|
||||||
rAlphaAU2f*(g & mesh.Sf())
|
rAlphaAU2f
|
||||||
+ rAlphaAU2f*mSfGradp/fvc::interpolate(rho2)
|
*(
|
||||||
|
(g & mesh.Sf())
|
||||||
|
+ mSfGradp/fvc::interpolate(rho2)
|
||||||
|
)
|
||||||
);
|
);
|
||||||
U2.correctBoundaryConditions();
|
U2.correctBoundaryConditions();
|
||||||
|
|
||||||
|
|||||||
@ -6,4 +6,6 @@ forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
|
|||||||
fvc::ddt(phase.U())
|
fvc::ddt(phase.U())
|
||||||
+ fvc::div(phase.phi(), phase.U())
|
+ fvc::div(phase.phi(), phase.U())
|
||||||
- fvc::div(phase.phi())*phase.U();
|
- fvc::div(phase.phi())*phase.U();
|
||||||
|
|
||||||
|
mrfZones.addCoriolis(phase.U(), phase.DDtU());
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,7 +49,11 @@ forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
mrfZones.addCoriolis(alpha, UEqns[phasei]);
|
mrfZones.addCoriolis
|
||||||
|
(
|
||||||
|
alpha*(1 + (1/phase.rho())*fluid.Cvm(phase)),
|
||||||
|
UEqns[phasei]
|
||||||
|
);
|
||||||
UEqns[phasei].relax();
|
UEqns[phasei].relax();
|
||||||
|
|
||||||
phasei++;
|
phasei++;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -25,6 +25,7 @@ License
|
|||||||
|
|
||||||
#include "multiphaseSystem.H"
|
#include "multiphaseSystem.H"
|
||||||
#include "alphaContactAngleFvPatchScalarField.H"
|
#include "alphaContactAngleFvPatchScalarField.H"
|
||||||
|
#include "fixedValueFvsPatchFields.H"
|
||||||
#include "Time.H"
|
#include "Time.H"
|
||||||
#include "subCycle.H"
|
#include "subCycle.H"
|
||||||
#include "MULES.H"
|
#include "MULES.H"
|
||||||
@ -610,6 +611,21 @@ Foam::tmp<Foam::volVectorField> Foam::multiphaseSystem::Svm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove lift at fixed-flux boundaries
|
||||||
|
forAll(phase.phi().boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if
|
||||||
|
(
|
||||||
|
isA<fixedValueFvsPatchScalarField>
|
||||||
|
(
|
||||||
|
phase.phi().boundaryField()[patchi]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
tSvm().boundaryField()[patchi] = vector::zero;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return tSvm;
|
return tSvm;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -623,9 +639,7 @@ Foam::multiphaseSystem::dragCoeffs() const
|
|||||||
{
|
{
|
||||||
const dragModel& dm = *iter();
|
const dragModel& dm = *iter();
|
||||||
|
|
||||||
dragCoeffsPtr().insert
|
volScalarField* Kptr =
|
||||||
(
|
|
||||||
iter.key(),
|
|
||||||
(
|
(
|
||||||
max
|
max
|
||||||
(
|
(
|
||||||
@ -642,8 +656,24 @@ Foam::multiphaseSystem::dragCoeffs() const
|
|||||||
dm.residualSlip()
|
dm.residualSlip()
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
).ptr()
|
).ptr();
|
||||||
);
|
|
||||||
|
// Remove drag at fixed-flux boundaries
|
||||||
|
forAll(dm.phase1().phi().boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if
|
||||||
|
(
|
||||||
|
isA<fixedValueFvsPatchScalarField>
|
||||||
|
(
|
||||||
|
dm.phase1().phi().boundaryField()[patchi]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
Kptr->boundaryField()[patchi] = 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dragCoeffsPtr().insert(iter.key(), Kptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
return dragCoeffsPtr;
|
return dragCoeffsPtr;
|
||||||
|
|||||||
@ -159,11 +159,10 @@
|
|||||||
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
|
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
|
||||||
{
|
{
|
||||||
phaseModel& phase = iter();
|
phaseModel& phase = iter();
|
||||||
Dp += alphafs[phasei]*rAlphaAUfs[phasei]/phase.rho();
|
Dp += mag(alphafs[phasei]*rAlphaAUfs[phasei])/phase.rho();
|
||||||
|
|
||||||
phasei++;
|
phasei++;
|
||||||
}
|
}
|
||||||
Dp = mag(Dp);
|
|
||||||
|
|
||||||
while (pimple.correctNonOrthogonal())
|
while (pimple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
@ -173,6 +172,8 @@
|
|||||||
- fvm::laplacian(Dp, p)
|
- fvm::laplacian(Dp, p)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
pEqnIncomp.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
solve
|
solve
|
||||||
(
|
(
|
||||||
// (
|
// (
|
||||||
@ -196,7 +197,10 @@
|
|||||||
phase.phi() =
|
phase.phi() =
|
||||||
phiHbyAs[phasei]
|
phiHbyAs[phasei]
|
||||||
+ rAlphaAUfs[phasei]*mSfGradp/phase.rho();
|
+ rAlphaAUfs[phasei]*mSfGradp/phase.rho();
|
||||||
phi += alphafs[phasei]*phase.phi();
|
phi +=
|
||||||
|
alphafs[phasei]*phiHbyAs[phasei]
|
||||||
|
+ mag(alphafs[phasei]*rAlphaAUfs[phasei])
|
||||||
|
*mSfGradp/phase.rho();
|
||||||
|
|
||||||
phasei++;
|
phasei++;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,9 +3,11 @@
|
|||||||
fvc::ddt(U1)
|
fvc::ddt(U1)
|
||||||
+ fvc::div(phi1, U1)
|
+ fvc::div(phi1, U1)
|
||||||
- fvc::div(phi1)*U1;
|
- fvc::div(phi1)*U1;
|
||||||
|
mrfZones.addCoriolis(U1, DDtU1);
|
||||||
|
|
||||||
DDtU2 =
|
DDtU2 =
|
||||||
fvc::ddt(U2)
|
fvc::ddt(U2)
|
||||||
+ fvc::div(phi2, U2)
|
+ fvc::div(phi2, U2)
|
||||||
- fvc::div(phi2)*U2;
|
- fvc::div(phi2)*U2;
|
||||||
|
mrfZones.addCoriolis(U2, DDtU2);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -53,7 +53,7 @@ fvVectorMatrix U2Eqn(U2, U2.dimensions()*dimVol/dimTime);
|
|||||||
//+ alpha2/rho1*K*U2 // Explicit drag transfered to p-equation
|
//+ alpha2/rho1*K*U2 // Explicit drag transfered to p-equation
|
||||||
- alpha2/rho1*(liftCoeff - Cvm*rho2*DDtU2)
|
- alpha2/rho1*(liftCoeff - Cvm*rho2*DDtU2)
|
||||||
);
|
);
|
||||||
mrfZones.addCoriolis(U1Eqn);
|
mrfZones.addCoriolis(scalar(1) + Cvm*rho2*alpha2/rho1, U1Eqn);
|
||||||
U1Eqn.relax();
|
U1Eqn.relax();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ fvVectorMatrix U2Eqn(U2, U2.dimensions()*dimVol/dimTime);
|
|||||||
//+ alpha1/rho2*K*U1 // Explicit drag transfered to p-equation
|
//+ alpha1/rho2*K*U1 // Explicit drag transfered to p-equation
|
||||||
+ alpha1/rho2*(liftCoeff + Cvm*rho2*DDtU1)
|
+ alpha1/rho2*(liftCoeff + Cvm*rho2*DDtU1)
|
||||||
);
|
);
|
||||||
mrfZones.addCoriolis(U2Eqn);
|
mrfZones.addCoriolis(scalar(1) + Cvm*rho2*alpha1/rho2, U2Eqn);
|
||||||
U2Eqn.relax();
|
U2Eqn.relax();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,3 +19,13 @@
|
|||||||
(
|
(
|
||||||
Cl*(alpha2*rho2 + alpha1*rho1)*(Ur ^ fvc::curl(U))
|
Cl*(alpha2*rho2 + alpha1*rho1)*(Ur ^ fvc::curl(U))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Remove lift and drag at fixed-flux boundaries
|
||||||
|
forAll(phi1.boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if (isA<fixedValueFvsPatchScalarField>(phi1.boundaryField()[patchi]))
|
||||||
|
{
|
||||||
|
K.boundaryField()[patchi] = 0.0;
|
||||||
|
liftCoeff.boundaryField()[patchi] = vector::zero;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -5,8 +5,8 @@
|
|||||||
volScalarField rAU1(1.0/U1Eqn.A());
|
volScalarField rAU1(1.0/U1Eqn.A());
|
||||||
volScalarField rAU2(1.0/U2Eqn.A());
|
volScalarField rAU2(1.0/U2Eqn.A());
|
||||||
|
|
||||||
rAU1f = fvc::interpolate(rAU1);
|
rAU1f = 1.0/fvc::interpolate(U1Eqn.A());
|
||||||
surfaceScalarField rAU2f(fvc::interpolate(rAU2));
|
surfaceScalarField rAU2f(1.0/fvc::interpolate(U2Eqn.A()));
|
||||||
|
|
||||||
volVectorField HbyA1("HbyA1", U1);
|
volVectorField HbyA1("HbyA1", U1);
|
||||||
HbyA1 = rAU1*U1Eqn.H();
|
HbyA1 = rAU1*U1Eqn.H();
|
||||||
@ -16,39 +16,19 @@
|
|||||||
|
|
||||||
mrfZones.absoluteFlux(phi1.oldTime());
|
mrfZones.absoluteFlux(phi1.oldTime());
|
||||||
mrfZones.absoluteFlux(phi1);
|
mrfZones.absoluteFlux(phi1);
|
||||||
|
|
||||||
mrfZones.absoluteFlux(phi2.oldTime());
|
mrfZones.absoluteFlux(phi2.oldTime());
|
||||||
mrfZones.absoluteFlux(phi2);
|
mrfZones.absoluteFlux(phi2);
|
||||||
|
|
||||||
surfaceScalarField phiDrag1
|
surfaceScalarField ppDrag("ppDrag", 0.0*phi1);
|
||||||
(
|
|
||||||
fvc::interpolate(alpha2/rho1*K*rAU1)*phi2 + rAU1f*(g & mesh.Sf())
|
|
||||||
);
|
|
||||||
|
|
||||||
if (g0.value() > 0.0)
|
if (g0.value() > 0.0)
|
||||||
{
|
{
|
||||||
phiDrag1 -= ppMagf*fvc::snGrad(alpha1)*mesh.magSf();
|
ppDrag -= ppMagf*fvc::snGrad(alpha1)*mesh.magSf();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (kineticTheory.on())
|
if (kineticTheory.on())
|
||||||
{
|
{
|
||||||
phiDrag1 -= rAU1f*fvc::snGrad(kineticTheory.pa()/rho1)*mesh.magSf();
|
ppDrag -= rAU1f*fvc::snGrad(kineticTheory.pa()/rho1)*mesh.magSf();
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
surfaceScalarField phiDrag2
|
|
||||||
(
|
|
||||||
fvc::interpolate(alpha1/rho2*K*rAU2)*phi1 + rAU2f*(g & mesh.Sf())
|
|
||||||
);
|
|
||||||
|
|
||||||
// Fix for gravity on outlet boundary.
|
|
||||||
forAll(p.boundaryField(), patchi)
|
|
||||||
{
|
|
||||||
if (isA<zeroGradientFvPatchScalarField>(p.boundaryField()[patchi]))
|
|
||||||
{
|
|
||||||
phiDrag1.boundaryField()[patchi] = 0.0;
|
|
||||||
phiDrag2.boundaryField()[patchi] = 0.0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
surfaceScalarField phiHbyA1
|
surfaceScalarField phiHbyA1
|
||||||
@ -56,7 +36,9 @@
|
|||||||
"phiHbyA1",
|
"phiHbyA1",
|
||||||
(fvc::interpolate(HbyA1) & mesh.Sf())
|
(fvc::interpolate(HbyA1) & mesh.Sf())
|
||||||
+ fvc::ddtPhiCorr(rAU1, U1, phi1)
|
+ fvc::ddtPhiCorr(rAU1, U1, phi1)
|
||||||
+ phiDrag1
|
+ fvc::interpolate(alpha2/rho1*K*rAU1)*phi2
|
||||||
|
+ ppDrag
|
||||||
|
+ rAU1f*(g & mesh.Sf())
|
||||||
);
|
);
|
||||||
mrfZones.relativeFlux(phiHbyA1);
|
mrfZones.relativeFlux(phiHbyA1);
|
||||||
|
|
||||||
@ -65,7 +47,8 @@
|
|||||||
"phiHbyA2",
|
"phiHbyA2",
|
||||||
(fvc::interpolate(HbyA2) & mesh.Sf())
|
(fvc::interpolate(HbyA2) & mesh.Sf())
|
||||||
+ fvc::ddtPhiCorr(rAU2, U2, phi2)
|
+ fvc::ddtPhiCorr(rAU2, U2, phi2)
|
||||||
+ phiDrag2
|
+ fvc::interpolate(alpha1/rho2*K*rAU2)*phi1
|
||||||
|
+ rAU2f*(g & mesh.Sf())
|
||||||
);
|
);
|
||||||
mrfZones.relativeFlux(phiHbyA2);
|
mrfZones.relativeFlux(phiHbyA2);
|
||||||
|
|
||||||
@ -76,6 +59,9 @@
|
|||||||
|
|
||||||
surfaceScalarField phiHbyA("phiHbyA", alpha1f*phiHbyA1 + alpha2f*phiHbyA2);
|
surfaceScalarField phiHbyA("phiHbyA", alpha1f*phiHbyA1 + alpha2f*phiHbyA2);
|
||||||
|
|
||||||
|
HbyA1 += alpha2*(1.0/rho1)*rAU1*K*U2;
|
||||||
|
HbyA2 += alpha1*(1.0/rho2)*rAU2*K*U1;
|
||||||
|
|
||||||
surfaceScalarField Dp
|
surfaceScalarField Dp
|
||||||
(
|
(
|
||||||
"Dp",
|
"Dp",
|
||||||
@ -104,10 +90,19 @@
|
|||||||
p.relax();
|
p.relax();
|
||||||
SfGradp = pEqn.flux()/Dp;
|
SfGradp = pEqn.flux()/Dp;
|
||||||
|
|
||||||
U1 = HbyA1 + fvc::reconstruct(phiDrag1 - rAU1f*SfGradp/rho1);
|
U1 = HbyA1
|
||||||
|
+ fvc::reconstruct
|
||||||
|
(
|
||||||
|
ppDrag
|
||||||
|
+ rAU1f*((g & mesh.Sf()) - SfGradp/rho1)
|
||||||
|
);
|
||||||
U1.correctBoundaryConditions();
|
U1.correctBoundaryConditions();
|
||||||
|
|
||||||
U2 = HbyA2 + fvc::reconstruct(phiDrag2 - rAU2f*SfGradp/rho2);
|
U2 = HbyA2
|
||||||
|
+ fvc::reconstruct
|
||||||
|
(
|
||||||
|
rAU2f*((g & mesh.Sf()) - SfGradp/rho2)
|
||||||
|
);
|
||||||
U2.correctBoundaryConditions();
|
U2.correctBoundaryConditions();
|
||||||
|
|
||||||
U = alpha1*U1 + alpha2*U2;
|
U = alpha1*U1 + alpha2*U2;
|
||||||
|
|||||||
118
applications/solvers/multiphase/twoPhaseEulerFoam/pEqn.H.old
Normal file
118
applications/solvers/multiphase/twoPhaseEulerFoam/pEqn.H.old
Normal file
@ -0,0 +1,118 @@
|
|||||||
|
{
|
||||||
|
surfaceScalarField alpha1f(fvc::interpolate(alpha1));
|
||||||
|
surfaceScalarField alpha2f(scalar(1) - alpha1f);
|
||||||
|
|
||||||
|
volScalarField rAU1(1.0/U1Eqn.A());
|
||||||
|
volScalarField rAU2(1.0/U2Eqn.A());
|
||||||
|
|
||||||
|
rAU1f = fvc::interpolate(rAU1);
|
||||||
|
surfaceScalarField rAU2f(fvc::interpolate(rAU2));
|
||||||
|
|
||||||
|
volVectorField HbyA1("HbyA1", U1);
|
||||||
|
HbyA1 = rAU1*U1Eqn.H();
|
||||||
|
|
||||||
|
volVectorField HbyA2("HbyA2", U2);
|
||||||
|
HbyA2 = rAU2*U2Eqn.H();
|
||||||
|
|
||||||
|
mrfZones.absoluteFlux(phi1.oldTime());
|
||||||
|
mrfZones.absoluteFlux(phi1);
|
||||||
|
|
||||||
|
mrfZones.absoluteFlux(phi2.oldTime());
|
||||||
|
mrfZones.absoluteFlux(phi2);
|
||||||
|
|
||||||
|
surfaceScalarField phiDrag1
|
||||||
|
(
|
||||||
|
fvc::interpolate(alpha2/rho1*K*rAU1)*phi2 + rAU1f*(g & mesh.Sf())
|
||||||
|
);
|
||||||
|
|
||||||
|
if (g0.value() > 0.0)
|
||||||
|
{
|
||||||
|
phiDrag1 -= ppMagf*fvc::snGrad(alpha1)*mesh.magSf();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (kineticTheory.on())
|
||||||
|
{
|
||||||
|
phiDrag1 -= rAU1f*fvc::snGrad(kineticTheory.pa()/rho1)*mesh.magSf();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
surfaceScalarField phiDrag2
|
||||||
|
(
|
||||||
|
fvc::interpolate(alpha1/rho2*K*rAU2)*phi1 + rAU2f*(g & mesh.Sf())
|
||||||
|
);
|
||||||
|
|
||||||
|
// Fix for gravity on outlet boundary.
|
||||||
|
forAll(p.boundaryField(), patchi)
|
||||||
|
{
|
||||||
|
if (isA<zeroGradientFvPatchScalarField>(p.boundaryField()[patchi]))
|
||||||
|
{
|
||||||
|
phiDrag1.boundaryField()[patchi] = 0.0;
|
||||||
|
phiDrag2.boundaryField()[patchi] = 0.0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
surfaceScalarField phiHbyA1
|
||||||
|
(
|
||||||
|
"phiHbyA1",
|
||||||
|
(fvc::interpolate(HbyA1) & mesh.Sf())
|
||||||
|
+ fvc::ddtPhiCorr(rAU1, U1, phi1)
|
||||||
|
+ phiDrag1
|
||||||
|
);
|
||||||
|
mrfZones.relativeFlux(phiHbyA1);
|
||||||
|
|
||||||
|
surfaceScalarField phiHbyA2
|
||||||
|
(
|
||||||
|
"phiHbyA2",
|
||||||
|
(fvc::interpolate(HbyA2) & mesh.Sf())
|
||||||
|
+ fvc::ddtPhiCorr(rAU2, U2, phi2)
|
||||||
|
+ phiDrag2
|
||||||
|
);
|
||||||
|
mrfZones.relativeFlux(phiHbyA2);
|
||||||
|
|
||||||
|
mrfZones.relativeFlux(phi1.oldTime());
|
||||||
|
mrfZones.relativeFlux(phi1);
|
||||||
|
mrfZones.relativeFlux(phi2.oldTime());
|
||||||
|
mrfZones.relativeFlux(phi2);
|
||||||
|
|
||||||
|
surfaceScalarField phiHbyA("phiHbyA", alpha1f*phiHbyA1 + alpha2f*phiHbyA2);
|
||||||
|
|
||||||
|
surfaceScalarField Dp
|
||||||
|
(
|
||||||
|
"Dp",
|
||||||
|
alpha1f*rAU1f/rho1 + alpha2f*rAU2f/rho2
|
||||||
|
);
|
||||||
|
|
||||||
|
while (pimple.correctNonOrthogonal())
|
||||||
|
{
|
||||||
|
fvScalarMatrix pEqn
|
||||||
|
(
|
||||||
|
fvm::laplacian(Dp, p) == fvc::div(phiHbyA)
|
||||||
|
);
|
||||||
|
|
||||||
|
pEqn.setReference(pRefCell, pRefValue);
|
||||||
|
|
||||||
|
pEqn.solve(mesh.solver(p.select(pimple.finalInnerIter())));
|
||||||
|
|
||||||
|
if (pimple.finalNonOrthogonalIter())
|
||||||
|
{
|
||||||
|
surfaceScalarField SfGradp(pEqn.flux()/Dp);
|
||||||
|
|
||||||
|
phi1 = phiHbyA1 - rAU1f*SfGradp/rho1;
|
||||||
|
phi2 = phiHbyA2 - rAU2f*SfGradp/rho2;
|
||||||
|
phi = alpha1f*phi1 + alpha2f*phi2;
|
||||||
|
|
||||||
|
p.relax();
|
||||||
|
SfGradp = pEqn.flux()/Dp;
|
||||||
|
|
||||||
|
U1 = HbyA1 + fvc::reconstruct(phiDrag1 - rAU1f*SfGradp/rho1);
|
||||||
|
U1.correctBoundaryConditions();
|
||||||
|
|
||||||
|
U2 = HbyA2 + fvc::reconstruct(phiDrag2 - rAU2f*SfGradp/rho2);
|
||||||
|
U2.correctBoundaryConditions();
|
||||||
|
|
||||||
|
U = alpha1*U1 + alpha2*U2;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "continuityErrs.H"
|
||||||
@ -35,6 +35,7 @@ Description
|
|||||||
#include "subCycle.H"
|
#include "subCycle.H"
|
||||||
#include "nearWallDist.H"
|
#include "nearWallDist.H"
|
||||||
#include "wallFvPatch.H"
|
#include "wallFvPatch.H"
|
||||||
|
#include "fixedValueFvsPatchFields.H"
|
||||||
#include "Switch.H"
|
#include "Switch.H"
|
||||||
|
|
||||||
#include "IFstream.H"
|
#include "IFstream.H"
|
||||||
|
|||||||
@ -163,6 +163,7 @@ hexLabel {hexDigit}+
|
|||||||
zeroLabel {digit}*
|
zeroLabel {digit}*
|
||||||
signedInteger [-+]?{integer}
|
signedInteger [-+]?{integer}
|
||||||
word ({alpha}|{digit}|{dotColonDash})*
|
word ({alpha}|{digit}|{dotColonDash})*
|
||||||
|
wordBraces ({word}|{lbrac}|{rbrac})*
|
||||||
|
|
||||||
exponent_part [eE][-+]?{digit}+
|
exponent_part [eE][-+]?{digit}+
|
||||||
fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+".")|({digit}))
|
fractional_constant [-+]?(({digit}*"."{digit}+)|({digit}+".")|({digit}))
|
||||||
@ -184,6 +185,7 @@ schemeSymbolList ({schemeSymbolListElement}+{space})
|
|||||||
|
|
||||||
starStar ("**")
|
starStar ("**")
|
||||||
text ({space}({word}*{space})*)
|
text ({space}({word}*{space})*)
|
||||||
|
textBraces ({space}({wordBraces}*{space})*)
|
||||||
anythingInBlock ([^)]*)
|
anythingInBlock ([^)]*)
|
||||||
|
|
||||||
dateDDMMYYYY ({digit}{digit}"/"{digit}{digit}"/"{digit}{digit}{digit}{digit})
|
dateDDMMYYYY ({digit}{digit}"/"{digit}{digit}"/"{digit}{digit}{digit}{digit})
|
||||||
@ -276,11 +278,10 @@ endOfSection {space}")"{space}
|
|||||||
BEGIN(readHeader);
|
BEGIN(readHeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
<readHeader>{anythingInBlock} {
|
<readHeader>{quote}{textBraces}{quote} {
|
||||||
Info<< "Header: " << YYText() << endl;
|
Info<< "Reading header: " << YYText() << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{dimension} {
|
{dimension} {
|
||||||
BEGIN(readDimension);
|
BEGIN(readDimension);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,6 +38,7 @@ Description
|
|||||||
if flipMap is false)
|
if flipMap is false)
|
||||||
- not parallel
|
- not parallel
|
||||||
|
|
||||||
|
\verbatim
|
||||||
|
|
||||||
Internal face extrusion
|
Internal face extrusion
|
||||||
-----------------------
|
-----------------------
|
||||||
@ -109,6 +110,8 @@ Notes:
|
|||||||
only work if the coupled edge extrudes a different face so if there
|
only work if the coupled edge extrudes a different face so if there
|
||||||
are more than 1 cell inbetween.
|
are more than 1 cell inbetween.
|
||||||
|
|
||||||
|
\endverbatim
|
||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
#include "argList.H"
|
#include "argList.H"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -142,14 +142,6 @@ int main(int argc, char *argv[])
|
|||||||
"additionalPatches",
|
"additionalPatches",
|
||||||
"((master2 slave2) .. (masterN slaveN))"
|
"((master2 slave2) .. (masterN slaveN))"
|
||||||
);
|
);
|
||||||
argList::addBoolOption("internalFacesOnly");
|
|
||||||
|
|
||||||
argList::addOption
|
|
||||||
(
|
|
||||||
"additionalPatches",
|
|
||||||
"(patch2 .. patchN)",
|
|
||||||
"specify additional patches for creating baffles"
|
|
||||||
);
|
|
||||||
argList::addBoolOption
|
argList::addBoolOption
|
||||||
(
|
(
|
||||||
"internalFacesOnly",
|
"internalFacesOnly",
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -2194,6 +2194,8 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
label regionI = -1;
|
label regionI = -1;
|
||||||
|
|
||||||
|
(void)mesh.tetBasePtIs();
|
||||||
|
|
||||||
label cellI = mesh.findCell(insidePoint);
|
label cellI = mesh.findCell(insidePoint);
|
||||||
|
|
||||||
Info<< nl << "Found point " << insidePoint << " in cell " << cellI
|
Info<< nl << "Found point " << insidePoint << " in cell " << cellI
|
||||||
|
|||||||
@ -156,6 +156,7 @@ int main(int argc, char *argv[])
|
|||||||
);
|
);
|
||||||
|
|
||||||
#include "addOverwriteOption.H"
|
#include "addOverwriteOption.H"
|
||||||
|
#include "addRegionOption.H"
|
||||||
argList::validArgs.append("cellSet");
|
argList::validArgs.append("cellSet");
|
||||||
argList::addOption
|
argList::addOption
|
||||||
(
|
(
|
||||||
@ -167,7 +168,12 @@ int main(int argc, char *argv[])
|
|||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
runTime.functionObjects().off();
|
runTime.functionObjects().off();
|
||||||
#include "createMesh.H"
|
|
||||||
|
Foam::word meshRegionName = polyMesh::defaultRegion;
|
||||||
|
args.optionReadIfPresent("region", meshRegionName);
|
||||||
|
|
||||||
|
#include "createNamedMesh.H"
|
||||||
|
|
||||||
|
|
||||||
const word oldInstance = mesh.pointsInstance();
|
const word oldInstance = mesh.pointsInstance();
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -61,23 +61,22 @@ int main(int argc, char *argv[])
|
|||||||
// Check for new mesh
|
// Check for new mesh
|
||||||
mesh.readUpdate();
|
mesh.readUpdate();
|
||||||
|
|
||||||
volVectorField cc
|
//volVectorField cc
|
||||||
(
|
//(
|
||||||
IOobject
|
// IOobject
|
||||||
(
|
// (
|
||||||
"cellCentres",
|
// "cellCentres",
|
||||||
runTime.timeName(),
|
// runTime.timeName(),
|
||||||
mesh,
|
// mesh,
|
||||||
IOobject::NO_READ,
|
// IOobject::NO_READ,
|
||||||
IOobject::AUTO_WRITE
|
// IOobject::AUTO_WRITE
|
||||||
),
|
// ),
|
||||||
mesh.C()
|
// 1.0*mesh.C()
|
||||||
);
|
//);
|
||||||
|
|
||||||
// Info<< "Writing cellCentre positions to " << cc.name() << " in "
|
|
||||||
// << runTime.timeName() << endl;
|
|
||||||
//
|
//
|
||||||
// cc.write();
|
//Info<< "Writing cellCentre positions to " << cc.name() << " in "
|
||||||
|
// << runTime.timeName() << endl;
|
||||||
|
//cc.write();
|
||||||
|
|
||||||
Info<< "Writing components of cellCentre positions to volScalarFields"
|
Info<< "Writing components of cellCentre positions to volScalarFields"
|
||||||
<< " ccx, ccy, ccz in " << runTime.timeName() << endl;
|
<< " ccx, ccy, ccz in " << runTime.timeName() << endl;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -486,7 +486,7 @@ int main(int argc, char *argv[])
|
|||||||
"word",
|
"word",
|
||||||
"name of dictionary to provide feature extraction information"
|
"name of dictionary to provide feature extraction information"
|
||||||
);
|
);
|
||||||
|
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
|
|
||||||
|
|||||||
@ -383,7 +383,7 @@ case OPENMPI:
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
_foamAddMan $MPI_ARCH_PATH/man
|
_foamAddMan $MPI_ARCH_PATH/share/man
|
||||||
breaksw
|
breaksw
|
||||||
|
|
||||||
case SYSTEMOPENMPI:
|
case SYSTEMOPENMPI:
|
||||||
|
|||||||
@ -413,7 +413,7 @@ OPENMPI)
|
|||||||
|
|
||||||
_foamAddPath $MPI_ARCH_PATH/bin
|
_foamAddPath $MPI_ARCH_PATH/bin
|
||||||
_foamAddLib $MPI_ARCH_PATH/lib
|
_foamAddLib $MPI_ARCH_PATH/lib
|
||||||
_foamAddMan $MPI_ARCH_PATH/man
|
_foamAddMan $MPI_ARCH_PATH/share/man
|
||||||
;;
|
;;
|
||||||
|
|
||||||
SYSTEMOPENMPI)
|
SYSTEMOPENMPI)
|
||||||
|
|||||||
@ -96,6 +96,20 @@ T returnReduce
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Reduce with sum of both value and count (for averaging)
|
||||||
|
template <class T>
|
||||||
|
void sumReduce
|
||||||
|
(
|
||||||
|
T& Value,
|
||||||
|
label& Count,
|
||||||
|
const int tag = Pstream::msgType()
|
||||||
|
)
|
||||||
|
{
|
||||||
|
reduce(Value, sumOp<T>(), tag);
|
||||||
|
reduce(Count, sumOp<label>(), tag);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Non-blocking version of reduce. Sets request.
|
// Non-blocking version of reduce. Sets request.
|
||||||
template <class T, class BinaryOp>
|
template <class T, class BinaryOp>
|
||||||
void reduce
|
void reduce
|
||||||
@ -125,6 +139,13 @@ void reduce
|
|||||||
const int tag = Pstream::msgType()
|
const int tag = Pstream::msgType()
|
||||||
);
|
);
|
||||||
|
|
||||||
|
void sumReduce
|
||||||
|
(
|
||||||
|
scalar& Value,
|
||||||
|
label& Count,
|
||||||
|
const int tag = Pstream::msgType()
|
||||||
|
);
|
||||||
|
|
||||||
void reduce
|
void reduce
|
||||||
(
|
(
|
||||||
scalar& Value,
|
scalar& Value,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -514,11 +514,12 @@ template<class Type>
|
|||||||
Type gAverage(const UList<Type>& f)
|
Type gAverage(const UList<Type>& f)
|
||||||
{
|
{
|
||||||
label n = f.size();
|
label n = f.size();
|
||||||
reduce(n, sumOp<label>());
|
Type s = sum(f);
|
||||||
|
sumReduce(s, n);
|
||||||
|
|
||||||
if (n > 0)
|
if (n > 0)
|
||||||
{
|
{
|
||||||
Type avrg = gSum(f)/n;
|
Type avrg = s/n;
|
||||||
|
|
||||||
return avrg;
|
return avrg;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -63,6 +63,15 @@ void Foam::reduce(vector2D&, const sumOp<vector2D>&, const int)
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::sumReduce
|
||||||
|
(
|
||||||
|
scalar& Value,
|
||||||
|
label& Count,
|
||||||
|
const int tag
|
||||||
|
)
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
void Foam::reduce(scalar&, const sumOp<scalar>&, const int, label&)
|
void Foam::reduce(scalar&, const sumOp<scalar>&, const int, label&)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,38 @@ License
|
|||||||
# define MPI_SCALAR MPI_DOUBLE
|
# define MPI_SCALAR MPI_DOUBLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
|
{
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
scalar value;
|
||||||
|
label count;
|
||||||
|
} CountAndValue;
|
||||||
|
|
||||||
|
void reduceSum
|
||||||
|
(
|
||||||
|
void *in,
|
||||||
|
void *inOut,
|
||||||
|
int *len,
|
||||||
|
MPI_Datatype *dptr
|
||||||
|
)
|
||||||
|
{
|
||||||
|
CountAndValue* inPtr =
|
||||||
|
reinterpret_cast<CountAndValue*>(in);
|
||||||
|
CountAndValue* inOutPtr =
|
||||||
|
reinterpret_cast<CountAndValue*>(inOut);
|
||||||
|
|
||||||
|
for (int i=0; i< *len; ++i)
|
||||||
|
{
|
||||||
|
inOutPtr->value += inPtr->value;
|
||||||
|
inOutPtr->count += inPtr->count;
|
||||||
|
inPtr++;
|
||||||
|
inOutPtr++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
@ -455,6 +486,111 @@ void Foam::reduce(vector2D& Value, const sumOp<vector2D>& bop, const int tag)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Foam::sumReduce
|
||||||
|
(
|
||||||
|
scalar& Value,
|
||||||
|
label& Count,
|
||||||
|
const int tag
|
||||||
|
)
|
||||||
|
{
|
||||||
|
static bool hasDataType_ = false;
|
||||||
|
static MPI_Datatype mesg_mpi_strct_;
|
||||||
|
static MPI_Op myOp_;
|
||||||
|
|
||||||
|
if (Pstream::debug)
|
||||||
|
{
|
||||||
|
Pout<< "Foam::sumReduce : value:" << Value
|
||||||
|
<< " count:" << Count << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!UPstream::parRun())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (UPstream::nProcs() <= UPstream::nProcsSimpleSum)
|
||||||
|
{
|
||||||
|
reduce(Value, sumOp<scalar>(), tag);
|
||||||
|
reduce(Count, sumOp<label>(), tag);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
CountAndValue in,out;
|
||||||
|
|
||||||
|
if (!hasDataType_)
|
||||||
|
{
|
||||||
|
int lengths[2];
|
||||||
|
lengths[0] = 1;
|
||||||
|
lengths[1] = 1;
|
||||||
|
MPI_Datatype types[2];
|
||||||
|
types[0] = MPI_DOUBLE;
|
||||||
|
types[1] = MPI_INT;
|
||||||
|
MPI_Aint addresses[2];
|
||||||
|
MPI_Address(&in.value, &addresses[0]);
|
||||||
|
MPI_Address(&in.count, &addresses[1]);
|
||||||
|
MPI_Aint offsets[2];
|
||||||
|
offsets[0] = 0;
|
||||||
|
offsets[1] = addresses[1]-addresses[0];
|
||||||
|
|
||||||
|
if
|
||||||
|
(
|
||||||
|
MPI_Type_create_struct
|
||||||
|
(
|
||||||
|
2,
|
||||||
|
lengths,
|
||||||
|
offsets,
|
||||||
|
types,
|
||||||
|
&mesg_mpi_strct_
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
FatalErrorIn("Foam::sumReduce()")
|
||||||
|
<< "MPI_Type_create_struct" << abort(FatalError);
|
||||||
|
}
|
||||||
|
if (MPI_Type_commit(&mesg_mpi_strct_))
|
||||||
|
{
|
||||||
|
FatalErrorIn("Foam::sumReduce()")
|
||||||
|
<< "MPI_Type_commit" << abort(FatalError);
|
||||||
|
}
|
||||||
|
if (MPI_Op_create(reduceSum, true, &myOp_))
|
||||||
|
{
|
||||||
|
FatalErrorIn("Foam::sumReduce()")
|
||||||
|
<< "MPI_Op_create" << abort(FatalError);
|
||||||
|
}
|
||||||
|
|
||||||
|
hasDataType_ = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
in.value = Value;
|
||||||
|
in.count = Count;
|
||||||
|
if
|
||||||
|
(
|
||||||
|
MPI_Allreduce
|
||||||
|
(
|
||||||
|
&in,
|
||||||
|
&out,
|
||||||
|
1,
|
||||||
|
mesg_mpi_strct_,
|
||||||
|
myOp_,
|
||||||
|
MPI_COMM_WORLD
|
||||||
|
)
|
||||||
|
)
|
||||||
|
{
|
||||||
|
FatalErrorIn("Foam::sumReduce(..)")
|
||||||
|
<< "Problem." << abort(FatalError);
|
||||||
|
}
|
||||||
|
Value = out.value;
|
||||||
|
Count = out.count;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Pstream::debug)
|
||||||
|
{
|
||||||
|
Pout<< "Foam::reduce : reduced value:" << Value
|
||||||
|
<< " reduced count:" << Count << endl;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::reduce
|
void Foam::reduce
|
||||||
(
|
(
|
||||||
scalar& Value,
|
scalar& Value,
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -763,13 +763,6 @@ bool Foam::slidingInterface::projectPoints() const
|
|||||||
{
|
{
|
||||||
const edge& curEdge = slaveEdges[edgeI];
|
const edge& curEdge = slaveEdges[edgeI];
|
||||||
|
|
||||||
//HJ: check for all edges even if both ends have missed
|
|
||||||
// Experimental.
|
|
||||||
// if
|
|
||||||
// (
|
|
||||||
// slavePointFaceHits[curEdge.start()].hit()
|
|
||||||
// || slavePointFaceHits[curEdge.end()].hit()
|
|
||||||
// )
|
|
||||||
{
|
{
|
||||||
// Clear the maps
|
// Clear the maps
|
||||||
curFaceMap.clear();
|
curFaceMap.clear();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -292,6 +292,31 @@ Foam::MRFZone::MRFZone(const fvMesh& mesh, Istream& is)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void Foam::MRFZone::addCoriolis
|
||||||
|
(
|
||||||
|
const volVectorField& U,
|
||||||
|
volVectorField& ddtU
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
if (cellZoneID_ == -1)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const labelList& cells = mesh_.cellZones()[cellZoneID_];
|
||||||
|
const scalarField& V = mesh_.V();
|
||||||
|
vectorField& ddtUc = ddtU.internalField();
|
||||||
|
const vectorField& Uc = U.internalField();
|
||||||
|
const vector& Omega = Omega_.value();
|
||||||
|
|
||||||
|
forAll(cells, i)
|
||||||
|
{
|
||||||
|
label celli = cells[i];
|
||||||
|
ddtUc[celli] += V[celli]*(Omega ^ Uc[celli]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::MRFZone::addCoriolis(fvVectorMatrix& UEqn) const
|
void Foam::MRFZone::addCoriolis(fvVectorMatrix& UEqn) const
|
||||||
{
|
{
|
||||||
if (cellZoneID_ == -1)
|
if (cellZoneID_ == -1)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -166,6 +166,9 @@ public:
|
|||||||
setMRFFaces();
|
setMRFFaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//- Add the Coriolis force contribution to the acceleration field
|
||||||
|
void addCoriolis(const volVectorField& U, volVectorField& ddtU) const;
|
||||||
|
|
||||||
//- Add the Coriolis force contribution to the momentum equation
|
//- Add the Coriolis force contribution to the momentum equation
|
||||||
void addCoriolis(fvVectorMatrix& UEqn) const;
|
void addCoriolis(fvVectorMatrix& UEqn) const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -55,6 +55,19 @@ Foam::MRFZones::MRFZones(const fvMesh& mesh)
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
void Foam::MRFZones::addCoriolis
|
||||||
|
(
|
||||||
|
const volVectorField& U,
|
||||||
|
volVectorField& ddtU
|
||||||
|
) const
|
||||||
|
{
|
||||||
|
forAll(*this, i)
|
||||||
|
{
|
||||||
|
operator[](i).addCoriolis(U, ddtU);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Foam::MRFZones::addCoriolis(fvVectorMatrix& UEqn) const
|
void Foam::MRFZones::addCoriolis(fvVectorMatrix& UEqn) const
|
||||||
{
|
{
|
||||||
forAll(*this, i)
|
forAll(*this, i)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -72,6 +72,9 @@ public:
|
|||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|
||||||
|
//- Add the Coriolis force contribution to the acceleration field
|
||||||
|
void addCoriolis(const volVectorField& U, volVectorField& ddtU) const;
|
||||||
|
|
||||||
//- Add the Coriolis force contribution to the momentum equation
|
//- Add the Coriolis force contribution to the momentum equation
|
||||||
void addCoriolis(fvVectorMatrix& UEqn) const;
|
void addCoriolis(fvVectorMatrix& UEqn) const;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -76,6 +76,9 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict)
|
|||||||
Foam::labelList Foam::refinementParameters::findCells(const polyMesh& mesh)
|
Foam::labelList Foam::refinementParameters::findCells(const polyMesh& mesh)
|
||||||
const
|
const
|
||||||
{
|
{
|
||||||
|
// Force calculation of tet-diag decomposition (for use in findCell)
|
||||||
|
(void)mesh.tetBasePtIs();
|
||||||
|
|
||||||
// Global calculation engine
|
// Global calculation engine
|
||||||
globalIndex globalCells(mesh.nCells());
|
globalIndex globalCells(mesh.nCells());
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -1819,6 +1819,9 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::splitMeshRegions
|
|||||||
const point& keepPoint
|
const point& keepPoint
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// Force calculation of face decomposition (used in findCell)
|
||||||
|
(void)mesh_.tetBasePtIs();
|
||||||
|
|
||||||
// Determine connected regions. regionSplit is the labelList with the
|
// Determine connected regions. regionSplit is the labelList with the
|
||||||
// region per cell.
|
// region per cell.
|
||||||
regionSplit cellRegion(mesh_);
|
regionSplit cellRegion(mesh_);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -1235,6 +1235,9 @@ void Foam::meshRefinement::findCellZoneInsideWalk
|
|||||||
blockedFace.clear();
|
blockedFace.clear();
|
||||||
|
|
||||||
|
|
||||||
|
// Force calculation of face decomposition (used in findCell)
|
||||||
|
(void)mesh_.tetBasePtIs();
|
||||||
|
|
||||||
// For all locationSurface find the cell
|
// For all locationSurface find the cell
|
||||||
forAll(locationSurfaces, i)
|
forAll(locationSurfaces, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -49,11 +49,11 @@ namespace Foam
|
|||||||
Foam::structuredDecomp::structuredDecomp(const dictionary& decompositionDict)
|
Foam::structuredDecomp::structuredDecomp(const dictionary& decompositionDict)
|
||||||
:
|
:
|
||||||
decompositionMethod(decompositionDict),
|
decompositionMethod(decompositionDict),
|
||||||
methodDict_(decompositionDict_.subDict(typeName + "Coeffs"))
|
methodDict_(decompositionDict_.subDict(typeName + "Coeffs")),
|
||||||
|
patches_(methodDict_.lookup("patches"))
|
||||||
{
|
{
|
||||||
methodDict_.set("numberOfSubdomains", nDomains());
|
methodDict_.set("numberOfSubdomains", nDomains());
|
||||||
method_ = decompositionMethod::New(methodDict_);
|
method_ = decompositionMethod::New(methodDict_);
|
||||||
patches_ = wordList(methodDict_.lookup("patches"));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -72,29 +72,20 @@ Foam::labelList Foam::structuredDecomp::decompose
|
|||||||
const scalarField& cWeights
|
const scalarField& cWeights
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
labelList patchIDs(patches_.size());
|
|
||||||
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
|
const polyBoundaryMesh& pbm = mesh.boundaryMesh();
|
||||||
|
const labelHashSet patchIDs(pbm.patchSet(patches_));
|
||||||
|
|
||||||
label nFaces = 0;
|
label nFaces = 0;
|
||||||
forAll(patches_, i)
|
forAllConstIter(labelHashSet, patchIDs, iter)
|
||||||
{
|
{
|
||||||
patchIDs[i] = pbm.findPatchID(patches_[i]);
|
nFaces += pbm[iter.key()].size();
|
||||||
|
|
||||||
if (patchIDs[i] == -1)
|
|
||||||
{
|
|
||||||
FatalErrorIn("structuredDecomp::decompose(..)")
|
|
||||||
<< "Cannot find patch " << patches_[i] << endl
|
|
||||||
<< "Valid patches are " << pbm.names()
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
nFaces += pbm[patchIDs[i]].size();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract a submesh.
|
// Extract a submesh.
|
||||||
labelHashSet patchCells(2*nFaces);
|
labelHashSet patchCells(2*nFaces);
|
||||||
forAll(patchIDs, i)
|
forAllConstIter(labelHashSet, patchIDs, iter)
|
||||||
{
|
{
|
||||||
const labelUList& fc = pbm[patchIDs[i]].faceCells();
|
const labelUList& fc = pbm[iter.key()].faceCells();
|
||||||
forAll(fc, i)
|
forAll(fc, i)
|
||||||
{
|
{
|
||||||
patchCells.insert(fc[i]);
|
patchCells.insert(fc[i]);
|
||||||
@ -127,9 +118,9 @@ Foam::labelList Foam::structuredDecomp::decompose
|
|||||||
labelList patchFaces(nFaces);
|
labelList patchFaces(nFaces);
|
||||||
List<topoDistanceData> patchData(nFaces);
|
List<topoDistanceData> patchData(nFaces);
|
||||||
nFaces = 0;
|
nFaces = 0;
|
||||||
forAll(patchIDs, i)
|
forAllConstIter(labelHashSet, patchIDs, iter)
|
||||||
{
|
{
|
||||||
const polyPatch& pp = pbm[patchIDs[i]];
|
const polyPatch& pp = pbm[iter.key()];
|
||||||
const labelUList& fc = pp.faceCells();
|
const labelUList& fc = pp.faceCells();
|
||||||
forAll(fc, i)
|
forAll(fc, i)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -25,7 +25,7 @@ Class
|
|||||||
Foam::structuredDecomp
|
Foam::structuredDecomp
|
||||||
|
|
||||||
Description
|
Description
|
||||||
Decomposition given using consecutive application of decomposers.
|
Decomposition by walking out decomposition of patch cells mesh.
|
||||||
|
|
||||||
SourceFiles
|
SourceFiles
|
||||||
structuredDecomp.C
|
structuredDecomp.C
|
||||||
@ -52,9 +52,9 @@ class structuredDecomp
|
|||||||
|
|
||||||
dictionary methodDict_;
|
dictionary methodDict_;
|
||||||
|
|
||||||
autoPtr<decompositionMethod> method_;
|
wordReList patches_;
|
||||||
|
|
||||||
wordList patches_;
|
autoPtr<decompositionMethod> method_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -202,7 +202,7 @@ void Foam::meshToMesh::calcAddressing()
|
|||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
Info<< "meshToMesh::calculateAddressing() : "
|
Info<< "meshToMesh::calculateAddressing() : "
|
||||||
<< "finished calculating mesh-to-mesh acell ddressing" << endl;
|
<< "finished calculating mesh-to-mesh cell addressing" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -128,6 +128,18 @@ bool Foam::fileFormats::VTKsurfaceFormat<Face>::read
|
|||||||
zones[i] = label(region[i]);
|
zones[i] = label(region[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (reader.cellData().foundObject<scalarIOField>("STLSolidLabeling"))
|
||||||
|
{
|
||||||
|
const scalarIOField& region =
|
||||||
|
reader.cellData().lookupObject<scalarIOField>
|
||||||
|
(
|
||||||
|
"STLSolidLabeling"
|
||||||
|
);
|
||||||
|
forAll(region, i)
|
||||||
|
{
|
||||||
|
zones[i] = label(region[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Create zone names
|
// Create zone names
|
||||||
const label nZones = max(zones)+1;
|
const label nZones = max(zones)+1;
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -132,7 +132,7 @@ greyDiffusiveViewFactorFixedValueFvPatchScalarField
|
|||||||
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
|
void Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::
|
||||||
updateCoeffs()
|
updateCoeffs()
|
||||||
{
|
{
|
||||||
//Do nothing
|
// Do nothing
|
||||||
|
|
||||||
if (debug)
|
if (debug)
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ updateCoeffs()
|
|||||||
Info<< patch().boundaryMesh().mesh().name() << ':'
|
Info<< patch().boundaryMesh().mesh().name() << ':'
|
||||||
<< patch().name() << ':'
|
<< patch().name() << ':'
|
||||||
<< this->dimensionedInternalField().name() << " <- "
|
<< this->dimensionedInternalField().name() << " <- "
|
||||||
<< " heat[W]:" << Q
|
<< " heat transfer rate:" << Q
|
||||||
<< " wall radiative heat flux "
|
<< " wall radiative heat flux "
|
||||||
<< " min:" << gMin(*this)
|
<< " min:" << gMin(*this)
|
||||||
<< " max:" << gMax(*this)
|
<< " max:" << gMax(*this)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -590,9 +590,9 @@ void Foam::radiation::viewFactor::calculate()
|
|||||||
const scalarField& Qrp = Qr_.boundaryField()[patchID];
|
const scalarField& Qrp = Qr_.boundaryField()[patchID];
|
||||||
const scalarField& magSf = mesh_.magSf().boundaryField()[patchID];
|
const scalarField& magSf = mesh_.magSf().boundaryField()[patchID];
|
||||||
scalar heatFlux = gSum(Qrp*magSf);
|
scalar heatFlux = gSum(Qrp*magSf);
|
||||||
Info<< "Total heat flux at patch: "
|
Info<< "Total heat transfer rate at patch: "
|
||||||
<< patchID << " "
|
<< patchID << " "
|
||||||
<< heatFlux << " [W]" << endl;
|
<< heatFlux << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -244,7 +244,7 @@ void Foam::externalWallHeatFluxTemperatureFvPatchScalarField::updateCoeffs()
|
|||||||
Info<< patch().boundaryMesh().mesh().name() << ':'
|
Info<< patch().boundaryMesh().mesh().name() << ':'
|
||||||
<< patch().name() << ':'
|
<< patch().name() << ':'
|
||||||
<< this->dimensionedInternalField().name() << " :"
|
<< this->dimensionedInternalField().name() << " :"
|
||||||
<< " heatFlux:" << Q
|
<< " heat transfer rate:" << Q
|
||||||
<< " walltemperature "
|
<< " walltemperature "
|
||||||
<< " min:" << gMin(*this)
|
<< " min:" << gMin(*this)
|
||||||
<< " max:" << gMax(*this)
|
<< " max:" << gMax(*this)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -227,7 +227,7 @@ void turbulentTemperatureCoupledBaffleMixedFvPatchScalarField::updateCoeffs()
|
|||||||
<< nbrMesh.name() << ':'
|
<< nbrMesh.name() << ':'
|
||||||
<< nbrPatch.name() << ':'
|
<< nbrPatch.name() << ':'
|
||||||
<< this->dimensionedInternalField().name() << " :"
|
<< this->dimensionedInternalField().name() << " :"
|
||||||
<< " heat[W]:" << Q
|
<< " heat transfer rate:" << Q
|
||||||
<< " walltemperature "
|
<< " walltemperature "
|
||||||
<< " min:" << gMin(*this)
|
<< " min:" << gMin(*this)
|
||||||
<< " max:" << gMax(*this)
|
<< " max:" << gMax(*this)
|
||||||
|
|||||||
@ -74,16 +74,20 @@ void Foam::IDDESDelta::calcDelta()
|
|||||||
{
|
{
|
||||||
scalar deltaMaxTmp = 0.0;
|
scalar deltaMaxTmp = 0.0;
|
||||||
const labelList& cFaces = cells[cellI];
|
const labelList& cFaces = cells[cellI];
|
||||||
const point& faceCentre = faceCentres[cFaces[0]];
|
|
||||||
const vector nCell = n[cellI];
|
const vector nCell = n[cellI];
|
||||||
forAll(cFaces, cFaceI)
|
forAll(cFaces, cFaceI)
|
||||||
{
|
{
|
||||||
label faceI = cFaces[cFaceI];
|
label faceI = cFaces[cFaceI];
|
||||||
const point& faceCentreTwo = faceCentres[faceI];
|
const point& faceCentreI = faceCentres[faceI];
|
||||||
scalar tmp = (faceCentre - faceCentreTwo) & nCell;
|
forAll(cFaces, cFaceJ)
|
||||||
if (tmp > deltaMaxTmp)
|
|
||||||
{
|
{
|
||||||
deltaMaxTmp = tmp;
|
label faceJ = cFaces[cFaceJ];
|
||||||
|
const point& faceCentreJ = faceCentres[faceJ];
|
||||||
|
scalar tmp = (faceCentreJ - faceCentreI) & nCell;
|
||||||
|
if (tmp > deltaMaxTmp)
|
||||||
|
{
|
||||||
|
deltaMaxTmp = tmp;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
faceToFacenMax[cellI] = deltaMaxTmp;
|
faceToFacenMax[cellI] = deltaMaxTmp;
|
||||||
|
|||||||
@ -5,7 +5,9 @@ cd ${0%/*} || exit 1 # run from this directory
|
|||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication cvMesh $nProc
|
runApplication cvMesh
|
||||||
runApplication checkMesh $nProc -constant -allGeometry -allTopology
|
runApplication collapseEdges 1e-3 45
|
||||||
|
runApplication snappyHexMesh
|
||||||
|
runApplication checkMesh -constant -allGeometry -allTopology
|
||||||
|
|
||||||
# ----------------------------------------------------------------- end-of-file
|
# ----------------------------------------------------------------- end-of-file
|
||||||
|
|||||||
@ -85,7 +85,7 @@ surfaceConformation
|
|||||||
|
|
||||||
featureEdgeExclusionDistanceCoeff 0.2;
|
featureEdgeExclusionDistanceCoeff 0.2;
|
||||||
|
|
||||||
surfaceSearchDistanceCoeff 2.5;
|
surfaceSearchDistanceCoeff 5;
|
||||||
|
|
||||||
maxSurfaceProtrusionCoeff 0.1;
|
maxSurfaceProtrusionCoeff 0.1;
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ surfaceConformation
|
|||||||
{
|
{
|
||||||
initial
|
initial
|
||||||
{
|
{
|
||||||
edgeSearchDistCoeff 2;
|
edgeSearchDistCoeff 5;
|
||||||
surfacePtReplaceDistCoeff 0.5;
|
surfacePtReplaceDistCoeff 0.5;
|
||||||
surfacePtExclusionDistanceCoeff 0.5;
|
surfacePtExclusionDistanceCoeff 0.5;
|
||||||
}
|
}
|
||||||
@ -150,10 +150,16 @@ motionControl
|
|||||||
{
|
{
|
||||||
priority 1;
|
priority 1;
|
||||||
mode bothSides;
|
mode bothSides;
|
||||||
|
surfaceCellSizeFunction uniformValue;
|
||||||
|
uniformValueCoeffs
|
||||||
|
{
|
||||||
|
surfaceCellSize 0.04;
|
||||||
|
}
|
||||||
|
refinementFactor 1;
|
||||||
|
|
||||||
cellSizeFunction uniformDistance;
|
cellSizeFunction uniformDistance;
|
||||||
uniformDistanceCoeffs
|
uniformDistanceCoeffs
|
||||||
{
|
{
|
||||||
cellSize 0.04;
|
|
||||||
distance 0.1;
|
distance 0.1;
|
||||||
}
|
}
|
||||||
linearDistanceCoeffs
|
linearDistanceCoeffs
|
||||||
|
|||||||
357
tutorials/mesh/cvMesh/blob/system/snappyHexMeshDict
Normal file
357
tutorials/mesh/cvMesh/blob/system/snappyHexMeshDict
Normal file
@ -0,0 +1,357 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
object snappyHexMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
// Which of the steps to run
|
||||||
|
castellatedMesh false;
|
||||||
|
snap false;
|
||||||
|
addLayers true;
|
||||||
|
|
||||||
|
|
||||||
|
// Geometry. Definition of all surfaces. All surfaces are of class
|
||||||
|
// searchableSurface.
|
||||||
|
// Surfaces are used
|
||||||
|
// - to specify refinement for any mesh cell intersecting it
|
||||||
|
// - to specify refinement for any mesh cell inside/outside/near
|
||||||
|
// - to 'snap' the mesh boundary to the surface
|
||||||
|
geometry
|
||||||
|
{
|
||||||
|
// motorBike.obj
|
||||||
|
// {
|
||||||
|
// type triSurfaceMesh;
|
||||||
|
// name motorBike;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// refinementBox
|
||||||
|
// {
|
||||||
|
// type searchableBox;
|
||||||
|
// min (-1.0 -0.7 0.0);
|
||||||
|
// max ( 8.0 0.7 2.5);
|
||||||
|
// }
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Settings for the castellatedMesh generation.
|
||||||
|
castellatedMeshControls
|
||||||
|
{
|
||||||
|
|
||||||
|
// Refinement parameters
|
||||||
|
// ~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
// If local number of cells is >= maxLocalCells on any processor
|
||||||
|
// switches from from refinement followed by balancing
|
||||||
|
// (current method) to (weighted) balancing before refinement.
|
||||||
|
maxLocalCells 100000;
|
||||||
|
|
||||||
|
// Overall cell limit (approximately). Refinement will stop immediately
|
||||||
|
// upon reaching this number so a refinement level might not complete.
|
||||||
|
// Note that this is the number of cells before removing the part which
|
||||||
|
// is not 'visible' from the keepPoint. The final number of cells might
|
||||||
|
// actually be a lot less.
|
||||||
|
maxGlobalCells 2000000;
|
||||||
|
|
||||||
|
// The surface refinement loop might spend lots of iterations refining just a
|
||||||
|
// few cells. This setting will cause refinement to stop if <= minimumRefine
|
||||||
|
// are selected for refinement. Note: it will at least do one iteration
|
||||||
|
// (unless the number of cells to refine is 0)
|
||||||
|
minRefinementCells 10;
|
||||||
|
|
||||||
|
// Allow a certain level of imbalance during refining
|
||||||
|
// (since balancing is quite expensive)
|
||||||
|
// Expressed as fraction of perfect balance (= overall number of cells /
|
||||||
|
// nProcs). 0=balance always.
|
||||||
|
maxLoadUnbalance 0.10;
|
||||||
|
|
||||||
|
|
||||||
|
// Number of buffer layers between different levels.
|
||||||
|
// 1 means normal 2:1 refinement restriction, larger means slower
|
||||||
|
// refinement.
|
||||||
|
nCellsBetweenLevels 3;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Explicit feature edge refinement
|
||||||
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
// Specifies a level for any cell intersected by its edges.
|
||||||
|
// This is a featureEdgeMesh, read from constant/triSurface for now.
|
||||||
|
features
|
||||||
|
(
|
||||||
|
//{
|
||||||
|
// file "someLine.eMesh";
|
||||||
|
// level 2;
|
||||||
|
//}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Surface based refinement
|
||||||
|
// ~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
// Specifies two levels for every surface. The first is the minimum level,
|
||||||
|
// every cell intersecting a surface gets refined up to the minimum level.
|
||||||
|
// The second level is the maximum level. Cells that 'see' multiple
|
||||||
|
// intersections where the intersections make an
|
||||||
|
// angle > resolveFeatureAngle get refined up to the maximum level.
|
||||||
|
|
||||||
|
refinementSurfaces
|
||||||
|
{
|
||||||
|
// motorBike
|
||||||
|
// {
|
||||||
|
// // Surface-wise min and max refinement level
|
||||||
|
// level (5 6);
|
||||||
|
//
|
||||||
|
// // Optional specification of patch type (default is wall). No
|
||||||
|
// // constraint types (cyclic, symmetry) etc. are allowed.
|
||||||
|
// patchInfo
|
||||||
|
// {
|
||||||
|
// type wall;
|
||||||
|
// inGroups (motorBike);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resolve sharp angles
|
||||||
|
resolveFeatureAngle 30;
|
||||||
|
|
||||||
|
|
||||||
|
// Region-wise refinement
|
||||||
|
// ~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
// Specifies refinement level for cells in relation to a surface. One of
|
||||||
|
// three modes
|
||||||
|
// - distance. 'levels' specifies per distance to the surface the
|
||||||
|
// wanted refinement level. The distances need to be specified in
|
||||||
|
// descending order.
|
||||||
|
// - inside. 'levels' is only one entry and only the level is used. All
|
||||||
|
// cells inside the surface get refined up to the level. The surface
|
||||||
|
// needs to be closed for this to be possible.
|
||||||
|
// - outside. Same but cells outside.
|
||||||
|
|
||||||
|
refinementRegions
|
||||||
|
{
|
||||||
|
// refinementBox
|
||||||
|
// {
|
||||||
|
// mode inside;
|
||||||
|
// levels ((1E15 4));
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Mesh selection
|
||||||
|
// ~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
// After refinement patches get added for all refinementSurfaces and
|
||||||
|
// all cells intersecting the surfaces get put into these patches. The
|
||||||
|
// section reachable from the locationInMesh is kept.
|
||||||
|
// NOTE: This point should never be on a face, always inside a cell, even
|
||||||
|
// after refinement.
|
||||||
|
locationInMesh (-1 0 0);
|
||||||
|
|
||||||
|
|
||||||
|
// Whether any faceZones (as specified in the refinementSurfaces)
|
||||||
|
// are only on the boundary of corresponding cellZones or also allow
|
||||||
|
// free-standing zone faces. Not used if there are no faceZones.
|
||||||
|
allowFreeStandingZoneFaces true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Settings for the snapping.
|
||||||
|
snapControls
|
||||||
|
{
|
||||||
|
//- Number of patch smoothing iterations before finding correspondence
|
||||||
|
// to surface
|
||||||
|
nSmoothPatch 3;
|
||||||
|
|
||||||
|
//- Relative distance for points to be attracted by surface feature point
|
||||||
|
// or edge. True distance is this factor times local
|
||||||
|
// maximum edge length.
|
||||||
|
tolerance 4.0;
|
||||||
|
|
||||||
|
//- Number of mesh displacement relaxation iterations.
|
||||||
|
nSolveIter 0;
|
||||||
|
|
||||||
|
//- Maximum number of snapping relaxation iterations. Should stop
|
||||||
|
// before upon reaching a correct mesh.
|
||||||
|
nRelaxIter 5;
|
||||||
|
|
||||||
|
//- Highly experimental and wip: number of feature edge snapping
|
||||||
|
// iterations. Leave out altogether to disable.
|
||||||
|
// Do not use here since mesh resolution too low and baffles present
|
||||||
|
//nFeatureSnapIter 10;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Settings for the layer addition.
|
||||||
|
addLayersControls
|
||||||
|
{
|
||||||
|
// Are the thickness parameters below relative to the undistorted
|
||||||
|
// size of the refined cell outside layer (true) or absolute sizes (false).
|
||||||
|
relativeSizes false;
|
||||||
|
|
||||||
|
// Per final patch (so not geometry!) the layer information
|
||||||
|
layers
|
||||||
|
{
|
||||||
|
blob.stl_patch1
|
||||||
|
{
|
||||||
|
nSurfaceLayers 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Expansion factor for layer mesh
|
||||||
|
expansionRatio 1.5;
|
||||||
|
|
||||||
|
//- Wanted thickness of final added cell layer. If multiple layers
|
||||||
|
// is the
|
||||||
|
// thickness of the layer furthest away from the wall.
|
||||||
|
// Relative to undistorted size of cell outside layer.
|
||||||
|
// is the thickness of the layer furthest away from the wall.
|
||||||
|
// See relativeSizes parameter.
|
||||||
|
finalLayerThickness 0.02;
|
||||||
|
|
||||||
|
//- Minimum thickness of cell layer. If for any reason layer
|
||||||
|
// cannot be above minThickness do not add layer.
|
||||||
|
// Relative to undistorted size of cell outside layer.
|
||||||
|
minThickness 0.005;
|
||||||
|
|
||||||
|
//- If points get not extruded do nGrow layers of connected faces that are
|
||||||
|
// also not grown. This helps convergence of the layer addition process
|
||||||
|
// close to features.
|
||||||
|
// Note: changed(corrected) w.r.t 17x! (didn't do anything in 17x)
|
||||||
|
nGrow 0;
|
||||||
|
|
||||||
|
// Advanced settings
|
||||||
|
|
||||||
|
//- When not to extrude surface. 0 is flat surface, 90 is when two faces
|
||||||
|
// make straight angle.
|
||||||
|
featureAngle 90;
|
||||||
|
|
||||||
|
//- Maximum number of snapping relaxation iterations. Should stop
|
||||||
|
// before upon reaching a correct mesh.
|
||||||
|
nRelaxIter 3;
|
||||||
|
|
||||||
|
// Number of smoothing iterations of surface normals
|
||||||
|
nSmoothSurfaceNormals 1;
|
||||||
|
|
||||||
|
// Number of smoothing iterations of interior mesh movement direction
|
||||||
|
nSmoothNormals 3;
|
||||||
|
|
||||||
|
// Smooth layer thickness over surface patches
|
||||||
|
nSmoothThickness 10;
|
||||||
|
|
||||||
|
// Stop layer growth on highly warped cells
|
||||||
|
maxFaceThicknessRatio 1000;
|
||||||
|
|
||||||
|
// Reduce layer growth where ratio thickness to medial
|
||||||
|
// distance is large
|
||||||
|
maxThicknessToMedialRatio 0.3;
|
||||||
|
|
||||||
|
// Angle used to pick up medial axis points
|
||||||
|
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
|
||||||
|
minMedianAxisAngle 90;
|
||||||
|
|
||||||
|
|
||||||
|
// Create buffer region for new layer terminations
|
||||||
|
nBufferCellsNoExtrude 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Overall max number of layer addition iterations. The mesher will exit
|
||||||
|
// if it reaches this number of iterations; possibly with an illegal
|
||||||
|
// mesh.
|
||||||
|
nLayerIter 50;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Generic mesh quality settings. At any undoable phase these determine
|
||||||
|
// where to undo.
|
||||||
|
meshQualityControls
|
||||||
|
{
|
||||||
|
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||||
|
maxNonOrtho 65;
|
||||||
|
|
||||||
|
//- Max skewness allowed. Set to <0 to disable.
|
||||||
|
maxBoundarySkewness 20;
|
||||||
|
maxInternalSkewness 4;
|
||||||
|
|
||||||
|
//- Max concaveness allowed. Is angle (in degrees) below which concavity
|
||||||
|
// is allowed. 0 is straight face, <0 would be convex face.
|
||||||
|
// Set to 180 to disable.
|
||||||
|
maxConcave 80;
|
||||||
|
|
||||||
|
//- Minimum pyramid volume. Is absolute volume of cell pyramid.
|
||||||
|
// Set to a sensible fraction of the smallest cell volume expected.
|
||||||
|
// Set to very negative number (e.g. -1E30) to disable.
|
||||||
|
minVol 1e-13;
|
||||||
|
|
||||||
|
//- Minimum quality of the tet formed by the face-centre
|
||||||
|
// and variable base point minimum decomposition triangles and
|
||||||
|
// the cell centre. This has to be a positive number for tracking
|
||||||
|
// to work. Set to very negative number (e.g. -1E30) to
|
||||||
|
// disable.
|
||||||
|
// <0 = inside out tet,
|
||||||
|
// 0 = flat tet
|
||||||
|
// 1 = regular tet
|
||||||
|
minTetQuality -1; //1e-30;
|
||||||
|
|
||||||
|
//- Minimum face area. Set to <0 to disable.
|
||||||
|
minArea -1;
|
||||||
|
|
||||||
|
//- Minimum face twist. Set to <-1 to disable. dot product of face normal
|
||||||
|
//- and face centre triangles normal
|
||||||
|
minTwist 0.02;
|
||||||
|
|
||||||
|
//- minimum normalised cell determinant
|
||||||
|
//- 1 = hex, <= 0 = folded or flattened illegal cell
|
||||||
|
minDeterminant 0.001;
|
||||||
|
|
||||||
|
//- minFaceWeight (0 -> 0.5)
|
||||||
|
minFaceWeight 0.02;
|
||||||
|
|
||||||
|
//- minVolRatio (0 -> 1)
|
||||||
|
minVolRatio 0.01;
|
||||||
|
|
||||||
|
//must be >0 for Fluent compatibility
|
||||||
|
minTriangleTwist -1;
|
||||||
|
|
||||||
|
|
||||||
|
// Advanced
|
||||||
|
|
||||||
|
//- Number of error distribution iterations
|
||||||
|
nSmoothScale 4;
|
||||||
|
//- amount to scale back displacement at error points
|
||||||
|
errorReduction 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Advanced
|
||||||
|
|
||||||
|
// Flags for optional output
|
||||||
|
// 0 : only write final meshes
|
||||||
|
// 1 : write intermediate meshes
|
||||||
|
// 2 : write volScalarField with cellLevel for postprocessing
|
||||||
|
// 4 : write current intersections as .obj files
|
||||||
|
debug 0;
|
||||||
|
|
||||||
|
|
||||||
|
// Merge tolerance. Is fraction of overall bounding box of initial mesh.
|
||||||
|
// Note: the write tolerance needs to be higher than this.
|
||||||
|
mergeTolerance 1e-6;
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -17,20 +17,20 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [ 0 2 -2 0 0 0 0 ];
|
dimensions [ 0 2 -2 0 0 0 0 ];
|
||||||
|
|
||||||
internalField uniform 0.1;
|
internalField uniform 0;
|
||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
rotor
|
rotor
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
value uniform 0.1;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
stator
|
stator
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type zeroGradient;
|
||||||
value uniform 0.1;
|
value uniform 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
front
|
front
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
RASModel kEpsilon;
|
RASModel kEpsilon;
|
||||||
|
|
||||||
turbulence on;
|
turbulence off;
|
||||||
|
|
||||||
printCoeffs on;
|
printCoeffs on;
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,44 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object Theta;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 2 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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 volVectorField;
|
||||||
|
object Uair;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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 volVectorField;
|
||||||
|
object Umercury;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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 volVectorField;
|
||||||
|
object Uoil;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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 volVectorField;
|
||||||
|
object Uwater;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -1 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform (0 0 0);
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform (0 0 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object alphaair;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.25;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object alphamercury;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.25;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object alphaoil;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.25;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,43 @@
|
|||||||
|
/*--------------------------------*- 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 alphas;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 1.5;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object alphawater;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0.25;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
/*--------------------------------*- 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 20;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
value uniform 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
value uniform 20;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
48
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/k
Normal file
48
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/k
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
46
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/p
Normal file
46
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/0/p
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object p;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [1 -1 -2 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type multiphaseFixedFluxPressure;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type multiphaseFixedFluxPressure;
|
||||||
|
value $internalField;
|
||||||
|
}
|
||||||
|
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
12
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun
Executable file
12
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/Allrun
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
application=`getApplication`
|
||||||
|
|
||||||
|
runApplication ./makeMesh
|
||||||
|
runApplication $application
|
||||||
|
|
||||||
|
# ----------------------------------------------------------------- end-of-file
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "constant";
|
||||||
|
object LESProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
LESModel laminar;
|
||||||
|
|
||||||
|
printCoeffs on;
|
||||||
|
|
||||||
|
delta cubeRootVol;
|
||||||
|
|
||||||
|
cubeRootVolCoeffs
|
||||||
|
{
|
||||||
|
deltaCoeff 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "constant";
|
||||||
|
object MRFZones;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
1
|
||||||
|
(
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
// Fixed patches (by default they 'move' with the MRF zone)
|
||||||
|
nonRotatingPatches ();
|
||||||
|
|
||||||
|
origin origin [0 1 0 0 0 0 0] (0 0 0);
|
||||||
|
axis axis [0 0 0 0 0 0 0] (0 0 1);
|
||||||
|
omega omega [0 0 -1 0 0 0 0] 10.472;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,22 @@
|
|||||||
|
/*--------------------------------*- 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 uniformDimensionedVectorField;
|
||||||
|
location "constant";
|
||||||
|
object g;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 1 -2 0 0 0 0];
|
||||||
|
value (0 0 0);
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "constant";
|
||||||
|
object interfacialProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dragModel1 SchillerNaumann;
|
||||||
|
dragModel2 SchillerNaumann;
|
||||||
|
|
||||||
|
heatTransferModel1 RanzMarshall;
|
||||||
|
heatTransferModel2 RanzMarshall;
|
||||||
|
|
||||||
|
dispersedPhase both;
|
||||||
|
dragPhase blended;
|
||||||
|
|
||||||
|
residualSlip 1e-2;
|
||||||
|
minInterfaceAlpha 1e-3;
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,818 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
object blockMeshDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
// General macros to create 2D/extruded-2D meshes
|
||||||
|
|
||||||
|
changecom(//)changequote([,])
|
||||||
|
define(calc, [esyscmd(perl -e 'print ($1)')])
|
||||||
|
define(VCOUNT, 0)
|
||||||
|
define(vlabel, [[// ]Vertex $1 = VCOUNT define($1, VCOUNT)define([VCOUNT], incr(VCOUNT))])
|
||||||
|
define(pi, 3.14159265)
|
||||||
|
|
||||||
|
define(hex2D, hex ($1b $2b $3b $4b $1t $2t $3t $4t))
|
||||||
|
define(quad2D, ($1b $2b $2t $1t))
|
||||||
|
define(frontQuad, ($1t $2t $3t $4t))
|
||||||
|
define(backQuad, ($1b $4b $3b $2b))
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
convertToMeters 0.1;
|
||||||
|
|
||||||
|
// Hub radius
|
||||||
|
define(r, 0.2)
|
||||||
|
|
||||||
|
// Impeller-tip radius
|
||||||
|
define(rb, 0.5)
|
||||||
|
|
||||||
|
// Baffle-tip radius
|
||||||
|
define(Rb, 0.7)
|
||||||
|
|
||||||
|
// Tank radius
|
||||||
|
define(R, 1)
|
||||||
|
|
||||||
|
// MRF region radius
|
||||||
|
define(ri, calc(0.5*(rb + Rb)))
|
||||||
|
|
||||||
|
// Thickness of 2D slab
|
||||||
|
define(z, 0.1)
|
||||||
|
|
||||||
|
// Base z
|
||||||
|
define(Zb, 0)
|
||||||
|
|
||||||
|
// Top z
|
||||||
|
define(Zt, calc(Zb + z))
|
||||||
|
|
||||||
|
// Number of cells radially between hub and impeller tip
|
||||||
|
define(Nr, 12)
|
||||||
|
|
||||||
|
// Number of cells radially in each of the two regions between
|
||||||
|
// impeller and baffle tips
|
||||||
|
define(Ni, 4)
|
||||||
|
|
||||||
|
// Number of cells radially between baffle tip and tank
|
||||||
|
define(NR, 12)
|
||||||
|
|
||||||
|
// Number of cells azimuthally in each of the 8 blocks
|
||||||
|
define(Na, 12)
|
||||||
|
|
||||||
|
// Number of cells in the thickness of the slab
|
||||||
|
define(Nz, 1)
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
define(vert, (x$1$2 y$1$2 $3))
|
||||||
|
define(evert, (ex$1$2 ey$1$2 $3))
|
||||||
|
|
||||||
|
define(a0, 0)
|
||||||
|
define(a1, -45)
|
||||||
|
define(a2, -90)
|
||||||
|
define(a3, -135)
|
||||||
|
define(a4, 180)
|
||||||
|
define(a5, 135)
|
||||||
|
define(a6, 90)
|
||||||
|
define(a7, 45)
|
||||||
|
|
||||||
|
define(ea0, -22.5)
|
||||||
|
define(ea1, -67.5)
|
||||||
|
define(ea2, -112.5)
|
||||||
|
define(ea3, -157.5)
|
||||||
|
define(ea4, 157.5)
|
||||||
|
define(ea5, 112.5)
|
||||||
|
define(ea6, 67.5)
|
||||||
|
define(ea7, 22.5)
|
||||||
|
|
||||||
|
define(ca0, calc(cos((pi/180)*a0)))
|
||||||
|
define(ca1, calc(cos((pi/180)*a1)))
|
||||||
|
define(ca2, calc(cos((pi/180)*a2)))
|
||||||
|
define(ca3, calc(cos((pi/180)*a3)))
|
||||||
|
define(ca4, calc(cos((pi/180)*a4)))
|
||||||
|
define(ca5, calc(cos((pi/180)*a5)))
|
||||||
|
define(ca6, calc(cos((pi/180)*a6)))
|
||||||
|
define(ca7, calc(cos((pi/180)*a7)))
|
||||||
|
|
||||||
|
define(sa0, calc(sin((pi/180)*a0)))
|
||||||
|
define(sa1, calc(sin((pi/180)*a1)))
|
||||||
|
define(sa2, calc(sin((pi/180)*a2)))
|
||||||
|
define(sa3, calc(sin((pi/180)*a3)))
|
||||||
|
define(sa4, calc(sin((pi/180)*a4)))
|
||||||
|
define(sa5, calc(sin((pi/180)*a5)))
|
||||||
|
define(sa6, calc(sin((pi/180)*a6)))
|
||||||
|
define(sa7, calc(sin((pi/180)*a7)))
|
||||||
|
|
||||||
|
define(cea0, calc(cos((pi/180)*ea0)))
|
||||||
|
define(cea1, calc(cos((pi/180)*ea1)))
|
||||||
|
define(cea2, calc(cos((pi/180)*ea2)))
|
||||||
|
define(cea3, calc(cos((pi/180)*ea3)))
|
||||||
|
define(cea4, calc(cos((pi/180)*ea4)))
|
||||||
|
define(cea5, calc(cos((pi/180)*ea5)))
|
||||||
|
define(cea6, calc(cos((pi/180)*ea6)))
|
||||||
|
define(cea7, calc(cos((pi/180)*ea7)))
|
||||||
|
|
||||||
|
define(sea0, calc(sin((pi/180)*ea0)))
|
||||||
|
define(sea1, calc(sin((pi/180)*ea1)))
|
||||||
|
define(sea2, calc(sin((pi/180)*ea2)))
|
||||||
|
define(sea3, calc(sin((pi/180)*ea3)))
|
||||||
|
define(sea4, calc(sin((pi/180)*ea4)))
|
||||||
|
define(sea5, calc(sin((pi/180)*ea5)))
|
||||||
|
define(sea6, calc(sin((pi/180)*ea6)))
|
||||||
|
define(sea7, calc(sin((pi/180)*ea7)))
|
||||||
|
|
||||||
|
define(x00, calc(r*ca0))
|
||||||
|
define(x01, calc(r*ca1))
|
||||||
|
define(x02, calc(r*ca2))
|
||||||
|
define(x03, calc(r*ca3))
|
||||||
|
define(x04, calc(r*ca4))
|
||||||
|
define(x05, calc(r*ca5))
|
||||||
|
define(x06, calc(r*ca6))
|
||||||
|
define(x07, calc(r*ca7))
|
||||||
|
|
||||||
|
define(x10, calc(rb*ca0))
|
||||||
|
define(x11, calc(rb*ca1))
|
||||||
|
define(x12, calc(rb*ca2))
|
||||||
|
define(x13, calc(rb*ca3))
|
||||||
|
define(x14, calc(rb*ca4))
|
||||||
|
define(x15, calc(rb*ca5))
|
||||||
|
define(x16, calc(rb*ca6))
|
||||||
|
define(x17, calc(rb*ca7))
|
||||||
|
|
||||||
|
define(x20, calc(ri*ca0))
|
||||||
|
define(x21, calc(ri*ca1))
|
||||||
|
define(x22, calc(ri*ca2))
|
||||||
|
define(x23, calc(ri*ca3))
|
||||||
|
define(x24, calc(ri*ca4))
|
||||||
|
define(x25, calc(ri*ca5))
|
||||||
|
define(x26, calc(ri*ca6))
|
||||||
|
define(x27, calc(ri*ca7))
|
||||||
|
|
||||||
|
define(x30, calc(Rb*ca0))
|
||||||
|
define(x31, calc(Rb*ca1))
|
||||||
|
define(x32, calc(Rb*ca2))
|
||||||
|
define(x33, calc(Rb*ca3))
|
||||||
|
define(x34, calc(Rb*ca4))
|
||||||
|
define(x35, calc(Rb*ca5))
|
||||||
|
define(x36, calc(Rb*ca6))
|
||||||
|
define(x37, calc(Rb*ca7))
|
||||||
|
|
||||||
|
define(x40, calc(R*ca0))
|
||||||
|
define(x41, calc(R*ca1))
|
||||||
|
define(x42, calc(R*ca2))
|
||||||
|
define(x43, calc(R*ca3))
|
||||||
|
define(x44, calc(R*ca4))
|
||||||
|
define(x45, calc(R*ca5))
|
||||||
|
define(x46, calc(R*ca6))
|
||||||
|
define(x47, calc(R*ca7))
|
||||||
|
|
||||||
|
define(y00, calc(r*sa0))
|
||||||
|
define(y01, calc(r*sa1))
|
||||||
|
define(y02, calc(r*sa2))
|
||||||
|
define(y03, calc(r*sa3))
|
||||||
|
define(y04, calc(r*sa4))
|
||||||
|
define(y05, calc(r*sa5))
|
||||||
|
define(y06, calc(r*sa6))
|
||||||
|
define(y07, calc(r*sa7))
|
||||||
|
|
||||||
|
define(y10, calc(rb*sa0))
|
||||||
|
define(y11, calc(rb*sa1))
|
||||||
|
define(y12, calc(rb*sa2))
|
||||||
|
define(y13, calc(rb*sa3))
|
||||||
|
define(y14, calc(rb*sa4))
|
||||||
|
define(y15, calc(rb*sa5))
|
||||||
|
define(y16, calc(rb*sa6))
|
||||||
|
define(y17, calc(rb*sa7))
|
||||||
|
|
||||||
|
define(y20, calc(ri*sa0))
|
||||||
|
define(y21, calc(ri*sa1))
|
||||||
|
define(y22, calc(ri*sa2))
|
||||||
|
define(y23, calc(ri*sa3))
|
||||||
|
define(y24, calc(ri*sa4))
|
||||||
|
define(y25, calc(ri*sa5))
|
||||||
|
define(y26, calc(ri*sa6))
|
||||||
|
define(y27, calc(ri*sa7))
|
||||||
|
|
||||||
|
define(y30, calc(Rb*sa0))
|
||||||
|
define(y31, calc(Rb*sa1))
|
||||||
|
define(y32, calc(Rb*sa2))
|
||||||
|
define(y33, calc(Rb*sa3))
|
||||||
|
define(y34, calc(Rb*sa4))
|
||||||
|
define(y35, calc(Rb*sa5))
|
||||||
|
define(y36, calc(Rb*sa6))
|
||||||
|
define(y37, calc(Rb*sa7))
|
||||||
|
|
||||||
|
define(y40, calc(R*sa0))
|
||||||
|
define(y41, calc(R*sa1))
|
||||||
|
define(y42, calc(R*sa2))
|
||||||
|
define(y43, calc(R*sa3))
|
||||||
|
define(y44, calc(R*sa4))
|
||||||
|
define(y45, calc(R*sa5))
|
||||||
|
define(y46, calc(R*sa6))
|
||||||
|
define(y47, calc(R*sa7))
|
||||||
|
|
||||||
|
define(ex00, calc(r*cea0))
|
||||||
|
define(ex01, calc(r*cea1))
|
||||||
|
define(ex02, calc(r*cea2))
|
||||||
|
define(ex03, calc(r*cea3))
|
||||||
|
define(ex04, calc(r*cea4))
|
||||||
|
define(ex05, calc(r*cea5))
|
||||||
|
define(ex06, calc(r*cea6))
|
||||||
|
define(ex07, calc(r*cea7))
|
||||||
|
|
||||||
|
define(ex10, calc(rb*cea0))
|
||||||
|
define(ex11, calc(rb*cea1))
|
||||||
|
define(ex12, calc(rb*cea2))
|
||||||
|
define(ex13, calc(rb*cea3))
|
||||||
|
define(ex14, calc(rb*cea4))
|
||||||
|
define(ex15, calc(rb*cea5))
|
||||||
|
define(ex16, calc(rb*cea6))
|
||||||
|
define(ex17, calc(rb*cea7))
|
||||||
|
|
||||||
|
define(ex20, calc(ri*cea0))
|
||||||
|
define(ex21, calc(ri*cea1))
|
||||||
|
define(ex22, calc(ri*cea2))
|
||||||
|
define(ex23, calc(ri*cea3))
|
||||||
|
define(ex24, calc(ri*cea4))
|
||||||
|
define(ex25, calc(ri*cea5))
|
||||||
|
define(ex26, calc(ri*cea6))
|
||||||
|
define(ex27, calc(ri*cea7))
|
||||||
|
|
||||||
|
define(ex30, calc(Rb*cea0))
|
||||||
|
define(ex31, calc(Rb*cea1))
|
||||||
|
define(ex32, calc(Rb*cea2))
|
||||||
|
define(ex33, calc(Rb*cea3))
|
||||||
|
define(ex34, calc(Rb*cea4))
|
||||||
|
define(ex35, calc(Rb*cea5))
|
||||||
|
define(ex36, calc(Rb*cea6))
|
||||||
|
define(ex37, calc(Rb*cea7))
|
||||||
|
|
||||||
|
define(ex40, calc(R*cea0))
|
||||||
|
define(ex41, calc(R*cea1))
|
||||||
|
define(ex42, calc(R*cea2))
|
||||||
|
define(ex43, calc(R*cea3))
|
||||||
|
define(ex44, calc(R*cea4))
|
||||||
|
define(ex45, calc(R*cea5))
|
||||||
|
define(ex46, calc(R*cea6))
|
||||||
|
define(ex47, calc(R*cea7))
|
||||||
|
|
||||||
|
define(ey00, calc(r*sea0))
|
||||||
|
define(ey01, calc(r*sea1))
|
||||||
|
define(ey02, calc(r*sea2))
|
||||||
|
define(ey03, calc(r*sea3))
|
||||||
|
define(ey04, calc(r*sea4))
|
||||||
|
define(ey05, calc(r*sea5))
|
||||||
|
define(ey06, calc(r*sea6))
|
||||||
|
define(ey07, calc(r*sea7))
|
||||||
|
|
||||||
|
define(ey10, calc(rb*sea0))
|
||||||
|
define(ey11, calc(rb*sea1))
|
||||||
|
define(ey12, calc(rb*sea2))
|
||||||
|
define(ey13, calc(rb*sea3))
|
||||||
|
define(ey14, calc(rb*sea4))
|
||||||
|
define(ey15, calc(rb*sea5))
|
||||||
|
define(ey16, calc(rb*sea6))
|
||||||
|
define(ey17, calc(rb*sea7))
|
||||||
|
|
||||||
|
define(ey20, calc(ri*sea0))
|
||||||
|
define(ey21, calc(ri*sea1))
|
||||||
|
define(ey22, calc(ri*sea2))
|
||||||
|
define(ey23, calc(ri*sea3))
|
||||||
|
define(ey24, calc(ri*sea4))
|
||||||
|
define(ey25, calc(ri*sea5))
|
||||||
|
define(ey26, calc(ri*sea6))
|
||||||
|
define(ey27, calc(ri*sea7))
|
||||||
|
|
||||||
|
define(ey30, calc(Rb*sea0))
|
||||||
|
define(ey31, calc(Rb*sea1))
|
||||||
|
define(ey32, calc(Rb*sea2))
|
||||||
|
define(ey33, calc(Rb*sea3))
|
||||||
|
define(ey34, calc(Rb*sea4))
|
||||||
|
define(ey35, calc(Rb*sea5))
|
||||||
|
define(ey36, calc(Rb*sea6))
|
||||||
|
define(ey37, calc(Rb*sea7))
|
||||||
|
|
||||||
|
define(ey40, calc(R*sea0))
|
||||||
|
define(ey41, calc(R*sea1))
|
||||||
|
define(ey42, calc(R*sea2))
|
||||||
|
define(ey43, calc(R*sea3))
|
||||||
|
define(ey44, calc(R*sea4))
|
||||||
|
define(ey45, calc(R*sea5))
|
||||||
|
define(ey46, calc(R*sea6))
|
||||||
|
define(ey47, calc(R*sea7))
|
||||||
|
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
vertices
|
||||||
|
(
|
||||||
|
vert(0, 0, Zb) vlabel(r0b)
|
||||||
|
vert(0, 0, Zb) vlabel(r0sb)
|
||||||
|
vert(0, 1, Zb) vlabel(r1b)
|
||||||
|
vert(0, 2, Zb) vlabel(r2b)
|
||||||
|
vert(0, 2, Zb) vlabel(r2sb)
|
||||||
|
vert(0, 3, Zb) vlabel(r3b)
|
||||||
|
vert(0, 4, Zb) vlabel(r4b)
|
||||||
|
vert(0, 4, Zb) vlabel(r4sb)
|
||||||
|
vert(0, 5, Zb) vlabel(r5b)
|
||||||
|
vert(0, 6, Zb) vlabel(r6b)
|
||||||
|
vert(0, 6, Zb) vlabel(r6sb)
|
||||||
|
vert(0, 7, Zb) vlabel(r7b)
|
||||||
|
|
||||||
|
vert(1, 0, Zb) vlabel(rb0b)
|
||||||
|
vert(1, 1, Zb) vlabel(rb1b)
|
||||||
|
vert(1, 2, Zb) vlabel(rb2b)
|
||||||
|
vert(1, 3, Zb) vlabel(rb3b)
|
||||||
|
vert(1, 4, Zb) vlabel(rb4b)
|
||||||
|
vert(1, 5, Zb) vlabel(rb5b)
|
||||||
|
vert(1, 6, Zb) vlabel(rb6b)
|
||||||
|
vert(1, 7, Zb) vlabel(rb7b)
|
||||||
|
|
||||||
|
vert(2, 0, Zb) vlabel(ri0b)
|
||||||
|
vert(2, 1, Zb) vlabel(ri1b)
|
||||||
|
vert(2, 2, Zb) vlabel(ri2b)
|
||||||
|
vert(2, 3, Zb) vlabel(ri3b)
|
||||||
|
vert(2, 4, Zb) vlabel(ri4b)
|
||||||
|
vert(2, 5, Zb) vlabel(ri5b)
|
||||||
|
vert(2, 6, Zb) vlabel(ri6b)
|
||||||
|
vert(2, 7, Zb) vlabel(ri7b)
|
||||||
|
|
||||||
|
vert(3, 0, Zb) vlabel(Rb0b)
|
||||||
|
vert(3, 1, Zb) vlabel(Rb1b)
|
||||||
|
vert(3, 2, Zb) vlabel(Rb2b)
|
||||||
|
vert(3, 3, Zb) vlabel(Rb3b)
|
||||||
|
vert(3, 4, Zb) vlabel(Rb4b)
|
||||||
|
vert(3, 5, Zb) vlabel(Rb5b)
|
||||||
|
vert(3, 6, Zb) vlabel(Rb6b)
|
||||||
|
vert(3, 7, Zb) vlabel(Rb7b)
|
||||||
|
|
||||||
|
vert(4, 0, Zb) vlabel(R0b)
|
||||||
|
vert(4, 1, Zb) vlabel(R1b)
|
||||||
|
vert(4, 1, Zb) vlabel(R1sb)
|
||||||
|
vert(4, 2, Zb) vlabel(R2b)
|
||||||
|
vert(4, 3, Zb) vlabel(R3b)
|
||||||
|
vert(4, 3, Zb) vlabel(R3sb)
|
||||||
|
vert(4, 4, Zb) vlabel(R4b)
|
||||||
|
vert(4, 5, Zb) vlabel(R5b)
|
||||||
|
vert(4, 5, Zb) vlabel(R5sb)
|
||||||
|
vert(4, 6, Zb) vlabel(R6b)
|
||||||
|
vert(4, 7, Zb) vlabel(R7b)
|
||||||
|
vert(4, 7, Zb) vlabel(R7sb)
|
||||||
|
|
||||||
|
vert(0, 0, Zt) vlabel(r0t)
|
||||||
|
vert(0, 0, Zt) vlabel(r0st)
|
||||||
|
vert(0, 1, Zt) vlabel(r1t)
|
||||||
|
vert(0, 2, Zt) vlabel(r2t)
|
||||||
|
vert(0, 2, Zt) vlabel(r2st)
|
||||||
|
vert(0, 3, Zt) vlabel(r3t)
|
||||||
|
vert(0, 4, Zt) vlabel(r4t)
|
||||||
|
vert(0, 4, Zt) vlabel(r4st)
|
||||||
|
vert(0, 5, Zt) vlabel(r5t)
|
||||||
|
vert(0, 6, Zt) vlabel(r6t)
|
||||||
|
vert(0, 6, Zt) vlabel(r6st)
|
||||||
|
vert(0, 7, Zt) vlabel(r7t)
|
||||||
|
|
||||||
|
vert(1, 0, Zt) vlabel(rb0t)
|
||||||
|
vert(1, 1, Zt) vlabel(rb1t)
|
||||||
|
vert(1, 2, Zt) vlabel(rb2t)
|
||||||
|
vert(1, 3, Zt) vlabel(rb3t)
|
||||||
|
vert(1, 4, Zt) vlabel(rb4t)
|
||||||
|
vert(1, 5, Zt) vlabel(rb5t)
|
||||||
|
vert(1, 6, Zt) vlabel(rb6t)
|
||||||
|
vert(1, 7, Zt) vlabel(rb7t)
|
||||||
|
|
||||||
|
vert(2, 0, Zt) vlabel(ri0t)
|
||||||
|
vert(2, 1, Zt) vlabel(ri1t)
|
||||||
|
vert(2, 2, Zt) vlabel(ri2t)
|
||||||
|
vert(2, 3, Zt) vlabel(ri3t)
|
||||||
|
vert(2, 4, Zt) vlabel(ri4t)
|
||||||
|
vert(2, 5, Zt) vlabel(ri5t)
|
||||||
|
vert(2, 6, Zt) vlabel(ri6t)
|
||||||
|
vert(2, 7, Zt) vlabel(ri7t)
|
||||||
|
|
||||||
|
vert(3, 0, Zt) vlabel(Rb0t)
|
||||||
|
vert(3, 1, Zt) vlabel(Rb1t)
|
||||||
|
vert(3, 2, Zt) vlabel(Rb2t)
|
||||||
|
vert(3, 3, Zt) vlabel(Rb3t)
|
||||||
|
vert(3, 4, Zt) vlabel(Rb4t)
|
||||||
|
vert(3, 5, Zt) vlabel(Rb5t)
|
||||||
|
vert(3, 6, Zt) vlabel(Rb6t)
|
||||||
|
vert(3, 7, Zt) vlabel(Rb7t)
|
||||||
|
|
||||||
|
vert(4, 0, Zt) vlabel(R0t)
|
||||||
|
vert(4, 1, Zt) vlabel(R1t)
|
||||||
|
vert(4, 1, Zt) vlabel(R1st)
|
||||||
|
vert(4, 2, Zt) vlabel(R2t)
|
||||||
|
vert(4, 3, Zt) vlabel(R3t)
|
||||||
|
vert(4, 3, Zt) vlabel(R3st)
|
||||||
|
vert(4, 4, Zt) vlabel(R4t)
|
||||||
|
vert(4, 5, Zt) vlabel(R5t)
|
||||||
|
vert(4, 5, Zt) vlabel(R5st)
|
||||||
|
vert(4, 6, Zt) vlabel(R6t)
|
||||||
|
vert(4, 7, Zt) vlabel(R7t)
|
||||||
|
vert(4, 7, Zt) vlabel(R7st)
|
||||||
|
);
|
||||||
|
|
||||||
|
blocks
|
||||||
|
(
|
||||||
|
// block0
|
||||||
|
hex2D(r0, r1, rb1, rb0)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block1
|
||||||
|
hex2D(r1, r2s, rb2, rb1)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block2
|
||||||
|
hex2D(r2, r3, rb3, rb2)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block3
|
||||||
|
hex2D(r3, r4s, rb4, rb3)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block4
|
||||||
|
hex2D(r4, r5, rb5, rb4)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block5
|
||||||
|
hex2D(r5, r6s, rb6, rb5)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block6
|
||||||
|
hex2D(r6, r7, rb7, rb6)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block7
|
||||||
|
hex2D(r7, r0s, rb0, rb7)
|
||||||
|
rotor
|
||||||
|
(Na Nr Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block0
|
||||||
|
hex2D(rb0, rb1, ri1, ri0)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block1
|
||||||
|
hex2D(rb1, rb2, ri2, ri1)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block2
|
||||||
|
hex2D(rb2, rb3, ri3, ri2)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block3
|
||||||
|
hex2D(rb3, rb4, ri4, ri3)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block4
|
||||||
|
hex2D(rb4, rb5, ri5, ri4)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block5
|
||||||
|
hex2D(rb5, rb6, ri6, ri5)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block6
|
||||||
|
hex2D(rb6, rb7, ri7, ri6)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block7
|
||||||
|
hex2D(rb7, rb0, ri0, ri7)
|
||||||
|
rotor
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block0
|
||||||
|
hex2D(ri0, ri1, Rb1, Rb0)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block1
|
||||||
|
hex2D(ri1, ri2, Rb2, Rb1)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block2
|
||||||
|
hex2D(ri2, ri3, Rb3, Rb2)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block3
|
||||||
|
hex2D(ri3, ri4, Rb4, Rb3)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block4
|
||||||
|
hex2D(ri4, ri5, Rb5, Rb4)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block5
|
||||||
|
hex2D(ri5, ri6, Rb6, Rb5)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block6
|
||||||
|
hex2D(ri6, ri7, Rb7, Rb6)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block7
|
||||||
|
hex2D(ri7, ri0, Rb0, Rb7)
|
||||||
|
(Na Ni Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block0
|
||||||
|
hex2D(Rb0, Rb1, R1s, R0)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block1
|
||||||
|
hex2D(Rb1, Rb2, R2, R1)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block2
|
||||||
|
hex2D(Rb2, Rb3, R3s, R2)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block3
|
||||||
|
hex2D(Rb3, Rb4, R4, R3)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block4
|
||||||
|
hex2D(Rb4, Rb5, R5s, R4)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block5
|
||||||
|
hex2D(Rb5, Rb6, R6, R5)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block6
|
||||||
|
hex2D(Rb6, Rb7, R7s, R6)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
|
||||||
|
// block7
|
||||||
|
hex2D(Rb7, Rb0, R0, R7)
|
||||||
|
(Na NR Nz)
|
||||||
|
simpleGrading (1 1 1)
|
||||||
|
);
|
||||||
|
|
||||||
|
edges
|
||||||
|
(
|
||||||
|
arc r0b r1b evert(0, 0, Zb)
|
||||||
|
arc r1b r2sb evert(0, 1, Zb)
|
||||||
|
arc r2b r3b evert(0, 2, Zb)
|
||||||
|
arc r3b r4sb evert(0, 3, Zb)
|
||||||
|
arc r4b r5b evert(0, 4, Zb)
|
||||||
|
arc r5b r6sb evert(0, 5, Zb)
|
||||||
|
arc r6b r7b evert(0, 6, Zb)
|
||||||
|
arc r7b r0sb evert(0, 7, Zb)
|
||||||
|
|
||||||
|
arc rb0b rb1b evert(1, 0, Zb)
|
||||||
|
arc rb1b rb2b evert(1, 1, Zb)
|
||||||
|
arc rb2b rb3b evert(1, 2, Zb)
|
||||||
|
arc rb3b rb4b evert(1, 3, Zb)
|
||||||
|
arc rb4b rb5b evert(1, 4, Zb)
|
||||||
|
arc rb5b rb6b evert(1, 5, Zb)
|
||||||
|
arc rb6b rb7b evert(1, 6, Zb)
|
||||||
|
arc rb7b rb0b evert(1, 7, Zb)
|
||||||
|
|
||||||
|
arc ri0b ri1b evert(2, 0, Zb)
|
||||||
|
arc ri1b ri2b evert(2, 1, Zb)
|
||||||
|
arc ri2b ri3b evert(2, 2, Zb)
|
||||||
|
arc ri3b ri4b evert(2, 3, Zb)
|
||||||
|
arc ri4b ri5b evert(2, 4, Zb)
|
||||||
|
arc ri5b ri6b evert(2, 5, Zb)
|
||||||
|
arc ri6b ri7b evert(2, 6, Zb)
|
||||||
|
arc ri7b ri0b evert(2, 7, Zb)
|
||||||
|
|
||||||
|
arc Rb0b Rb1b evert(3, 0, Zb)
|
||||||
|
arc Rb1b Rb2b evert(3, 1, Zb)
|
||||||
|
arc Rb2b Rb3b evert(3, 2, Zb)
|
||||||
|
arc Rb3b Rb4b evert(3, 3, Zb)
|
||||||
|
arc Rb4b Rb5b evert(3, 4, Zb)
|
||||||
|
arc Rb5b Rb6b evert(3, 5, Zb)
|
||||||
|
arc Rb6b Rb7b evert(3, 6, Zb)
|
||||||
|
arc Rb7b Rb0b evert(3, 7, Zb)
|
||||||
|
|
||||||
|
arc R0b R1sb evert(4, 0, Zb)
|
||||||
|
arc R1b R2b evert(4, 1, Zb)
|
||||||
|
arc R2b R3sb evert(4, 2, Zb)
|
||||||
|
arc R3b R4b evert(4, 3, Zb)
|
||||||
|
arc R4b R5sb evert(4, 4, Zb)
|
||||||
|
arc R5b R6b evert(4, 5, Zb)
|
||||||
|
arc R6b R7sb evert(4, 6, Zb)
|
||||||
|
arc R7b R0b evert(4, 7, Zb)
|
||||||
|
|
||||||
|
arc r0t r1t evert(0, 0, Zt)
|
||||||
|
arc r1t r2st evert(0, 1, Zt)
|
||||||
|
arc r2t r3t evert(0, 2, Zt)
|
||||||
|
arc r3t r4st evert(0, 3, Zt)
|
||||||
|
arc r4t r5t evert(0, 4, Zt)
|
||||||
|
arc r5t r6st evert(0, 5, Zt)
|
||||||
|
arc r6t r7t evert(0, 6, Zt)
|
||||||
|
arc r7t r0st evert(0, 7, Zt)
|
||||||
|
|
||||||
|
arc rb0t rb1t evert(1, 0, Zt)
|
||||||
|
arc rb1t rb2t evert(1, 1, Zt)
|
||||||
|
arc rb2t rb3t evert(1, 2, Zt)
|
||||||
|
arc rb3t rb4t evert(1, 3, Zt)
|
||||||
|
arc rb4t rb5t evert(1, 4, Zt)
|
||||||
|
arc rb5t rb6t evert(1, 5, Zt)
|
||||||
|
arc rb6t rb7t evert(1, 6, Zt)
|
||||||
|
arc rb7t rb0t evert(1, 7, Zt)
|
||||||
|
|
||||||
|
arc ri0t ri1t evert(2, 0, Zt)
|
||||||
|
arc ri1t ri2t evert(2, 1, Zt)
|
||||||
|
arc ri2t ri3t evert(2, 2, Zt)
|
||||||
|
arc ri3t ri4t evert(2, 3, Zt)
|
||||||
|
arc ri4t ri5t evert(2, 4, Zt)
|
||||||
|
arc ri5t ri6t evert(2, 5, Zt)
|
||||||
|
arc ri6t ri7t evert(2, 6, Zt)
|
||||||
|
arc ri7t ri0t evert(2, 7, Zt)
|
||||||
|
|
||||||
|
arc Rb0t Rb1t evert(3, 0, Zt)
|
||||||
|
arc Rb1t Rb2t evert(3, 1, Zt)
|
||||||
|
arc Rb2t Rb3t evert(3, 2, Zt)
|
||||||
|
arc Rb3t Rb4t evert(3, 3, Zt)
|
||||||
|
arc Rb4t Rb5t evert(3, 4, Zt)
|
||||||
|
arc Rb5t Rb6t evert(3, 5, Zt)
|
||||||
|
arc Rb6t Rb7t evert(3, 6, Zt)
|
||||||
|
arc Rb7t Rb0t evert(3, 7, Zt)
|
||||||
|
|
||||||
|
arc R0t R1st evert(4, 0, Zt)
|
||||||
|
arc R1t R2t evert(4, 1, Zt)
|
||||||
|
arc R2t R3st evert(4, 2, Zt)
|
||||||
|
arc R3t R4t evert(4, 3, Zt)
|
||||||
|
arc R4t R5st evert(4, 4, Zt)
|
||||||
|
arc R5t R6t evert(4, 5, Zt)
|
||||||
|
arc R6t R7st evert(4, 6, Zt)
|
||||||
|
arc R7t R0t evert(4, 7, Zt)
|
||||||
|
);
|
||||||
|
|
||||||
|
patches
|
||||||
|
(
|
||||||
|
wall rotor
|
||||||
|
(
|
||||||
|
quad2D(r0, r1)
|
||||||
|
quad2D(r1, r2s)
|
||||||
|
quad2D(r2, r3)
|
||||||
|
quad2D(r3, r4s)
|
||||||
|
quad2D(r4, r5)
|
||||||
|
quad2D(r5, r6s)
|
||||||
|
quad2D(r6, r7)
|
||||||
|
quad2D(r7, r0s)
|
||||||
|
|
||||||
|
quad2D(r0, rb0)
|
||||||
|
quad2D(r0s, rb0)
|
||||||
|
|
||||||
|
quad2D(r2, rb2)
|
||||||
|
quad2D(r2s, rb2)
|
||||||
|
|
||||||
|
quad2D(r4, rb4)
|
||||||
|
quad2D(r4s, rb4)
|
||||||
|
|
||||||
|
quad2D(r6, rb6)
|
||||||
|
quad2D(r6s, rb6)
|
||||||
|
)
|
||||||
|
|
||||||
|
wall stator
|
||||||
|
(
|
||||||
|
quad2D(R0, R1s)
|
||||||
|
quad2D(R1, R2)
|
||||||
|
quad2D(R2, R3s)
|
||||||
|
quad2D(R3, R4)
|
||||||
|
quad2D(R4, R5s)
|
||||||
|
quad2D(R5, R6)
|
||||||
|
quad2D(R6, R7s)
|
||||||
|
quad2D(R7, R0)
|
||||||
|
|
||||||
|
quad2D(R1, Rb1)
|
||||||
|
quad2D(R1s, Rb1)
|
||||||
|
|
||||||
|
quad2D(R3, Rb3)
|
||||||
|
quad2D(R3s, Rb3)
|
||||||
|
|
||||||
|
quad2D(R5, Rb5)
|
||||||
|
quad2D(R5s, Rb5)
|
||||||
|
|
||||||
|
quad2D(R7, Rb7)
|
||||||
|
quad2D(R7s, Rb7)
|
||||||
|
)
|
||||||
|
|
||||||
|
empty front
|
||||||
|
(
|
||||||
|
frontQuad(r0, r1, rb1, rb0)
|
||||||
|
frontQuad(r1, r2s, rb2, rb1)
|
||||||
|
frontQuad(r2, r3, rb3, rb2)
|
||||||
|
frontQuad(r3, r4s, rb4, rb3)
|
||||||
|
frontQuad(r4, r5, rb5, rb4)
|
||||||
|
frontQuad(r5, r6s, rb6, rb5)
|
||||||
|
frontQuad(r6, r7, rb7, rb6)
|
||||||
|
frontQuad(r7, r0s, rb0, rb7)
|
||||||
|
frontQuad(rb0, rb1, ri1, ri0)
|
||||||
|
frontQuad(rb1, rb2, ri2, ri1)
|
||||||
|
frontQuad(rb2, rb3, ri3, ri2)
|
||||||
|
frontQuad(rb3, rb4, ri4, ri3)
|
||||||
|
frontQuad(rb4, rb5, ri5, ri4)
|
||||||
|
frontQuad(rb5, rb6, ri6, ri5)
|
||||||
|
frontQuad(rb6, rb7, ri7, ri6)
|
||||||
|
frontQuad(rb7, rb0, ri0, ri7)
|
||||||
|
frontQuad(ri0, ri1, Rb1, Rb0)
|
||||||
|
frontQuad(ri1, ri2, Rb2, Rb1)
|
||||||
|
frontQuad(ri2, ri3, Rb3, Rb2)
|
||||||
|
frontQuad(ri3, ri4, Rb4, Rb3)
|
||||||
|
frontQuad(ri4, ri5, Rb5, Rb4)
|
||||||
|
frontQuad(ri5, ri6, Rb6, Rb5)
|
||||||
|
frontQuad(ri6, ri7, Rb7, Rb6)
|
||||||
|
frontQuad(ri7, ri0, Rb0, Rb7)
|
||||||
|
frontQuad(Rb0, Rb1, R1s, R0)
|
||||||
|
frontQuad(Rb1, Rb2, R2, R1)
|
||||||
|
frontQuad(Rb2, Rb3, R3s, R2)
|
||||||
|
frontQuad(Rb3, Rb4, R4, R3)
|
||||||
|
frontQuad(Rb4, Rb5, R5s, R4)
|
||||||
|
frontQuad(Rb5, Rb6, R6, R5)
|
||||||
|
frontQuad(Rb6, Rb7, R7s, R6)
|
||||||
|
frontQuad(Rb7, Rb0, R0, R7)
|
||||||
|
)
|
||||||
|
|
||||||
|
empty back
|
||||||
|
(
|
||||||
|
backQuad(r0, r1, rb1, rb0)
|
||||||
|
backQuad(r1, r2s, rb2, rb1)
|
||||||
|
backQuad(r2, r3, rb3, rb2)
|
||||||
|
backQuad(r3, r4s, rb4, rb3)
|
||||||
|
backQuad(r4, r5, rb5, rb4)
|
||||||
|
backQuad(r5, r6s, rb6, rb5)
|
||||||
|
backQuad(r6, r7, rb7, rb6)
|
||||||
|
backQuad(r7, r0s, rb0, rb7)
|
||||||
|
backQuad(rb0, rb1, ri1, ri0)
|
||||||
|
backQuad(rb1, rb2, ri2, ri1)
|
||||||
|
backQuad(rb2, rb3, ri3, ri2)
|
||||||
|
backQuad(rb3, rb4, ri4, ri3)
|
||||||
|
backQuad(rb4, rb5, ri5, ri4)
|
||||||
|
backQuad(rb5, rb6, ri6, ri5)
|
||||||
|
backQuad(rb6, rb7, ri7, ri6)
|
||||||
|
backQuad(rb7, rb0, ri0, ri7)
|
||||||
|
backQuad(ri0, ri1, Rb1, Rb0)
|
||||||
|
backQuad(ri1, ri2, Rb2, Rb1)
|
||||||
|
backQuad(ri2, ri3, Rb3, Rb2)
|
||||||
|
backQuad(ri3, ri4, Rb4, Rb3)
|
||||||
|
backQuad(ri4, ri5, Rb5, Rb4)
|
||||||
|
backQuad(ri5, ri6, Rb6, Rb5)
|
||||||
|
backQuad(ri6, ri7, Rb7, Rb6)
|
||||||
|
backQuad(ri7, ri0, Rb0, Rb7)
|
||||||
|
backQuad(Rb0, Rb1, R1s, R0)
|
||||||
|
backQuad(Rb1, Rb2, R2, R1)
|
||||||
|
backQuad(Rb2, Rb3, R3s, R2)
|
||||||
|
backQuad(Rb3, Rb4, R4, R3)
|
||||||
|
backQuad(Rb4, Rb5, R5s, R4)
|
||||||
|
backQuad(Rb5, Rb6, R6, R5)
|
||||||
|
backQuad(Rb6, Rb7, R7s, R6)
|
||||||
|
backQuad(Rb7, Rb0, R0, R7)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
4
|
||||||
|
(
|
||||||
|
rotor
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 192;
|
||||||
|
startFace 5952;
|
||||||
|
}
|
||||||
|
stator
|
||||||
|
{
|
||||||
|
type wall;
|
||||||
|
nFaces 192;
|
||||||
|
startFace 6144;
|
||||||
|
}
|
||||||
|
front
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
nFaces 3072;
|
||||||
|
startFace 6336;
|
||||||
|
}
|
||||||
|
back
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
nFaces 3072;
|
||||||
|
startFace 9408;
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,248 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "constant";
|
||||||
|
object transportProperties;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
phases
|
||||||
|
(
|
||||||
|
water
|
||||||
|
{
|
||||||
|
nu 1e-06;
|
||||||
|
kappa 1e-06;
|
||||||
|
Cp 4195;
|
||||||
|
rho 1000;
|
||||||
|
|
||||||
|
diameterModel constant;
|
||||||
|
constantCoeffs
|
||||||
|
{
|
||||||
|
d 1e-3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
oil
|
||||||
|
{
|
||||||
|
nu 1e-06;
|
||||||
|
kappa 1e-06;
|
||||||
|
Cp 4195;
|
||||||
|
rho 500;
|
||||||
|
|
||||||
|
diameterModel constant;
|
||||||
|
constantCoeffs
|
||||||
|
{
|
||||||
|
d 1e-3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mercury
|
||||||
|
{
|
||||||
|
nu 1.125e-07;
|
||||||
|
kappa 1e-06;
|
||||||
|
Cp 4195;
|
||||||
|
rho 13529;
|
||||||
|
|
||||||
|
diameterModel constant;
|
||||||
|
constantCoeffs
|
||||||
|
{
|
||||||
|
d 1e-3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
air
|
||||||
|
{
|
||||||
|
nu 1.48e-05;
|
||||||
|
kappa 2.63e-2;
|
||||||
|
Cp 1007;
|
||||||
|
rho 1;
|
||||||
|
|
||||||
|
diameterModel constant;
|
||||||
|
constantCoeffs
|
||||||
|
{
|
||||||
|
d 3e-3;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
sigmas
|
||||||
|
(
|
||||||
|
(air water) 0.07
|
||||||
|
(air oil) 0.07
|
||||||
|
(air mercury) 0.07
|
||||||
|
(water oil) 0
|
||||||
|
(water mercury) 0
|
||||||
|
(oil mercury) 0
|
||||||
|
);
|
||||||
|
|
||||||
|
interfaceCompression
|
||||||
|
(
|
||||||
|
(air water) 0
|
||||||
|
(air oil) 0
|
||||||
|
(air mercury) 0
|
||||||
|
(water oil) 0
|
||||||
|
(water mercury) 0
|
||||||
|
(oil mercury) 0
|
||||||
|
);
|
||||||
|
|
||||||
|
virtualMass
|
||||||
|
(
|
||||||
|
(air water) 0.5
|
||||||
|
(air oil) 0.5
|
||||||
|
(air mercury) 0.5
|
||||||
|
(water oil) 0.5
|
||||||
|
(water mercury) 0.5
|
||||||
|
(oil mercury) 0.5
|
||||||
|
);
|
||||||
|
|
||||||
|
drag
|
||||||
|
(
|
||||||
|
(air water)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
air
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
water
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
(air oil)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
air
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
oil
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
(air mercury)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
air
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
mercury
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
(water oil)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
water
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
oil
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
(water mercury)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
water
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
mercury
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
|
||||||
|
(oil mercury)
|
||||||
|
{
|
||||||
|
type blended;
|
||||||
|
|
||||||
|
oil
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
mercury
|
||||||
|
{
|
||||||
|
type SchillerNaumann;
|
||||||
|
residualPhaseFraction 0;
|
||||||
|
residualSlip 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
residualPhaseFraction 1e-2;
|
||||||
|
residualSlip 1e-2;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
// This is a dummy to support the Smagorinsky model
|
||||||
|
transportModel Newtonian;
|
||||||
|
nu nu [ 0 2 -1 0 0 0 0 ] 0;
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
6
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh
Executable file
6
tutorials/multiphase/multiphaseEulerFoam/mixerVessel2D/makeMesh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
m4 < constant/polyMesh/blockMeshDict.m4 > constant/polyMesh/blockMeshDict
|
||||||
|
blockMesh
|
||||||
|
topoSet
|
||||||
|
setsToZones -noFlipMap
|
||||||
@ -0,0 +1,55 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "system";
|
||||||
|
object controlDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
application multiphaseEulerFoam;
|
||||||
|
|
||||||
|
startFrom latestTime;
|
||||||
|
|
||||||
|
startTime 0;
|
||||||
|
|
||||||
|
stopAt endTime;
|
||||||
|
|
||||||
|
endTime 20;
|
||||||
|
|
||||||
|
deltaT 1e-4;
|
||||||
|
|
||||||
|
writeControl adjustableRunTime;
|
||||||
|
|
||||||
|
writeInterval 0.1;
|
||||||
|
|
||||||
|
purgeWrite 0;
|
||||||
|
|
||||||
|
writeFormat ascii;
|
||||||
|
|
||||||
|
writePrecision 6;
|
||||||
|
|
||||||
|
writeCompression uncompressed;
|
||||||
|
|
||||||
|
timeFormat general;
|
||||||
|
|
||||||
|
timePrecision 6;
|
||||||
|
|
||||||
|
runTimeModifiable yes;
|
||||||
|
|
||||||
|
adjustTimeStep yes;
|
||||||
|
|
||||||
|
maxCo 0.5;
|
||||||
|
|
||||||
|
maxDeltaT 1;
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSchemes;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
ddtSchemes
|
||||||
|
{
|
||||||
|
default Euler;
|
||||||
|
}
|
||||||
|
|
||||||
|
gradSchemes
|
||||||
|
{
|
||||||
|
default Gauss linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
divSchemes
|
||||||
|
{
|
||||||
|
"div\(phi,alpha.*\)" Gauss vanLeer;
|
||||||
|
"div\(phir,alpha.*,alpha.*\)" Gauss vanLeer;
|
||||||
|
|
||||||
|
"div\(phiAlpha.*,U.*\)" Gauss limitedLinearV 1;
|
||||||
|
div(Rc) Gauss linear;
|
||||||
|
"div\(phi.*,U.*\)" Gauss limitedLinearV 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
laplacianSchemes
|
||||||
|
{
|
||||||
|
default Gauss linear corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
interpolationSchemes
|
||||||
|
{
|
||||||
|
default linear;
|
||||||
|
}
|
||||||
|
|
||||||
|
snGradSchemes
|
||||||
|
{
|
||||||
|
default corrected;
|
||||||
|
}
|
||||||
|
|
||||||
|
fluxRequired
|
||||||
|
{
|
||||||
|
default no;
|
||||||
|
p;
|
||||||
|
pcorr;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,97 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "system";
|
||||||
|
object fvSolution;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
solvers
|
||||||
|
{
|
||||||
|
p
|
||||||
|
{
|
||||||
|
solver GAMG;
|
||||||
|
tolerance 1e-7;
|
||||||
|
relTol 0.01;
|
||||||
|
smoother GaussSeidel;
|
||||||
|
nPreSweeps 0;
|
||||||
|
nPostSweeps 2;
|
||||||
|
nFinestSweeps 2;
|
||||||
|
cacheAgglomeration on;
|
||||||
|
nCellsInCoarsestLevel 10;
|
||||||
|
agglomerator faceAreaPair;
|
||||||
|
mergeLevels 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
pFinal
|
||||||
|
{
|
||||||
|
solver PCG;
|
||||||
|
preconditioner
|
||||||
|
{
|
||||||
|
preconditioner GAMG;
|
||||||
|
tolerance 1e-7;
|
||||||
|
relTol 0;
|
||||||
|
nVcycles 2;
|
||||||
|
smoother GaussSeidel;
|
||||||
|
nPreSweeps 0;
|
||||||
|
nPostSweeps 2;
|
||||||
|
nFinestSweeps 2;
|
||||||
|
cacheAgglomeration on;
|
||||||
|
nCellsInCoarsestLevel 10;
|
||||||
|
agglomerator faceAreaPair;
|
||||||
|
mergeLevels 1;
|
||||||
|
}
|
||||||
|
tolerance 1e-7;
|
||||||
|
relTol 0;
|
||||||
|
maxIter 30;
|
||||||
|
}
|
||||||
|
|
||||||
|
pcorr
|
||||||
|
{
|
||||||
|
$pFinal;
|
||||||
|
tolerance 1e-5;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
U
|
||||||
|
{
|
||||||
|
solver smoothSolver;
|
||||||
|
smoother GaussSeidel;
|
||||||
|
tolerance 1e-8;
|
||||||
|
relTol 0.1;
|
||||||
|
nSweeps 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
UFinal
|
||||||
|
{
|
||||||
|
$U;
|
||||||
|
tolerance 1e-7;
|
||||||
|
relTol 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
PIMPLE
|
||||||
|
{
|
||||||
|
nOuterCorrectors 1;
|
||||||
|
nCorrectors 3;
|
||||||
|
nNonOrthogonalCorrectors 0;
|
||||||
|
nAlphaSubCycles 2;
|
||||||
|
pRefCell 0;
|
||||||
|
pRefValue 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
relaxationFactors
|
||||||
|
{
|
||||||
|
"U.*" 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
/*--------------------------------*- 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 dictionary;
|
||||||
|
location "system";
|
||||||
|
object topoSetDict;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
actions
|
||||||
|
(
|
||||||
|
{
|
||||||
|
name rotor;
|
||||||
|
type cellSet;
|
||||||
|
action new;
|
||||||
|
source zoneToCell;
|
||||||
|
sourceInfo
|
||||||
|
{
|
||||||
|
name rotor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -6030,7 +6030,8 @@ boundaryField
|
|||||||
}
|
}
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type zeroGradient;
|
type inletOutlet;
|
||||||
|
inletValue uniform 0;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
|
|||||||
46
tutorials/multiphase/twoPhaseEulerFoam/bed2/0/alpha1.org
Normal file
46
tutorials/multiphase/twoPhaseEulerFoam/bed2/0/alpha1.org
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
/*--------------------------------*- 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;
|
||||||
|
object alpha1;
|
||||||
|
}
|
||||||
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
dimensions [0 0 0 0 0 0 0];
|
||||||
|
|
||||||
|
internalField uniform 0;
|
||||||
|
|
||||||
|
boundaryField
|
||||||
|
{
|
||||||
|
inlet
|
||||||
|
{
|
||||||
|
type fixedValue;
|
||||||
|
value uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
outlet
|
||||||
|
{
|
||||||
|
type inletOutlet;
|
||||||
|
inletValue uniform 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
walls
|
||||||
|
{
|
||||||
|
type zeroGradient;
|
||||||
|
}
|
||||||
|
|
||||||
|
frontAndBackPlanes
|
||||||
|
{
|
||||||
|
type empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -16,7 +16,7 @@ FoamFile
|
|||||||
|
|
||||||
dimensions [1 -1 -2 0 0 0 0];
|
dimensions [1 -1 -2 0 0 0 0];
|
||||||
|
|
||||||
internalField uniform 1e5;
|
internalField uniform 0;
|
||||||
|
|
||||||
boundaryField
|
boundaryField
|
||||||
{
|
{
|
||||||
|
|||||||
@ -17,37 +17,16 @@ FoamFile
|
|||||||
|
|
||||||
phase1
|
phase1
|
||||||
{
|
{
|
||||||
rho0 0;
|
|
||||||
rho 0.88;
|
rho 0.88;
|
||||||
R 287;
|
|
||||||
Cp 1007;
|
|
||||||
nu 2.46e-05;
|
nu 2.46e-05;
|
||||||
d 4e-3;
|
d 3e-3;
|
||||||
|
|
||||||
kappa 2.63e-2;
|
|
||||||
diameterModel isothermal;
|
|
||||||
isothermalCoeffs
|
|
||||||
{
|
|
||||||
d0 3e-3;
|
|
||||||
p0 1e5;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
phase2
|
phase2
|
||||||
{
|
{
|
||||||
rho 733;
|
rho 733;
|
||||||
rho0 733;
|
|
||||||
R 1e10;
|
|
||||||
Cp 4195;
|
|
||||||
nu 2.73e-6;
|
nu 2.73e-6;
|
||||||
d 1e-4;
|
d 1e-4;
|
||||||
|
|
||||||
kappa 0.668;
|
|
||||||
diameterModel constant;
|
|
||||||
constantCoeffs
|
|
||||||
{
|
|
||||||
d 1e-4;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Virtual-mass ceofficient
|
// Virtual-mass ceofficient
|
||||||
|
|||||||
Reference in New Issue
Block a user