Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
commit
c86e6b7777
@ -62,8 +62,6 @@ Foam::threePhaseMixture::threePhaseMixture
|
||||
)
|
||||
),
|
||||
|
||||
transportModel(U, phi),
|
||||
|
||||
phase1Name_("phase1"),
|
||||
phase2Name_("phase2"),
|
||||
phase3Name_("phase3"),
|
||||
|
@ -383,8 +383,6 @@ Foam::multiphaseSystem::multiphaseSystem
|
||||
)
|
||||
),
|
||||
|
||||
transportModel(U, phi),
|
||||
|
||||
phases_(lookup("phases"), phaseModel::iNew(U.mesh())),
|
||||
|
||||
mesh_(U.mesh()),
|
||||
|
@ -77,7 +77,6 @@ Foam::multiphaseMixture::multiphaseMixture
|
||||
)
|
||||
),
|
||||
|
||||
transportModel(U, phi),
|
||||
phases_(lookup("phases"), phase::iNew(U, phi)),
|
||||
|
||||
mesh_(U.mesh()),
|
||||
|
@ -42,6 +42,7 @@ Description
|
||||
#include "treeDataTriSurface.H"
|
||||
#include "Random.H"
|
||||
#include "volumeType.H"
|
||||
#include "plane.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
@ -277,6 +278,31 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
|
||||
if (meshSubsetDict.found("plane"))
|
||||
{
|
||||
const dictionary& planeDict = meshSubsetDict.subDict("plane");
|
||||
|
||||
const plane pl(planeDict);
|
||||
const scalar distance(readScalar(planeDict.lookup("distance")));
|
||||
const scalar cosAngle(readScalar(planeDict.lookup("cosAngle")));
|
||||
|
||||
// Select all triangles that are close to the plane and
|
||||
// whose normal aligns with the plane as well.
|
||||
|
||||
forAll(surf1.faceCentres(), faceI)
|
||||
{
|
||||
const point& fc = surf1.faceCentres()[faceI];
|
||||
const point& nf = surf1.faceNormals()[faceI];
|
||||
|
||||
if (pl.distance(fc) < distance && mag(pl.normal() & nf) > cosAngle)
|
||||
{
|
||||
facesToSubset[faceI] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// pick up specified "faces"
|
||||
//
|
||||
|
@ -38,6 +38,27 @@ surface
|
||||
outside yes;
|
||||
}
|
||||
|
||||
// Select triangles on plane
|
||||
plane
|
||||
{
|
||||
planeType embeddedPoints;
|
||||
embeddedPointsDict
|
||||
{
|
||||
//point1 (-937.259845440205 160.865349115986 240.738791238078);
|
||||
//point2 (-934.767379895778 9.63875523747379 14.412359671298);
|
||||
//point3 (44.4744688899417 121.852927962709 182.352485273106);
|
||||
point1 (-957.895294591874 242.865936478961 162.286611511875);
|
||||
point2 (-961.43140327772 4.53895551562943 3.04159982093444);
|
||||
point3 (91.2414146173805 72.1504381996692 48.2181961945329);
|
||||
}
|
||||
|
||||
// Distance from plane
|
||||
distance 0.1;
|
||||
// Normal difference to plane
|
||||
cosAngle 0.99;
|
||||
}
|
||||
|
||||
|
||||
// Extend selection with edge neighbours
|
||||
addFaceNeighbours no;
|
||||
|
||||
|
@ -243,6 +243,21 @@ const Foam::fileName& Foam::IOobject::caseName() const
|
||||
}
|
||||
|
||||
|
||||
Foam::word Foam::IOobject::group() const
|
||||
{
|
||||
word::size_type i = name_.find_last_of('.');
|
||||
|
||||
if (i == word::npos || i == 0)
|
||||
{
|
||||
return word::null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return name_.substr(i+1, word::npos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const Foam::fileName& Foam::IOobject::rootPath() const
|
||||
{
|
||||
return time().rootPath();
|
||||
|
@ -154,6 +154,7 @@ private:
|
||||
//- IOobject state
|
||||
objectState objState_;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
// Protected Member Functions
|
||||
@ -187,6 +188,9 @@ public:
|
||||
word& name
|
||||
);
|
||||
|
||||
template<class Name>
|
||||
static inline word groupName(Name name, const word& group);
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
@ -313,6 +317,9 @@ public:
|
||||
|
||||
// Path components
|
||||
|
||||
//- Return group (extension part of name)
|
||||
word group() const;
|
||||
|
||||
const fileName& rootPath() const;
|
||||
|
||||
const fileName& caseName() const;
|
||||
|
@ -27,6 +27,20 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class Name>
|
||||
inline Foam::word Foam::IOobject::groupName(Name name, const word& group)
|
||||
{
|
||||
if (group != word::null)
|
||||
{
|
||||
return name + ('.' + group);
|
||||
}
|
||||
else
|
||||
{
|
||||
return name;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
template<class Stream>
|
||||
inline Stream& Foam::IOobject::writeBanner(Stream& os, bool noHint)
|
||||
{
|
||||
|
@ -38,6 +38,7 @@ Description
|
||||
#define geometricOneField_H
|
||||
|
||||
#include "oneFieldField.H"
|
||||
#include "dimensionSet.H"
|
||||
#include "scalar.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -65,6 +66,8 @@ public:
|
||||
|
||||
// Member Operators
|
||||
|
||||
inline const dimensionSet& dimensions() const;
|
||||
|
||||
inline scalar operator[](const label) const;
|
||||
|
||||
inline oneField field() const;
|
||||
|
@ -27,6 +27,11 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::dimensionSet& Foam::geometricOneField::dimensions() const
|
||||
{
|
||||
return dimless;
|
||||
}
|
||||
|
||||
inline Foam::scalar Foam::geometricOneField::operator[](const label) const
|
||||
{
|
||||
return scalar(1);
|
||||
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -38,6 +38,7 @@ Description
|
||||
#define geometricZeroField_H
|
||||
|
||||
#include "zeroFieldField.H"
|
||||
#include "dimensionSet.H"
|
||||
#include "scalar.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -65,6 +66,8 @@ public:
|
||||
|
||||
// Member Operators
|
||||
|
||||
inline const dimensionSet& dimensions() const;
|
||||
|
||||
inline scalar operator[](const label) const;
|
||||
|
||||
inline zeroField field() const;
|
||||
|
@ -27,6 +27,11 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
inline const Foam::dimensionSet& Foam::geometricZeroField::dimensions() const
|
||||
{
|
||||
return dimless;
|
||||
}
|
||||
|
||||
inline Foam::scalar Foam::geometricZeroField::operator[](const label) const
|
||||
{
|
||||
return scalar(0);
|
||||
|
@ -45,6 +45,23 @@ namespace Foam
|
||||
cyclicGAMGInterface,
|
||||
Istream
|
||||
);
|
||||
|
||||
|
||||
// Add under name cyclicSlip
|
||||
addNamedToRunTimeSelectionTable
|
||||
(
|
||||
GAMGInterface,
|
||||
cyclicGAMGInterface,
|
||||
lduInterface,
|
||||
cyclicSlip
|
||||
);
|
||||
addNamedToRunTimeSelectionTable
|
||||
(
|
||||
GAMGInterface,
|
||||
cyclicGAMGInterface,
|
||||
Istream,
|
||||
cyclicSlip
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -61,15 +78,7 @@ Foam::cyclicGAMGInterface::cyclicGAMGInterface
|
||||
const label coarseComm
|
||||
)
|
||||
:
|
||||
GAMGInterface
|
||||
(
|
||||
index,
|
||||
coarseInterfaces
|
||||
// fineInterface,
|
||||
// localRestrictAddressing,
|
||||
// neighbourRestrictAddressing
|
||||
),
|
||||
//fineCyclicInterface_(refCast<const cyclicLduInterface>(fineInterface))
|
||||
GAMGInterface(index, coarseInterfaces),
|
||||
neighbPatchID_
|
||||
(
|
||||
refCast<const cyclicLduInterface>(fineInterface).neighbPatchID()
|
||||
@ -169,11 +178,7 @@ Foam::tmp<Foam::labelField> Foam::cyclicGAMGInterface::internalFieldTransfer
|
||||
const labelUList& iF
|
||||
) const
|
||||
{
|
||||
const cyclicGAMGInterface& nbr =
|
||||
//dynamic_cast<const cyclicGAMGInterface&>
|
||||
//(
|
||||
neighbPatch();
|
||||
//);
|
||||
const cyclicGAMGInterface& nbr = neighbPatch();
|
||||
const labelUList& nbrFaceCells = nbr.faceCells();
|
||||
|
||||
tmp<labelField> tpnf(new labelField(size()));
|
||||
|
@ -54,10 +54,6 @@ class cyclicGAMGInterface
|
||||
{
|
||||
// Private data
|
||||
|
||||
// //- Reference tor the cyclicLduInterface from which this is
|
||||
// // agglomerated
|
||||
// const cyclicLduInterface& fineCyclicInterface_;
|
||||
|
||||
//- Neigbour patch number
|
||||
label neighbPatchID_;
|
||||
|
||||
@ -131,13 +127,11 @@ public:
|
||||
//- Return neigbour processor number
|
||||
virtual label neighbPatchID() const
|
||||
{
|
||||
//return fineCyclicInterface_.neighbPatchID();
|
||||
return neighbPatchID_;
|
||||
}
|
||||
|
||||
virtual bool owner() const
|
||||
{
|
||||
//return fineCyclicInterface_.owner();
|
||||
return owner_;
|
||||
}
|
||||
|
||||
@ -152,14 +146,12 @@ public:
|
||||
//- Return face transformation tensor
|
||||
virtual const tensorField& forwardT() const
|
||||
{
|
||||
//return fineCyclicInterface_.forwardT();
|
||||
return forwardT_;
|
||||
}
|
||||
|
||||
//- Return neighbour-cell transformation tensor
|
||||
virtual const tensorField& reverseT() const
|
||||
{
|
||||
//return fineCyclicInterface_.reverseT();
|
||||
return reverseT_;
|
||||
}
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -73,8 +73,18 @@ rotatingWallVelocityFvPatchVectorField
|
||||
axis_(dict.lookup("axis")),
|
||||
omega_(DataEntry<scalar>::New("omega", dict))
|
||||
{
|
||||
// Evaluate the wall velocity
|
||||
updateCoeffs();
|
||||
if (dict.found("value"))
|
||||
{
|
||||
fvPatchField<vector>::operator=
|
||||
(
|
||||
vectorField("value", dict, p.size())
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Evaluate the wall velocity
|
||||
updateCoeffs();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -115,7 +115,7 @@ Foam::fv::pressureGradientExplicitSource::pressureGradientExplicitSource
|
||||
// Read the initial pressure gradient from file if it exists
|
||||
IFstream propsFile
|
||||
(
|
||||
mesh_.time().timeName()/"uniform"/(name_ + "Properties")
|
||||
mesh_.time().timePath()/"uniform"/(name_ + "Properties")
|
||||
);
|
||||
|
||||
if (propsFile.good())
|
||||
|
@ -182,7 +182,7 @@ public:
|
||||
const word& phaseName
|
||||
)
|
||||
{
|
||||
return name + phaseName;
|
||||
return IOobject::groupName(name, phaseName);
|
||||
}
|
||||
|
||||
word phasePropertyName(const word& name) const
|
||||
|
@ -69,7 +69,6 @@ Foam::incompressibleTwoPhaseMixture::incompressibleTwoPhaseMixture
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
),
|
||||
transportModel(U, phi),
|
||||
twoPhaseMixture(U.mesh(), *this, alpha1Name, alpha2Name),
|
||||
|
||||
nuModel1_
|
||||
|
@ -47,7 +47,6 @@ Foam::singlePhaseTransportModel::singlePhaseTransportModel
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
),
|
||||
transportModel(U, phi),
|
||||
viscosityModelPtr_(viscosityModel::New("nu", *this, U, phi))
|
||||
{}
|
||||
|
||||
|
@ -36,10 +36,7 @@ namespace Foam
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::transportModel::transportModel
|
||||
(
|
||||
const volVectorField&,
|
||||
const surfaceScalarField&
|
||||
)
|
||||
()
|
||||
{}
|
||||
|
||||
|
||||
|
@ -70,10 +70,7 @@ public:
|
||||
|
||||
//- Construct from components
|
||||
transportModel
|
||||
(
|
||||
const volVectorField& U,
|
||||
const surfaceScalarField& phi
|
||||
);\
|
||||
();
|
||||
|
||||
|
||||
//- Destructor
|
||||
|
64
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/U
Normal file
64
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/U
Normal file
@ -0,0 +1,64 @@
|
||||
/*--------------------------------*- 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 binary;
|
||||
class volVectorField;
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform (0 0 0.5);
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type pressureInletOutletVelocity;
|
||||
phi phi;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"(shaftRotating|stirrer)"
|
||||
{
|
||||
type movingWallVelocity;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
shaft
|
||||
{
|
||||
type rotatingWallVelocity;
|
||||
origin (0 0 0);
|
||||
axis (0 0 1);
|
||||
omega -5;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,47 @@
|
||||
/*--------------------------------*- 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
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type zeroGradient;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value uniform 1;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 0;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,50 @@
|
||||
/*--------------------------------*- 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 epsilon;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -3 0 0 0 0];
|
||||
|
||||
internalField uniform 7e-3;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type epsilonWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
49
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/k
Normal file
49
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/0.org/k
Normal file
@ -0,0 +1,49 @@
|
||||
/*--------------------------------*- 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 k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 0.01;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type kqRWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
@ -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;
|
||||
object nut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [0 2 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type nutkWallFunction;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue $internalField;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
@ -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;
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -2 0 0 0 0];
|
||||
|
||||
internalField uniform 1.25e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
".*"
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
phi phiAbs;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
type fixedValue;
|
||||
value $internalField;
|
||||
}
|
||||
|
||||
"AMI.*"
|
||||
{
|
||||
type cyclicAMI;
|
||||
value $internalField;
|
||||
}
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
13
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/Allclean
Executable file
13
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/Allclean
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial clean functions
|
||||
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||
|
||||
cleanCase
|
||||
|
||||
\rm -rf 0
|
||||
\rm -rf constant/extendedFeatureEdgeMesh/
|
||||
\rm -f constant/triSurface/*.eMesh*
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
37
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/Allrun
Executable file
37
tutorials/multiphase/interDyMFoam/ras/mixerVesselAMI/Allrun
Executable file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
\rm -rf 0
|
||||
|
||||
# Meshing
|
||||
runApplication blockMesh
|
||||
runApplication surfaceFeatureExtract
|
||||
runApplication snappyHexMesh -overwrite
|
||||
runApplication createBaffles -overwrite
|
||||
runApplication mergeOrSplitBaffles -split -overwrite
|
||||
|
||||
# Get rid of zero faced patches
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
# Copy fields after meshing to avoind the generation of unnecessary patch fields
|
||||
\cp -r 0.org 0
|
||||
|
||||
# Initialize alpha
|
||||
runApplication setFields
|
||||
|
||||
# Decompose
|
||||
runApplication decomposePar -force
|
||||
|
||||
# Run
|
||||
runParallel $application 6
|
||||
|
||||
# Reconstruct
|
||||
runApplication reconstructPar -noFunctionObjects
|
||||
|
||||
# ----------------------------------------------------------------- end-of-file
|
@ -0,0 +1,25 @@
|
||||
/*--------------------------------*- 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 RASProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
RASModel kEpsilon;
|
||||
|
||||
turbulence on;
|
||||
|
||||
printCoeffs off;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,35 @@
|
||||
/*--------------------------------*- 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 dynamicMeshDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dynamicFvMesh solidBodyMotionFvMesh;
|
||||
|
||||
motionSolverLibs ( "libfvMotionSolvers.so" );
|
||||
|
||||
solidBodyMotionFvMeshCoeffs
|
||||
{
|
||||
cellZone rotating;
|
||||
|
||||
solidBodyMotionFunction rotatingMotion;
|
||||
rotatingMotionCoeffs
|
||||
{
|
||||
CofG (0 0 0);
|
||||
radialVelocity (0 0 -288); // deg/s -> 5 rad/s -> 48 rpm
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -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 -9.81 );
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,57 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
convertToMeters 1;
|
||||
|
||||
vertices
|
||||
(
|
||||
( -0.3 -0.3 -0.15)
|
||||
( 0.3 -0.3 -0.15)
|
||||
( 0.3 0.3 -0.15)
|
||||
( -0.3 0.3 -0.15)
|
||||
( -0.3 -0.3 1.4)
|
||||
( 0.3 -0.3 1.4)
|
||||
( 0.3 0.3 1.4)
|
||||
( -0.3 0.3 1.4)
|
||||
);
|
||||
|
||||
blocks
|
||||
(
|
||||
hex (0 1 2 3 4 5 6 7) (50 50 100) simpleGrading (1 1 1)
|
||||
);
|
||||
|
||||
edges
|
||||
(
|
||||
);
|
||||
|
||||
boundary
|
||||
(
|
||||
allBoundary
|
||||
{
|
||||
type patch;
|
||||
faces
|
||||
(
|
||||
(3 7 6 2)
|
||||
(0 4 7 3)
|
||||
(2 6 5 1)
|
||||
(1 5 4 0)
|
||||
(0 3 2 1)
|
||||
(4 5 6 7)
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,96 @@
|
||||
/*--------------------------------*- 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 binary;
|
||||
class polyBoundaryMesh;
|
||||
location "constant/polyMesh";
|
||||
object boundary;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
10
|
||||
(
|
||||
vessel
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 46033;
|
||||
startFace 2418792;
|
||||
}
|
||||
gasInlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 820;
|
||||
startFace 2464825;
|
||||
}
|
||||
outlet
|
||||
{
|
||||
type patch;
|
||||
nFaces 93;
|
||||
startFace 2465645;
|
||||
}
|
||||
shaftRotating
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 2230;
|
||||
startFace 2465738;
|
||||
}
|
||||
shaft
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 648;
|
||||
startFace 2467968;
|
||||
}
|
||||
sparger
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 1472;
|
||||
startFace 2468616;
|
||||
}
|
||||
stirrer
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 5981;
|
||||
startFace 2470088;
|
||||
}
|
||||
baffles
|
||||
{
|
||||
type wall;
|
||||
inGroups 1(meshedWalls);
|
||||
nFaces 2668;
|
||||
startFace 2476069;
|
||||
}
|
||||
AMI1
|
||||
{
|
||||
type cyclicAMI;
|
||||
inGroups 1(cyclicAMI);
|
||||
nFaces 42566;
|
||||
startFace 2478737;
|
||||
matchTolerance 0.0001;
|
||||
transform noOrdering;
|
||||
neighbourPatch AMI2;
|
||||
}
|
||||
AMI2
|
||||
{
|
||||
type cyclicAMI;
|
||||
inGroups 1(cyclicAMI);
|
||||
nFaces 42566;
|
||||
startFace 2521303;
|
||||
matchTolerance 0.0001;
|
||||
transform noOrdering;
|
||||
neighbourPatch AMI1;
|
||||
}
|
||||
)
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,41 @@
|
||||
/*--------------------------------*- 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;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
twoPhase
|
||||
{
|
||||
transportModel twoPhase;
|
||||
phase1 phase1;
|
||||
phase2 phase2;
|
||||
}
|
||||
|
||||
phase1
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 300;
|
||||
}
|
||||
|
||||
phase2
|
||||
{
|
||||
transportModel Newtonian;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-6;
|
||||
rho rho [ 1 -3 0 0 0 0 0 ] 1027;
|
||||
}
|
||||
|
||||
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.07;
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,114 @@
|
||||
solid baffles
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.025
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.155 -0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.155 -0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.025
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.172678 -0.172678 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
vertex 0.172678 -0.172678 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.4
|
||||
vertex 0.137322 -0.137322 0.775
|
||||
vertex 0.155 -0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.137322 -0.137322 0.775
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.155 -0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.4
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex 0.155 -0.155 0.775
|
||||
vertex 0.172678 -0.172678 0.775
|
||||
vertex 0.172678 -0.172678 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.025
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.155 0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.155 0.155 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.025
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.137322 0.137322 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.137322 0.137322 0.4
|
||||
vertex -0.137322 0.137322 0.025
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.4
|
||||
vertex -0.172678 0.172678 0.775
|
||||
vertex -0.155 0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.172678 0.172678 0.775
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.155 0.155 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 -0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.4
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.137322 0.137322 0.4
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0.707107 0.707107 0
|
||||
outer loop
|
||||
vertex -0.155 0.155 0.775
|
||||
vertex -0.137322 0.137322 0.775
|
||||
vertex -0.137322 0.137322 0.4
|
||||
endloop
|
||||
endfacet
|
||||
endsolid baffles
|
@ -0,0 +1,254 @@
|
||||
solid gasInlet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0984808 0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex 0.1 0 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0939693 0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0984808 0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0866025 0.05 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0939693 0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0766044 0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0866025 0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0642788 0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0766044 0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.05 0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0642788 0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.034202 0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex 0.05 0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0173648 0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex 0.034202 0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 6.12323e-18 0.1 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0173648 0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0173648 0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex 6.12323e-18 0.1 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.034202 0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0173648 0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.05 0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex -0.034202 0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0642788 0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex -0.05 0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0766044 0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0642788 0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0866025 0.05 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0766044 0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0939693 0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0866025 0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.0984808 0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0939693 0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.1 1.22465e-17 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0984808 0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0984808 -0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex -0.1 1.22465e-17 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0939693 -0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0984808 -0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0866025 -0.05 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0939693 -0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0766044 -0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0866025 -0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0642788 -0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0766044 -0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.05 -0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0642788 -0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.034202 -0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex -0.05 -0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -0.0173648 -0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex -0.034202 -0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -0 1
|
||||
outer loop
|
||||
vertex -1.83697e-17 -0.1 0
|
||||
vertex 0 0 0
|
||||
vertex -0.0173648 -0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0173648 -0.0984808 0
|
||||
vertex 0 0 0
|
||||
vertex -1.83697e-17 -0.1 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.034202 -0.0939693 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0173648 -0.0984808 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.05 -0.0866025 0
|
||||
vertex 0 0 0
|
||||
vertex 0.034202 -0.0939693 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0642788 -0.0766044 0
|
||||
vertex 0 0 0
|
||||
vertex 0.05 -0.0866025 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0766044 -0.0642788 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0642788 -0.0766044 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0866025 -0.05 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0766044 -0.0642788 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0939693 -0.034202 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0866025 -0.05 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.0984808 -0.0173648 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0939693 -0.034202 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 0.1 -2.44929e-17 0
|
||||
vertex 0 0 0
|
||||
vertex 0.0984808 -0.0173648 0
|
||||
endloop
|
||||
endfacet
|
||||
endsolid gasInlet
|
@ -0,0 +1,240 @@
|
||||
solid outlet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.13 -0.1 1.3
|
||||
vertex -0.129544 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.125981 -0.115 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.128191 -0.110261 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.128191 -0.110261 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.129544 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.122981 -0.119284 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.125981 -0.115 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.119284 -0.122981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.122981 -0.119284 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.115 -0.125981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.119284 -0.122981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.110261 -0.128191 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.115 -0.125981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.105209 -0.129544 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.110261 -0.128191 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.1 -0.13 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.105209 -0.129544 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0947905 -0.129544 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.1 -0.13 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0897394 -0.128191 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0947905 -0.129544 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.085 -0.125981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0897394 -0.128191 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0807164 -0.122981 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.085 -0.125981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0770187 -0.119284 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0807164 -0.122981 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0740192 -0.115 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0770187 -0.119284 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0718092 -0.110261 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0740192 -0.115 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0704558 -0.105209 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0718092 -0.110261 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.07 -0.1 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0704558 -0.105209 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0704558 -0.0947905 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.07 -0.1 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0718092 -0.0897394 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0704558 -0.0947905 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0740192 -0.085 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0718092 -0.0897394 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0770187 -0.0807164 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0740192 -0.085 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0807164 -0.0770187 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0770187 -0.0807164 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.085 -0.0740192 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0807164 -0.0770187 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0897394 -0.0718092 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.085 -0.0740192 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.0947905 -0.0704558 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0897394 -0.0718092 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex -0.1 -0.07 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.0947905 -0.0704558 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.105209 -0.0704558 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.1 -0.07 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.110261 -0.0718092 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.105209 -0.0704558 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.115 -0.0740192 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.110261 -0.0718092 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.119284 -0.0770187 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.115 -0.0740192 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.122981 -0.0807164 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.119284 -0.0770187 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.125981 -0.085 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.122981 -0.0807164 1.3
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex -0.128191 -0.0897394 1.3
|
||||
vertex -0.129544 -0.0947905 1.3
|
||||
vertex -0.125981 -0.085 1.3
|
||||
endloop
|
||||
endfacet
|
||||
endsolid ascii
|
@ -0,0 +1,40 @@
|
||||
|
||||
36
|
||||
(
|
||||
1069
|
||||
1071
|
||||
1074
|
||||
1253
|
||||
1256
|
||||
1259
|
||||
1262
|
||||
1264
|
||||
1266
|
||||
1269
|
||||
1271
|
||||
1273
|
||||
1276
|
||||
1463
|
||||
1466
|
||||
1468
|
||||
1471
|
||||
1474
|
||||
1477
|
||||
1480
|
||||
1482
|
||||
1485
|
||||
1487
|
||||
1490
|
||||
1492
|
||||
1494
|
||||
1497
|
||||
1500
|
||||
1503
|
||||
1506
|
||||
1508
|
||||
1512
|
||||
1514
|
||||
1517
|
||||
1519
|
||||
1522
|
||||
)
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,20 @@
|
||||
/*--------------------------------*- 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 turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
simulationType RASModel;
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,56 @@
|
||||
/*--------------------------------*- 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 interDyMFoam;
|
||||
|
||||
startFrom startTime;
|
||||
|
||||
startTime 0;
|
||||
|
||||
stopAt endTime;
|
||||
|
||||
endTime 5.0;
|
||||
|
||||
deltaT 1e-4;
|
||||
|
||||
writeControl adjustableRunTime;
|
||||
|
||||
writeInterval 0.025;
|
||||
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
writePrecision 6;
|
||||
|
||||
writeCompression uncompressed;
|
||||
|
||||
timeFormat general;
|
||||
|
||||
timePrecision 10;
|
||||
|
||||
runTimeModifiable yes;
|
||||
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 1.5;
|
||||
|
||||
maxAlphaCo 1;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,58 @@
|
||||
/*--------------------------------*- 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 createBafflesDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Whether to convert internal faces only (so leave boundary faces intact).
|
||||
// This is only relevant if your face selection type can pick up boundary
|
||||
// faces.
|
||||
internalFacesOnly true;
|
||||
|
||||
|
||||
// Baffles to create.
|
||||
baffles
|
||||
{
|
||||
rotating
|
||||
{
|
||||
//- Use predefined faceZone to select faces and orientation.
|
||||
type faceZone;
|
||||
zoneName rotating;
|
||||
|
||||
patches
|
||||
{
|
||||
master
|
||||
{
|
||||
//- Master side patch
|
||||
name AMI1;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI2;
|
||||
transform noOrdering;
|
||||
}
|
||||
|
||||
slave
|
||||
{
|
||||
//- Slave side patch
|
||||
name AMI2;
|
||||
type cyclicAMI;
|
||||
matchTolerance 0.0001;
|
||||
neighbourPatch AMI1;
|
||||
transform noOrdering;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,27 @@
|
||||
/*--------------------------------*- 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 createPatchDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Do a synchronisation of coupled points after creation of any patches.
|
||||
// Note: this does not work with points that are on multiple coupled patches
|
||||
// with transformations (i.e. cyclics).
|
||||
pointSync false;
|
||||
|
||||
// Patches to create.
|
||||
patches
|
||||
(
|
||||
);
|
||||
|
||||
// ************************************************************************* //
|
@ -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 dictionary;
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 6;
|
||||
|
||||
method scotch;
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,68 @@
|
||||
/*--------------------------------*- 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;
|
||||
grad(U) cellLimited Gauss linear 1;
|
||||
}
|
||||
|
||||
divSchemes
|
||||
{
|
||||
div(rho*phi,U) Gauss linearUpwind grad(U);
|
||||
div(phi,alpha) Gauss vanLeer;
|
||||
div(phirb,alpha) Gauss interfaceCompression 1;
|
||||
div(phid1,p_rgh) Gauss upwind;
|
||||
div(phid2,p_rgh) Gauss upwind;
|
||||
div(rho*phi,T) Gauss linearUpwind unlimited;
|
||||
div(rho*phi,K) Gauss upwind;
|
||||
div(phi,k) Gauss upwind;
|
||||
div(phi,epsilon) Gauss upwind;
|
||||
div((muEff*dev2(T(grad(U))))) Gauss linear;
|
||||
|
||||
div((muEff*dev(T(grad(U))))) Gauss linear;
|
||||
}
|
||||
|
||||
laplacianSchemes
|
||||
{
|
||||
default Gauss linear limited 0.333;
|
||||
}
|
||||
|
||||
interpolationSchemes
|
||||
{
|
||||
default linear;
|
||||
}
|
||||
|
||||
snGradSchemes
|
||||
{
|
||||
default limited 0.333;
|
||||
}
|
||||
|
||||
fluxRequired
|
||||
{
|
||||
default no;
|
||||
p_rgh;
|
||||
pcorr;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,105 @@
|
||||
/*--------------------------------*- 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
|
||||
{
|
||||
alpha1
|
||||
{
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
}
|
||||
|
||||
p_rgh
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-6;
|
||||
relTol 0.02;
|
||||
smoother GaussSeidel;
|
||||
cacheAgglomeration true;
|
||||
nCellsInCoarsestLevel 10;
|
||||
agglomerator faceAreaPair;
|
||||
nPreSweeps 0;
|
||||
nPostSweeps 2;
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pcorr
|
||||
{
|
||||
$p_rgh;
|
||||
tolerance 0.1;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
p_rghFinal
|
||||
{
|
||||
$p_rgh;
|
||||
relTol 0;
|
||||
}
|
||||
|
||||
".*(rho|rhoFinal)"
|
||||
{
|
||||
solver diagonal;
|
||||
}
|
||||
|
||||
"U.*"
|
||||
{
|
||||
solver smoothSolver;
|
||||
smoother GaussSeidel;
|
||||
tolerance 1e-6;
|
||||
relTol 0;
|
||||
nSweeps 1;
|
||||
}
|
||||
|
||||
"(T|k|epsilon).*"
|
||||
{
|
||||
solver PBiCG;
|
||||
preconditioner DILU;
|
||||
tolerance 1e-6;
|
||||
relTol 0;
|
||||
}
|
||||
}
|
||||
|
||||
PIMPLE
|
||||
{
|
||||
momentumPredictor yes;
|
||||
correctPhi yes;
|
||||
transSonic no;
|
||||
nOuterCorrectors 1;
|
||||
nCorrectors 3;
|
||||
nNonOrthogonalCorrectors 0;
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 2;
|
||||
cAlpha 1;
|
||||
}
|
||||
|
||||
relaxationFactors
|
||||
{
|
||||
fields
|
||||
{
|
||||
}
|
||||
equations
|
||||
{
|
||||
"U.*" 1;
|
||||
"k.*" 1;
|
||||
"epsilon.*" 1;
|
||||
"T.*" 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,36 @@
|
||||
/*--------------------------------*- 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 setFieldsDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
defaultFieldValues
|
||||
(
|
||||
volScalarFieldValue alpha1 1
|
||||
);
|
||||
|
||||
regions
|
||||
(
|
||||
boxToCell
|
||||
{
|
||||
box (-4 -4 -1) (4 4 0.74);
|
||||
fieldValues
|
||||
(
|
||||
volScalarFieldValue alpha1 0
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,571 @@
|
||||
/*--------------------------------*- 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 true;
|
||||
snap true;
|
||||
addLayers false;
|
||||
|
||||
geometry
|
||||
{
|
||||
vessel.stl
|
||||
{
|
||||
name vessel;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
vessel
|
||||
{
|
||||
name vessel;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
gasInlet.stl
|
||||
{
|
||||
name gasInlet;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
gasInlet
|
||||
{
|
||||
name gasInlet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
outlet.stl
|
||||
{
|
||||
name outlet;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
outlet
|
||||
{
|
||||
name outlet;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shaftRotating.stl
|
||||
{
|
||||
name shaftRotating;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
shaftRotating
|
||||
{
|
||||
name shaftRotating;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
shaft.stl
|
||||
{
|
||||
name shaft;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
shaft
|
||||
{
|
||||
name shaft;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sparger.stl
|
||||
{
|
||||
name sparger;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
sparger
|
||||
{
|
||||
name sparger;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stirrer.stl
|
||||
{
|
||||
name stirrer;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
stirrer
|
||||
{
|
||||
name stirrer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
baffles.stl
|
||||
{
|
||||
name baffles;
|
||||
type triSurfaceMesh;
|
||||
regions
|
||||
{
|
||||
baffles
|
||||
{
|
||||
name baffles;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rotating.stl
|
||||
{
|
||||
name rotating;
|
||||
type triSurfaceMesh;
|
||||
}
|
||||
};
|
||||
|
||||
// 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 3000000;
|
||||
|
||||
// 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 0;
|
||||
|
||||
// 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 1;
|
||||
|
||||
|
||||
// Explicit feature edge refinement
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
// Specifies a level for any cell intersected by explicitly provided
|
||||
// edges.
|
||||
// This is a featureEdgeMesh, read from constant/triSurface for now.
|
||||
// Specify 'levels' in the same way as the 'distance' mode in the
|
||||
// refinementRegions (see below). The old specification
|
||||
// level 2;
|
||||
// is equivalent to
|
||||
// levels ((0 2));
|
||||
|
||||
features
|
||||
(
|
||||
{
|
||||
file "gasInlet.eMesh";
|
||||
levels ((1 1));
|
||||
}
|
||||
{
|
||||
file "vessel.eMesh";
|
||||
levels ((1 1));
|
||||
}
|
||||
{
|
||||
file "outlet.eMesh";
|
||||
levels ((1 1));
|
||||
}
|
||||
|
||||
);
|
||||
|
||||
// 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
|
||||
{
|
||||
vessel
|
||||
{
|
||||
level (1 2);
|
||||
patchInfo
|
||||
{
|
||||
type wall;
|
||||
inGroups (meshedWalls);
|
||||
}
|
||||
}
|
||||
|
||||
gasInlet
|
||||
{
|
||||
level (0 1);
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
}
|
||||
}
|
||||
|
||||
outlet
|
||||
{
|
||||
level (0 1);
|
||||
patchInfo
|
||||
{
|
||||
type patch;
|
||||
}
|
||||
}
|
||||
|
||||
shaftRotating
|
||||
{
|
||||
level (1 1);
|
||||
patchInfo
|
||||
{
|
||||
${...vessel.patchInfo}
|
||||
}
|
||||
}
|
||||
|
||||
shaft
|
||||
{
|
||||
level (1 1);
|
||||
patchInfo
|
||||
{
|
||||
${...vessel.patchInfo}
|
||||
}
|
||||
}
|
||||
|
||||
sparger
|
||||
{
|
||||
level (1 1);
|
||||
patchInfo
|
||||
{
|
||||
${...vessel.patchInfo}
|
||||
}
|
||||
}
|
||||
|
||||
stirrer
|
||||
{
|
||||
level (1 1);
|
||||
patchInfo
|
||||
{
|
||||
${...vessel.patchInfo}
|
||||
}
|
||||
}
|
||||
|
||||
baffles
|
||||
{
|
||||
level (1 1);
|
||||
patchInfo
|
||||
{
|
||||
${...vessel.patchInfo}
|
||||
}
|
||||
}
|
||||
|
||||
rotating
|
||||
{
|
||||
level (1 2);
|
||||
cellZone rotating;
|
||||
faceZone rotating;
|
||||
cellZoneInside insidePoint;
|
||||
insidePoint (0 0.1 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
// Feature angle:
|
||||
// - used if min and max refinement level of a surface differ
|
||||
// - used if feature snapping (see snapControls below) is used
|
||||
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
|
||||
// increasing 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
|
||||
{
|
||||
}
|
||||
|
||||
// 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 (0 0.1 1.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;
|
||||
|
||||
// Maximum relative distance for points to be attracted by surface.
|
||||
// True distance is this factor times local maximum edge length.
|
||||
// Note: changed(corrected) w.r.t 17x! (17x used 2* tolerance)
|
||||
tolerance 3.0;
|
||||
|
||||
// Number of mesh displacement relaxation iterations.
|
||||
nSolveIter 30;
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 5;
|
||||
|
||||
// Feature snapping
|
||||
|
||||
// Number of feature edge snapping iterations.
|
||||
// Leave out altogether to disable.
|
||||
nFeatureSnapIter 15;
|
||||
|
||||
// Detect (geometric only) features by sampling the surface
|
||||
// (default=false).
|
||||
implicitFeatureSnap false;
|
||||
|
||||
// Use castellatedMeshControls::features (default = true)
|
||||
explicitFeatureSnap true;
|
||||
|
||||
// Detect features between multiple surfaces
|
||||
// (only for explicitFeatureSnap, default = false)
|
||||
multiRegionFeatureSnap false;
|
||||
}
|
||||
|
||||
// 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 true;
|
||||
|
||||
// Layer thickness specification. This can be specified in one of four ways
|
||||
// - expansionRatio and finalLayerThickness (cell nearest internal mesh)
|
||||
// - expansionRatio and firstLayerThickness (cell on surface)
|
||||
// - overall thickness and firstLayerThickness
|
||||
// - overall thickness and finalLayerThickness
|
||||
|
||||
// Expansion factor for layer mesh
|
||||
expansionRatio 1.0;
|
||||
|
||||
// Wanted thickness of the layer furthest away from the wall.
|
||||
// If relativeSizes this is relative to undistorted size of cell
|
||||
// outside layer.
|
||||
finalLayerThickness 0.3;
|
||||
|
||||
// Wanted thickness of the layer next to the wall.
|
||||
// If relativeSizes this is relative to undistorted size of cell
|
||||
// outside layer.
|
||||
//firstLayerThickness 0.3;
|
||||
|
||||
// Wanted overall thickness of layers.
|
||||
// If relativeSizes this is relative to undistorted size of cell
|
||||
// outside layer.
|
||||
//thickness 0.5
|
||||
|
||||
|
||||
// Minimum overall thickness of total layers. If for any reason layer
|
||||
// cannot be above minThickness do not add layer.
|
||||
// If relativeSizes this is relative to undistorted size of cell
|
||||
// outside layer..
|
||||
minThickness 0.25;
|
||||
|
||||
|
||||
// Per final patch (so not geometry!) the layer information
|
||||
// Note: This behaviour changed after 21x. Any non-mentioned patches
|
||||
// now slide unless:
|
||||
// - nSurfaceLayers is explicitly mentioned to be 0.
|
||||
// - angle to nearest surface < slipFeatureAngle (see below)
|
||||
layers
|
||||
{
|
||||
vessel
|
||||
{
|
||||
nSurfaceLayers 1;
|
||||
expansionRatio 1.3;
|
||||
finalLayerThickness 0.5;
|
||||
minThickness 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
// are perpendicular
|
||||
featureAngle 60;
|
||||
|
||||
// At non-patched sides allow mesh to slip if extrusion direction makes
|
||||
// angle larger than slipFeatureAngle.
|
||||
slipFeatureAngle 30;
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 10;
|
||||
|
||||
// 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 0.5;
|
||||
|
||||
// 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;
|
||||
|
||||
// Max number of iterations after which relaxed meshQuality controls
|
||||
// get used. Up to nRelaxIter it uses the settings in meshQualityControls,
|
||||
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
|
||||
nRelaxedIter 20;
|
||||
|
||||
// Additional reporting: if there are just a few faces where there
|
||||
// are mesh errors (after adding the layers) print their face centres.
|
||||
// This helps in tracking down problematic mesh areas.
|
||||
//additionalReporting true;
|
||||
}
|
||||
|
||||
// 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 1e-9;
|
||||
|
||||
// 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.05;
|
||||
|
||||
// minimum normalised cell determinant
|
||||
// 1 = hex, <= 0 = folded or flattened illegal cell
|
||||
minDeterminant 0.001;
|
||||
|
||||
// minFaceWeight (0 -> 0.5)
|
||||
minFaceWeight 0.05;
|
||||
|
||||
// minVolRatio (0 -> 1)
|
||||
minVolRatio 0.01;
|
||||
|
||||
// must be >0 for Fluent compatibility
|
||||
minTriangleTwist -1;
|
||||
|
||||
//- if >0 : preserve single cells with all points on the surface if the
|
||||
// resulting volume after snapping (by approximation) is larger than
|
||||
// minVolCollapseRatio times old volume (i.e. not collapsed to flat cell).
|
||||
// If <0 : delete always.
|
||||
//minVolCollapseRatio 0.5;
|
||||
|
||||
// Advanced
|
||||
|
||||
// Number of error distribution iterations
|
||||
nSmoothScale 4;
|
||||
// amount to scale back displacement at error points
|
||||
errorReduction 0.75;
|
||||
|
||||
// Optional : some meshing phases allow usage of relaxed rules.
|
||||
// See e.g. addLayersControls::nRelaxedIter.
|
||||
relaxed
|
||||
{
|
||||
//- Maximum non-orthogonality allowed. Set to 180 to disable.
|
||||
maxNonOrtho 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;
|
||||
|
||||
// ************************************************************************* //
|
@ -0,0 +1,113 @@
|
||||
/*--------------------------------*- 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 surfaceFeatureExtractDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
vessel.stl
|
||||
{
|
||||
// How to obtain raw features (extractFromFile || extractFromSurface)
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
// Mark edges whose adjacent surface normals are at an angle less
|
||||
// than includedAngle as features
|
||||
// - 0 : selects no edges
|
||||
// - 180: selects all edges
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
// Write options
|
||||
|
||||
// Write features to obj format for postprocessing
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
gasInlet.stl
|
||||
{
|
||||
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
stirrer.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
outlet.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
/*
|
||||
baffles.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
rotating.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
|
||||
sparger.stl
|
||||
{
|
||||
extractionMethod extractFromSurface;
|
||||
|
||||
extractFromSurfaceCoeffs
|
||||
{
|
||||
includedAngle 120;
|
||||
}
|
||||
|
||||
writeObj no;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
// ************************************************************************* //
|
Loading…
Reference in New Issue
Block a user