mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of ssh://noisy/home/noisy3/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -14,4 +14,3 @@
|
||||
).initialResidual();
|
||||
|
||||
maxResidual = max(eqnResidual, maxResidual);
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
- fvm::laplacian(muEff, U)
|
||||
- (fvc::grad(U) & fvc::grad(muEff))
|
||||
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf()))
|
||||
//- fvc::div(rho*turbulence->nuEff()*dev(fvc::grad(U)().T()))
|
||||
);
|
||||
|
||||
if (oCorr == nOuterCorr-1)
|
||||
|
||||
@ -53,18 +53,18 @@ patches
|
||||
name sidePatches;
|
||||
|
||||
// Type of new patch
|
||||
dictionary
|
||||
{
|
||||
dictionary
|
||||
{
|
||||
type cyclic;
|
||||
|
||||
// Optional: explicitly set transformation tensor.
|
||||
// Optional: explicitly set transformation tensor.
|
||||
// Used when matching and synchronising points.
|
||||
//transform translational;
|
||||
//separationVector (-2289 0 0);
|
||||
transform rotational;
|
||||
rotationAxis (1 0 0);
|
||||
transform rotational;
|
||||
rotationAxis (1 0 0);
|
||||
rotationCentre (0 0 0);
|
||||
}
|
||||
}
|
||||
|
||||
// How to construct: either from 'patches' or 'set'
|
||||
constructFrom patches;
|
||||
@ -80,10 +80,10 @@ patches
|
||||
name bottom;
|
||||
|
||||
// Type of new patch
|
||||
dictionary
|
||||
{
|
||||
dictionary
|
||||
{
|
||||
type wall;
|
||||
}
|
||||
}
|
||||
|
||||
constructFrom set;
|
||||
|
||||
|
||||
@ -105,6 +105,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
Foam::argList::validOptions.insert("overwrite", "");
|
||||
|
||||
Foam::argList::validOptions.insert("toleranceDict", "file with tolerances");
|
||||
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
runTime.functionObjects().off();
|
||||
@ -168,6 +170,22 @@ int main(int argc, char *argv[])
|
||||
<< "If this is not the case use the -partial option" << nl << endl;
|
||||
}
|
||||
|
||||
// set up the tolerances for the sliding mesh
|
||||
dictionary slidingTolerances;
|
||||
if (args.options().found("toleranceDict"))
|
||||
{
|
||||
IOdictionary toleranceFile(
|
||||
IOobject(
|
||||
args.options()["toleranceDict"],
|
||||
runTime.constant(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
)
|
||||
);
|
||||
slidingTolerances += toleranceFile;
|
||||
}
|
||||
|
||||
// Check for non-empty master and slave patches
|
||||
checkPatch(mesh.boundaryMesh(), masterPatchName);
|
||||
checkPatch(mesh.boundaryMesh(), slavePatchName);
|
||||
@ -320,6 +338,11 @@ int main(int argc, char *argv[])
|
||||
true // couple/decouple mode
|
||||
)
|
||||
);
|
||||
static_cast<slidingInterface&>(stitcher[0]).setTolerances
|
||||
(
|
||||
slidingTolerances,
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -452,5 +452,6 @@ done
|
||||
#-----------------------------
|
||||
myEcho "Generated XY files for:"
|
||||
getAllQueries $DBFILE $LOG
|
||||
myEcho "End"
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1305,7 +1305,7 @@ bool Foam::cyclicPolyPatch::order
|
||||
{
|
||||
label baffleI = 0;
|
||||
|
||||
forAll(*this, faceI)
|
||||
forAll(pp, faceI)
|
||||
{
|
||||
const face& f = pp.localFaces()[faceI];
|
||||
const labelList& pFaces = pp.pointFaces()[f[0]];
|
||||
|
||||
@ -43,7 +43,7 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
const Foam::scalar Foam::slidingInterface::edgeCoPlanarTol_ = 0.8;
|
||||
const Foam::scalar Foam::slidingInterface::edgeCoPlanarTolDefault_ = 0.8;
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -27,10 +27,8 @@ License
|
||||
#include "slidingInterface.H"
|
||||
#include "polyTopoChanger.H"
|
||||
#include "polyMesh.H"
|
||||
#include "primitiveMesh.H"
|
||||
#include "polyTopoChange.H"
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
#include "triPointRef.H"
|
||||
#include "plane.H"
|
||||
|
||||
// Index of debug signs:
|
||||
@ -173,6 +171,14 @@ Foam::slidingInterface::slidingInterface
|
||||
attached_(false),
|
||||
projectionAlgo_(algo),
|
||||
trigger_(false),
|
||||
pointMergeTol_(pointMergeTolDefault_),
|
||||
edgeMergeTol_(edgeMergeTolDefault_),
|
||||
nFacesPerSlaveEdge_(nFacesPerSlaveEdgeDefault_),
|
||||
edgeFaceEscapeLimit_(edgeFaceEscapeLimitDefault_),
|
||||
integralAdjTol_(integralAdjTolDefault_),
|
||||
edgeMasterCatchFraction_(edgeMasterCatchFractionDefault_),
|
||||
edgeCoPlanarTol_(edgeCoPlanarTolDefault_),
|
||||
edgeEndCutoffTol_(edgeEndCutoffTolDefault_),
|
||||
cutFaceMasterPtr_(NULL),
|
||||
cutFaceSlavePtr_(NULL),
|
||||
masterFaceCellsPtr_(NULL),
|
||||
@ -280,6 +286,9 @@ Foam::slidingInterface::slidingInterface
|
||||
masterPointEdgeHitsPtr_(NULL),
|
||||
projectedSlavePointsPtr_(NULL)
|
||||
{
|
||||
// Optionally default tolerances from dictionary
|
||||
setTolerances(dict);
|
||||
|
||||
checkDefinition();
|
||||
|
||||
// If the interface is attached, the master and slave face zone addressing
|
||||
@ -686,6 +695,63 @@ const Foam::pointField& Foam::slidingInterface::pointProjection() const
|
||||
return *projectedSlavePointsPtr_;
|
||||
}
|
||||
|
||||
void Foam::slidingInterface::setTolerances(const dictionary&dict, bool report)
|
||||
{
|
||||
pointMergeTol_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"pointMergeTol",
|
||||
pointMergeTol_
|
||||
);
|
||||
edgeMergeTol_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"edgeMergeTol",
|
||||
edgeMergeTol_
|
||||
);
|
||||
nFacesPerSlaveEdge_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"nFacesPerSlaveEdge",
|
||||
nFacesPerSlaveEdge_
|
||||
);
|
||||
edgeFaceEscapeLimit_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"edgeFaceEscapeLimit",
|
||||
edgeFaceEscapeLimit_
|
||||
);
|
||||
integralAdjTol_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"integralAdjTol",
|
||||
integralAdjTol_
|
||||
);
|
||||
edgeMasterCatchFraction_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"edgeMasterCatchFraction",
|
||||
edgeMasterCatchFraction_
|
||||
);
|
||||
edgeCoPlanarTol_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"edgeCoPlanarTol",
|
||||
edgeCoPlanarTol_
|
||||
);
|
||||
edgeEndCutoffTol_ = dict.lookupOrDefault<scalar>
|
||||
(
|
||||
"edgeEndCutoffTol",
|
||||
edgeEndCutoffTol_
|
||||
);
|
||||
|
||||
if (report)
|
||||
{
|
||||
Info<< "Sliding interface parameters:" << nl
|
||||
<< "pointMergeTol : " << pointMergeTol_ << nl
|
||||
<< "edgeMergeTol : " << edgeMergeTol_ << nl
|
||||
<< "nFacesPerSlaveEdge : " << nFacesPerSlaveEdge_ << nl
|
||||
<< "edgeFaceEscapeLimit : " << edgeFaceEscapeLimit_ << nl
|
||||
<< "integralAdjTol : " << integralAdjTol_ << nl
|
||||
<< "edgeMasterCatchFraction : " << edgeMasterCatchFraction_ << nl
|
||||
<< "edgeCoPlanarTol : " << edgeCoPlanarTol_ << nl
|
||||
<< "edgeEndCutoffTol : " << edgeEndCutoffTol_ << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Foam::slidingInterface::write(Ostream& os) const
|
||||
{
|
||||
@ -703,6 +769,14 @@ void Foam::slidingInterface::write(Ostream& os) const
|
||||
}
|
||||
|
||||
|
||||
// To write out all those tolerances
|
||||
#define WRITE_NON_DEFAULT(name) \
|
||||
if( name ## _ != name ## Default_ )\
|
||||
{ \
|
||||
os << " " #name " " << name ## _ << token::END_STATEMENT << nl; \
|
||||
}
|
||||
|
||||
|
||||
void Foam::slidingInterface::writeDict(Ostream& os) const
|
||||
{
|
||||
os << nl << name() << nl << token::BEGIN_BLOCK << nl
|
||||
@ -743,6 +817,15 @@ void Foam::slidingInterface::writeDict(Ostream& os) const
|
||||
<< token::END_STATEMENT << nl;
|
||||
}
|
||||
|
||||
WRITE_NON_DEFAULT(pointMergeTol)
|
||||
WRITE_NON_DEFAULT(edgeMergeTol)
|
||||
WRITE_NON_DEFAULT(nFacesPerSlaveEdge)
|
||||
WRITE_NON_DEFAULT(edgeFaceEscapeLimit)
|
||||
WRITE_NON_DEFAULT(integralAdjTol)
|
||||
WRITE_NON_DEFAULT(edgeMasterCatchFraction)
|
||||
WRITE_NON_DEFAULT(edgeCoPlanarTol)
|
||||
WRITE_NON_DEFAULT(edgeEndCutoffTol)
|
||||
|
||||
os << token::END_BLOCK << endl;
|
||||
}
|
||||
|
||||
|
||||
@ -129,6 +129,32 @@ private:
|
||||
//- Trigger topological change
|
||||
mutable bool trigger_;
|
||||
|
||||
// Tolerances. Initialised to static ones below.
|
||||
|
||||
//- Point merge tolerance
|
||||
scalar pointMergeTol_;
|
||||
|
||||
//- Edge merge tolerance
|
||||
scalar edgeMergeTol_;
|
||||
|
||||
//- Estimated number of faces an edge goes through
|
||||
label nFacesPerSlaveEdge_;
|
||||
|
||||
//- Edge-face interaction escape limit
|
||||
label edgeFaceEscapeLimit_;
|
||||
|
||||
//- Integral match point adjustment tolerance
|
||||
scalar integralAdjTol_;
|
||||
|
||||
//- Edge intersection master catch fraction
|
||||
scalar edgeMasterCatchFraction_;
|
||||
|
||||
//- Edge intersection co-planar tolerance
|
||||
scalar edgeCoPlanarTol_;
|
||||
|
||||
//- Edge end cut-off tolerance
|
||||
scalar edgeEndCutoffTol_;
|
||||
|
||||
|
||||
// Private addressing data.
|
||||
|
||||
@ -256,28 +282,28 @@ private:
|
||||
// Static data members
|
||||
|
||||
//- Point merge tolerance
|
||||
static const scalar pointMergeTol_;
|
||||
static const scalar pointMergeTolDefault_;
|
||||
|
||||
//- Edge merge tolerance
|
||||
static const scalar edgeMergeTol_;
|
||||
static const scalar edgeMergeTolDefault_;
|
||||
|
||||
//- Estimated number of faces an edge goes through
|
||||
static const label nFacesPerSlaveEdge_;
|
||||
static const label nFacesPerSlaveEdgeDefault_;
|
||||
|
||||
//- Edge-face interaction escape limit
|
||||
static const label edgeFaceEscapeLimit_;
|
||||
static const label edgeFaceEscapeLimitDefault_;
|
||||
|
||||
//- Integral match point adjustment tolerance
|
||||
static const scalar integralAdjTol_;
|
||||
static const scalar integralAdjTolDefault_;
|
||||
|
||||
//- Edge intersection master catch fraction
|
||||
static const scalar edgeMasterCatchFraction_;
|
||||
static const scalar edgeMasterCatchFractionDefault_;
|
||||
|
||||
//- Edge intersection co-planar tolerance
|
||||
static const scalar edgeCoPlanarTol_;
|
||||
static const scalar edgeCoPlanarTolDefault_;
|
||||
|
||||
//- Edge end cut-off tolerance
|
||||
static const scalar edgeEndCutoffTol_;
|
||||
static const scalar edgeEndCutoffTolDefault_;
|
||||
|
||||
|
||||
public:
|
||||
@ -350,6 +376,8 @@ public:
|
||||
//- Return projected points for a slave patch
|
||||
const pointField& pointProjection() const;
|
||||
|
||||
//- Set the tolerances from the values in a dictionary
|
||||
void setTolerances(const dictionary&, bool report=false);
|
||||
|
||||
//- Write
|
||||
virtual void write(Ostream&) const;
|
||||
|
||||
@ -26,22 +26,19 @@ License
|
||||
|
||||
#include "slidingInterface.H"
|
||||
#include "polyMesh.H"
|
||||
#include "primitiveMesh.H"
|
||||
#include "line.H"
|
||||
#include "triPointRef.H"
|
||||
#include "plane.H"
|
||||
#include "polyTopoChanger.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
const Foam::scalar Foam::slidingInterface::pointMergeTol_ = 0.05;
|
||||
const Foam::scalar Foam::slidingInterface::edgeMergeTol_ = 0.01;
|
||||
const Foam::label Foam::slidingInterface::nFacesPerSlaveEdge_ = 5;
|
||||
const Foam::label Foam::slidingInterface::edgeFaceEscapeLimit_ = 10;
|
||||
const Foam::scalar Foam::slidingInterface::pointMergeTolDefault_ = 0.05;
|
||||
const Foam::scalar Foam::slidingInterface::edgeMergeTolDefault_ = 0.01;
|
||||
const Foam::label Foam::slidingInterface::nFacesPerSlaveEdgeDefault_ = 5;
|
||||
const Foam::label Foam::slidingInterface::edgeFaceEscapeLimitDefault_ = 10;
|
||||
|
||||
const Foam::scalar Foam::slidingInterface::integralAdjTol_ = 0.05;
|
||||
const Foam::scalar Foam::slidingInterface::edgeMasterCatchFraction_ = 0.4;
|
||||
const Foam::scalar Foam::slidingInterface::edgeEndCutoffTol_ = 0.0001;
|
||||
const Foam::scalar Foam::slidingInterface::integralAdjTolDefault_ = 0.05;
|
||||
const Foam::scalar Foam::slidingInterface::edgeMasterCatchFractionDefault_ = 0.4;
|
||||
const Foam::scalar Foam::slidingInterface::edgeEndCutoffTolDefault_ = 0.0001;
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
@ -79,7 +79,6 @@ Foam::genericFvPatchField<Type>::genericFvPatchField
|
||||
<< " (Actual type " << actualTypeName_ << ")" << nl
|
||||
<< "\n Please add the 'value' entry to the write function "
|
||||
"of the user-defined boundary-condition\n"
|
||||
" or link the boundary-condition into libfoamUtil.so"
|
||||
<< exit(FatalIOError);
|
||||
}
|
||||
|
||||
|
||||
@ -61,7 +61,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
|
||||
const incompressible::RASModel& ras
|
||||
= obr_.lookupObject<incompressible::RASModel>("RASProperties");
|
||||
|
||||
return rhoRef_*ras.devReff();
|
||||
return rho()*ras.devReff();
|
||||
}
|
||||
else if (obr_.foundObject<compressible::LESModel>("LESProperties"))
|
||||
{
|
||||
@ -75,7 +75,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
|
||||
const incompressible::LESModel& les
|
||||
= obr_.lookupObject<incompressible::LESModel>("LESProperties");
|
||||
|
||||
return rhoRef_*les.devBeff();
|
||||
return rho()*les.devBeff();
|
||||
}
|
||||
else if (obr_.foundObject<basicThermo>("thermophysicalProperties"))
|
||||
{
|
||||
@ -97,7 +97,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
|
||||
|
||||
const volVectorField& U = obr_.lookupObject<volVectorField>(UName_);
|
||||
|
||||
return -rhoRef_*laminarT.nu()*dev(twoSymm(fvc::grad(U)));
|
||||
return -rho()*laminarT.nu()*dev(twoSymm(fvc::grad(U)));
|
||||
}
|
||||
else if (obr_.foundObject<dictionary>("transportProperties"))
|
||||
{
|
||||
@ -108,7 +108,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
|
||||
|
||||
const volVectorField& U = obr_.lookupObject<volVectorField>(UName_);
|
||||
|
||||
return -rhoRef_*nu*dev(twoSymm(fvc::grad(U)));
|
||||
return -rho()*nu*dev(twoSymm(fvc::grad(U)));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -121,6 +121,34 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
|
||||
}
|
||||
|
||||
|
||||
Foam::tmp<Foam::volScalarField> Foam::forces::rho() const
|
||||
{
|
||||
if (rhoName_ == "rhoInf")
|
||||
{
|
||||
const fvMesh& mesh = refCast<const fvMesh>(obr_);
|
||||
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
new volScalarField
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
"rho",
|
||||
mesh.time().timeName(),
|
||||
mesh
|
||||
),
|
||||
mesh,
|
||||
dimensionedScalar("rho", dimDensity, rhoRef_)
|
||||
)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
return(obr_.lookupObject<volScalarField>(rhoName_));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Foam::scalar Foam::forces::rho(const volScalarField& p) const
|
||||
{
|
||||
if (p.dimensions() == dimPressure)
|
||||
@ -129,6 +157,13 @@ Foam::scalar Foam::forces::rho(const volScalarField& p) const
|
||||
}
|
||||
else
|
||||
{
|
||||
if (rhoName_ != "rhoInf")
|
||||
{
|
||||
FatalErrorIn("forces::rho(const volScalarField& p)")
|
||||
<< "Dynamic pressure is expected but kinematic is provided."
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
return rhoRef_;
|
||||
}
|
||||
}
|
||||
@ -149,11 +184,12 @@ Foam::forces::forces
|
||||
active_(true),
|
||||
log_(false),
|
||||
patchSet_(),
|
||||
pName_(""),
|
||||
UName_(""),
|
||||
pName_(word::null),
|
||||
UName_(word::null),
|
||||
rhoName_(word::null),
|
||||
directForceDensity_(false),
|
||||
fDName_(""),
|
||||
rhoRef_(0),
|
||||
rhoRef_(VGREAT),
|
||||
CofR_(vector::zero),
|
||||
forcesFilePtr_(NULL)
|
||||
{
|
||||
@ -175,6 +211,12 @@ Foam::forces::forces
|
||||
}
|
||||
|
||||
read(dict);
|
||||
|
||||
if (active_)
|
||||
{
|
||||
// Create the forces file if not already created
|
||||
makeFile();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -222,18 +264,31 @@ void Foam::forces::read(const dictionary& dict)
|
||||
// Optional entries U and p
|
||||
pName_ = dict.lookupOrDefault<word>("pName", "p");
|
||||
UName_ = dict.lookupOrDefault<word>("UName", "U");
|
||||
rhoName_ = dict.lookupOrDefault<word>("rhoName", "rho");
|
||||
|
||||
// Check whether UName and pName exists, if not deactivate forces
|
||||
// Check whether UName, pName and rhoName exists,
|
||||
// if not deactivate forces
|
||||
if
|
||||
(
|
||||
!obr_.foundObject<volVectorField>(UName_)
|
||||
|| !obr_.foundObject<volScalarField>(pName_)
|
||||
|| (
|
||||
rhoName_ != "rhoInf"
|
||||
&& !obr_.foundObject<volScalarField>(rhoName_)
|
||||
)
|
||||
)
|
||||
{
|
||||
active_ = false;
|
||||
|
||||
WarningIn("void forces::read(const dictionary& dict)")
|
||||
<< "Could not find " << UName_ << " or "
|
||||
<< pName_ << " in database." << nl
|
||||
<< "Could not find " << UName_ << ", " << pName_;
|
||||
|
||||
if (rhoName_ != "rhoInf")
|
||||
{
|
||||
Info<< " or " << rhoName_;
|
||||
}
|
||||
|
||||
Info<< " in database." << nl
|
||||
<< " De-activating forces."
|
||||
<< endl;
|
||||
}
|
||||
|
||||
@ -132,6 +132,9 @@ protected:
|
||||
//- Name of velocity field
|
||||
word UName_;
|
||||
|
||||
//- Name of density field (optional)
|
||||
word rhoName_;
|
||||
|
||||
//- Is the force density being supplied directly?
|
||||
Switch directForceDensity_;
|
||||
|
||||
@ -157,6 +160,9 @@ protected:
|
||||
//- Return the effective viscous stress (laminar + turbulent).
|
||||
tmp<volSymmTensorField> devRhoReff() const;
|
||||
|
||||
//- Return rho if rhoName is specified otherwise rhoRef
|
||||
tmp<volScalarField> rho() const;
|
||||
|
||||
//- Return rhoRef if the pressure field is dynamic, i.e. p/rho
|
||||
// otherwise return 1
|
||||
scalar rho(const volScalarField& p) const;
|
||||
|
||||
@ -70,7 +70,7 @@ class alphatWallFunctionFvPatchScalarField
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("compressible::alphatWallFunction");
|
||||
TypeName("alphatWallFunction");
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
@ -32,13 +32,13 @@ boundaryField
|
||||
|
||||
upperWall
|
||||
{
|
||||
type compressible::alphaSgsJayatillekeWallFunction;
|
||||
type alphaSgsJayatillekeWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type compressible::alphaSgsJayatillekeWallFunction;
|
||||
type alphaSgsJayatillekeWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
|
||||
@ -32,13 +32,13 @@ boundaryField
|
||||
|
||||
upperWall
|
||||
{
|
||||
type compressible::muSgsWallFunction;
|
||||
type muSgsUSpaldingWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type compressible::muSgsWallFunction;
|
||||
type muSgsUSpaldingWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -32,13 +32,13 @@ boundaryField
|
||||
|
||||
upperWall
|
||||
{
|
||||
type compressible::alphaSgsJayatillekeWallFunction;
|
||||
type alphaSgsJayatillekeWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type compressible::alphaSgsJayatillekeWallFunction;
|
||||
type alphaSgsJayatillekeWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
|
||||
@ -32,13 +32,13 @@ boundaryField
|
||||
|
||||
upperWall
|
||||
{
|
||||
type compressible::muSgsWallFunction;
|
||||
type muSgsUSpaldingWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
lowerWall
|
||||
{
|
||||
type compressible::muSgsWallFunction;
|
||||
type muSgsUSpaldingWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -23,7 +23,7 @@ boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,19 +23,19 @@ boundaryField
|
||||
{
|
||||
piston
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
liner
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
cylinderHead
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
@ -23,22 +23,22 @@ boundaryField
|
||||
{
|
||||
front
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
back
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
porosityWall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
inlet
|
||||
|
||||
@ -23,13 +23,13 @@ boundaryField
|
||||
{
|
||||
movingWall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
fixedWalls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
@ -23,22 +23,22 @@ boundaryField
|
||||
{
|
||||
front
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
back
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
wall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
porosityWall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
inlet
|
||||
|
||||
47
tutorials/compressible/sonicFoam/ras/nacaAirfoil/0/alphat
Normal file
47
tutorials/compressible/sonicFoam/ras/nacaAirfoil/0/alphat
Normal file
@ -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;
|
||||
location "0";
|
||||
object alphat;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
INLE1
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
OUTL2
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
SYMP3
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
WALL10
|
||||
{
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,6 +10,7 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object epsilon;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -26,23 +27,25 @@ boundaryField
|
||||
inletValue uniform 25000;
|
||||
value uniform 25000;
|
||||
}
|
||||
|
||||
OUTL2
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 25000;
|
||||
value uniform 25000;
|
||||
}
|
||||
|
||||
SYMP3
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
WALL10
|
||||
{
|
||||
type zeroGradient;
|
||||
type compressible::epsilonWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 25000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: http://www.OpenFOAM.org |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
@ -10,6 +10,7 @@ FoamFile
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
object k;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -26,23 +27,22 @@ boundaryField
|
||||
inletValue uniform 1000;
|
||||
value uniform 1000;
|
||||
}
|
||||
|
||||
OUTL2
|
||||
{
|
||||
type inletOutlet;
|
||||
inletValue uniform 1000;
|
||||
value uniform 1000;
|
||||
}
|
||||
|
||||
SYMP3
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
WALL10
|
||||
{
|
||||
type zeroGradient;
|
||||
type compressible::kqRWallFunction;
|
||||
value uniform 1000;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
49
tutorials/compressible/sonicFoam/ras/nacaAirfoil/0/mut
Normal file
49
tutorials/compressible/sonicFoam/ras/nacaAirfoil/0/mut
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;
|
||||
location "0";
|
||||
object mut;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
dimensions [1 -1 -1 0 0 0 0];
|
||||
|
||||
internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
INLE1
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
OUTL2
|
||||
{
|
||||
type calculated;
|
||||
value uniform 0;
|
||||
}
|
||||
SYMP3
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
WALL10
|
||||
{
|
||||
type mutkWallFunction;
|
||||
Cmu 0.09;
|
||||
kappa 0.41;
|
||||
E 9.8;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / O peration | Version: dev |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -43,7 +43,7 @@ boundaryField
|
||||
}
|
||||
prismWall
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
defaultFaces
|
||||
|
||||
@ -23,17 +23,17 @@ boundaryField
|
||||
{
|
||||
floor
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
ceiling
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
fixedWalls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,25 +23,25 @@ boundaryField
|
||||
{
|
||||
frontAndBack
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
topAndBottom
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
hot
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
cold
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
@ -23,19 +23,19 @@ boundaryField
|
||||
{
|
||||
floor
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
ceiling
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
fixedWalls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
@ -23,22 +23,22 @@ boundaryField
|
||||
{
|
||||
box
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
floor
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
ceiling
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
fixedWalls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -23,25 +23,25 @@ boundaryField
|
||||
{
|
||||
box
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
floor
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
ceiling
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
fixedWalls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
Prt 0.85;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
@ -0,0 +1,80 @@
|
||||
0.000625 0.001
|
||||
0.001875 0.001
|
||||
0.003125 0.001
|
||||
0.004375 0.001
|
||||
0.005625 0.001
|
||||
0.006875 0.001
|
||||
0.008125 0.001
|
||||
0.009375 0.001
|
||||
0.010625 0.001
|
||||
0.011875 0.001
|
||||
0.013125 0.001
|
||||
0.014375 0.001
|
||||
0.015625 0.001
|
||||
0.016875 0.001
|
||||
0.018125 0.001
|
||||
0.019375 0.001
|
||||
0.020625 0.001
|
||||
0.021875 0.001
|
||||
0.023125 0.001
|
||||
0.024375 0.001
|
||||
0.025625 0.001
|
||||
0.026875 0.001
|
||||
0.028125 0.001
|
||||
0.029375 0.001
|
||||
0.030625 0.001
|
||||
0.031875 0.001
|
||||
0.033125 0.001
|
||||
0.034375 0.001
|
||||
0.035625 0.001
|
||||
0.036875 0.001
|
||||
0.038125 0.001
|
||||
0.039375 0.001
|
||||
0.040625 0.001
|
||||
0.041875 0.001
|
||||
0.043125 0.001
|
||||
0.044375 0.001
|
||||
0.045625 0.001
|
||||
0.046875 0.001
|
||||
0.048125 0.001
|
||||
0.049375 0.001
|
||||
0.050625 0.001
|
||||
0.051875 0.001
|
||||
0.053125 0.001
|
||||
0.054375 0.001
|
||||
0.055625 0.001
|
||||
0.056875 0.001
|
||||
0.058125 0.001
|
||||
0.059375 0.001
|
||||
0.060625 0.001
|
||||
0.061875 0.001
|
||||
0.063125 0.001
|
||||
0.064375 0.001
|
||||
0.065625 0.001
|
||||
0.066875 0.001
|
||||
0.068125 0.001
|
||||
0.069375 0.001
|
||||
0.070625 0.001
|
||||
0.071875 0.001
|
||||
0.073125 0.001
|
||||
0.074375 0.001
|
||||
0.075625 0.001
|
||||
0.076875 0.001
|
||||
0.078125 0.001
|
||||
0.079375 0.001
|
||||
0.080625 0.001
|
||||
0.081875 0.001
|
||||
0.083125 0.001
|
||||
0.084375 0.001
|
||||
0.085625 0.001
|
||||
0.086875 0.001
|
||||
0.088125 0.001
|
||||
0.089375 0.001
|
||||
0.090625 0.001
|
||||
0.091875 0.001
|
||||
0.093125 0.001
|
||||
0.094375 0.001
|
||||
0.095625 0.001
|
||||
0.096875 0.001
|
||||
0.098125 0.001
|
||||
0.099375 0.001
|
||||
@ -19,7 +19,7 @@ Ubar Ubar [ 0 1 -1 0 0 0 0 ] ( 10 0 0 );
|
||||
|
||||
transportModel Newtonian;
|
||||
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-8;
|
||||
nu nu [ 0 2 -1 0 0 0 0 ] 1e-3;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -1,174 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
turbulenceModel SpalartAllmaras;
|
||||
|
||||
turbulence on;
|
||||
|
||||
laminarCoeffs
|
||||
{
|
||||
}
|
||||
|
||||
kEpsilonCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
RNGkEpsilonCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.0845;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.42;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.68;
|
||||
alphak alphaK [ 0 0 0 0 0 0 0 ] 1.39;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 1.39;
|
||||
eta0 eta0 [ 0 0 0 0 0 0 0 ] 4.38;
|
||||
beta beta [ 0 0 0 0 0 0 0 ] 0.012;
|
||||
}
|
||||
|
||||
NonlinearKEShihCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76932;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
}
|
||||
|
||||
LienCubicKECoeffs
|
||||
{
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
}
|
||||
|
||||
QZetaCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaZeta alphaZeta [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
anisotropic no;
|
||||
}
|
||||
|
||||
LaunderSharmaKECoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LamBremhorstKECoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LienCubicKELowReCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
Am Am [ 0 0 0 0 0 0 0 ] 0.016;
|
||||
Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263;
|
||||
Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222;
|
||||
}
|
||||
|
||||
LienLeschzinerLowReCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
Am Am [ 0 0 0 0 0 0 0 ] 0.016;
|
||||
Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263;
|
||||
Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222;
|
||||
}
|
||||
|
||||
LRRCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
Clrr1 Clrr1 [ 0 0 0 0 0 0 0 ] 1.8;
|
||||
Clrr2 Clrr2 [ 0 0 0 0 0 0 0 ] 0.6;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
Cs Cs [ 0 0 0 0 0 0 0 ] 0.25;
|
||||
Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LaunderGibsonRSTMCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
Clg1 Clg1 [ 0 0 0 0 0 0 0 ] 1.8;
|
||||
Clg2 Clg2 [ 0 0 0 0 0 0 0 ] 0.6;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
C1Ref C1Ref [ 0 0 0 0 0 0 0 ] 0.5;
|
||||
C2Ref C2Ref [ 0 0 0 0 0 0 0 ] 0.3;
|
||||
Cs Cs [ 0 0 0 0 0 0 0 ] 0.25;
|
||||
Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
alphaR alphaR [ 0 0 0 0 0 0 0 ] 1.22;
|
||||
}
|
||||
|
||||
SpalartAllmarasCoeffs
|
||||
{
|
||||
alphaNut alphaNut [ 0 0 0 0 0 0 0 ] 1.5;
|
||||
Cb1 Cb1 [ 0 0 0 0 0 0 0 ] 0.1355;
|
||||
Cb2 Cb2 [ 0 0 0 0 0 0 0 ] 0.622;
|
||||
Cw2 Cw2 [ 0 0 0 0 0 0 0 ] 0.3;
|
||||
Cw3 Cw3 [ 0 0 0 0 0 0 0 ] 2;
|
||||
Cv1 Cv1 [ 0 0 0 0 0 0 0 ] 7.1;
|
||||
Cv2 Cv2 [ 0 0 0 0 0 0 0 ] 5;
|
||||
}
|
||||
|
||||
wallFunctionCoeffs
|
||||
{
|
||||
kappa kappa [ 0 0 0 0 0 0 0 ] 0.4187;
|
||||
E E [ 0 0 0 0 0 0 0 ] 9;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,174 +0,0 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: 1.6 |
|
||||
| \\ / A nd | Web: www.OpenFOAM.org |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
version 2.0;
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "constant";
|
||||
object turbulenceProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
turbulenceModel SpalartAllmaras;
|
||||
|
||||
turbulence on;
|
||||
|
||||
laminarCoeffs
|
||||
{
|
||||
}
|
||||
|
||||
kEpsilonCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
RNGkEpsilonCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.0845;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.42;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.68;
|
||||
alphak alphaK [ 0 0 0 0 0 0 0 ] 1.39;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 1.39;
|
||||
eta0 eta0 [ 0 0 0 0 0 0 0 ] 4.38;
|
||||
beta beta [ 0 0 0 0 0 0 0 ] 0.012;
|
||||
}
|
||||
|
||||
NonlinearKEShihCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76932;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
}
|
||||
|
||||
LienCubicKECoeffs
|
||||
{
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
}
|
||||
|
||||
QZetaCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaZeta alphaZeta [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
anisotropic no;
|
||||
}
|
||||
|
||||
LaunderSharmaKECoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LamBremhorstKECoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LienCubicKELowReCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
A1 A1 [ 0 0 0 0 0 0 0 ] 1.25;
|
||||
A2 A2 [ 0 0 0 0 0 0 0 ] 1000;
|
||||
Ctau1 Ctau1 [ 0 0 0 0 0 0 0 ] -4;
|
||||
Ctau2 Ctau2 [ 0 0 0 0 0 0 0 ] 13;
|
||||
Ctau3 Ctau3 [ 0 0 0 0 0 0 0 ] -2;
|
||||
alphaKsi alphaKsi [ 0 0 0 0 0 0 0 ] 0.9;
|
||||
Am Am [ 0 0 0 0 0 0 0 ] 0.016;
|
||||
Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263;
|
||||
Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222;
|
||||
}
|
||||
|
||||
LienLeschzinerLowReCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
alphak alphak [ 0 0 0 0 0 0 0 ] 1;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
Am Am [ 0 0 0 0 0 0 0 ] 0.016;
|
||||
Aepsilon Aepsilon [ 0 0 0 0 0 0 0 ] 0.263;
|
||||
Amu Amu [ 0 0 0 0 0 0 0 ] 0.00222;
|
||||
}
|
||||
|
||||
LRRCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
Clrr1 Clrr1 [ 0 0 0 0 0 0 0 ] 1.8;
|
||||
Clrr2 Clrr2 [ 0 0 0 0 0 0 0 ] 0.6;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
Cs Cs [ 0 0 0 0 0 0 0 ] 0.25;
|
||||
Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
}
|
||||
|
||||
LaunderGibsonRSTMCoeffs
|
||||
{
|
||||
Cmu Cmu [ 0 0 0 0 0 0 0 ] 0.09;
|
||||
Clg1 Clg1 [ 0 0 0 0 0 0 0 ] 1.8;
|
||||
Clg2 Clg2 [ 0 0 0 0 0 0 0 ] 0.6;
|
||||
C1 C1 [ 0 0 0 0 0 0 0 ] 1.44;
|
||||
C2 C2 [ 0 0 0 0 0 0 0 ] 1.92;
|
||||
C1Ref C1Ref [ 0 0 0 0 0 0 0 ] 0.5;
|
||||
C2Ref C2Ref [ 0 0 0 0 0 0 0 ] 0.3;
|
||||
Cs Cs [ 0 0 0 0 0 0 0 ] 0.25;
|
||||
Ceps Ceps [ 0 0 0 0 0 0 0 ] 0.15;
|
||||
alphaEps alphaEps [ 0 0 0 0 0 0 0 ] 0.76923;
|
||||
alphaR alphaR [ 0 0 0 0 0 0 0 ] 1.22;
|
||||
}
|
||||
|
||||
SpalartAllmarasCoeffs
|
||||
{
|
||||
alphaNut alphaNut [ 0 0 0 0 0 0 0 ] 1.5;
|
||||
Cb1 Cb1 [ 0 0 0 0 0 0 0 ] 0.1355;
|
||||
Cb2 Cb2 [ 0 0 0 0 0 0 0 ] 0.622;
|
||||
Cw2 Cw2 [ 0 0 0 0 0 0 0 ] 0.3;
|
||||
Cw3 Cw3 [ 0 0 0 0 0 0 0 ] 2;
|
||||
Cv1 Cv1 [ 0 0 0 0 0 0 0 ] 7.1;
|
||||
Cv2 Cv2 [ 0 0 0 0 0 0 0 ] 5;
|
||||
}
|
||||
|
||||
wallFunctionCoeffs
|
||||
{
|
||||
kappa kappa [ 0 0 0 0 0 0 0 ] 0.4187;
|
||||
E E [ 0 0 0 0 0 0 0 ] 9;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -23,17 +23,17 @@ boundaryField
|
||||
{
|
||||
top
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
symmetry
|
||||
|
||||
@ -23,7 +23,7 @@ boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
inlet
|
||||
|
||||
@ -23,7 +23,7 @@ boundaryField
|
||||
{
|
||||
walls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
inlet
|
||||
|
||||
@ -23,17 +23,17 @@ boundaryField
|
||||
{
|
||||
top
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
bottom
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
walls
|
||||
{
|
||||
type compressible::alphatWallFunction;
|
||||
type alphatWallFunction;
|
||||
value uniform 0;
|
||||
}
|
||||
symmetry
|
||||
|
||||
8
tutorials/multiphase/settlingFoam/ras/tank3D/Allrun
Executable file
8
tutorials/multiphase/settlingFoam/ras/tank3D/Allrun
Executable file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
application=`getApplication`
|
||||
|
||||
runApplication $application
|
||||
Reference in New Issue
Block a user