Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
andy
2011-03-22 12:07:46 +00:00
54 changed files with 148898 additions and 248 deletions

View File

@ -1,9 +1,9 @@
// We do not have a top-level mesh. Construct the fvSolution for // We do not have a top-level mesh. Construct the fvSolution for
// the runTime instead. // the runTime instead.
runTime.readOpt() = IOobject::MUST_READ_IF_MODIFIED;
fvSolution solutionDict(runTime); fvSolution solutionDict(runTime);
const dictionary& pimple = solutionDict.subDict("PIMPLE"); const dictionary& pimple = solutionDict.subDict("PIMPLE");
const int nOuterCorr = const int nOuterCorr =
pimple.lookupOrDefault<int>("nOuterCorrectors", 1); pimple.lookupOrDefault<int>("nOuterCorrectors", 1);

View File

@ -2,7 +2,7 @@ fvVectorMatrix UaEqn(Ua, Ua.dimensions()*dimVol/dimTime);
fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime); fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
{ {
volTensorField Rca(-nuEffa*(fvc::grad(Ua)().T())); volTensorField Rca(-nuEffa*(T(fvc::grad(Ua))));
Rca = Rca + (2.0/3.0)*sqr(Ct)*I*k - (2.0/3.0)*I*tr(Rca); Rca = Rca + (2.0/3.0)*sqr(Ct)*I*k - (2.0/3.0)*I*tr(Rca);
surfaceScalarField phiRa surfaceScalarField phiRa
@ -36,7 +36,7 @@ fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
UaEqn.relax(); UaEqn.relax();
volTensorField Rcb(-nuEffb*fvc::grad(Ub)().T()); volTensorField Rcb(-nuEffb*T(fvc::grad(Ub)));
Rcb = Rcb + (2.0/3.0)*I*k - (2.0/3.0)*I*tr(Rcb); Rcb = Rcb + (2.0/3.0)*I*k - (2.0/3.0)*I*tr(Rcb);
surfaceScalarField phiRb surfaceScalarField phiRb

View File

@ -3,7 +3,7 @@ fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
{ {
{ {
volTensorField gradUaT(fvc::grad(Ua)().T()); volTensorField gradUaT(T(fvc::grad(Ua)));
if (kineticTheory.on()) if (kineticTheory.on())
{ {
@ -58,7 +58,7 @@ fvVectorMatrix UbEqn(Ub, Ub.dimensions()*dimVol/dimTime);
} }
{ {
volTensorField gradUbT(fvc::grad(Ub)().T()); volTensorField gradUbT(T(fvc::grad(Ub)));
volTensorField Rcb volTensorField Rcb
( (
"Rcb", "Rcb",

View File

@ -1180,6 +1180,43 @@ void Foam::fvMatrix<Type>::operator*=
} }
template<class Type>
void Foam::fvMatrix<Type>::operator*=
(
const volScalarField& vsf
)
{
dimensions_ *= vsf.dimensions();
lduMatrix::operator*=(vsf.field());
source_ *= vsf.field();
forAll(vsf.boundaryField(), patchI)
{
const fvPatchScalarField& psf = vsf.boundaryField()[patchI];
if (psf.coupled())
{
internalCoeffs_[patchI] *= psf.patchInternalField();
boundaryCoeffs_[patchI] *= psf.patchNeighbourField();
}
else
{
internalCoeffs_[patchI] *= psf.patchInternalField();
boundaryCoeffs_[patchI] *= psf;
}
}
if (faceFluxCorrectionPtr_)
{
FatalErrorIn
(
"fvMatrix<Type>::operator*="
"(const DimensionedField<scalar, volMesh>&)"
) << "cannot scale a matrix containing a faceFluxCorrection"
<< abort(FatalError);
}
}
template<class Type> template<class Type>
void Foam::fvMatrix<Type>::operator*= void Foam::fvMatrix<Type>::operator*=
( (

View File

@ -460,6 +460,7 @@ public:
void operator*=(const DimensionedField<scalar, volMesh>&); void operator*=(const DimensionedField<scalar, volMesh>&);
void operator*=(const tmp<DimensionedField<scalar, volMesh> >&); void operator*=(const tmp<DimensionedField<scalar, volMesh> >&);
void operator*=(const volScalarField&);
void operator*=(const tmp<volScalarField>&); void operator*=(const tmp<volScalarField>&);
void operator*=(const dimensioned<scalar>&); void operator*=(const dimensioned<scalar>&);

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -26,7 +26,6 @@ License
#include "treeDataPoint.H" #include "treeDataPoint.H"
#include "treeBoundBox.H" #include "treeBoundBox.H"
#include "indexedOctree.H" #include "indexedOctree.H"
#include "polyMesh.H"
#include "triangleFuncs.H" #include "triangleFuncs.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -42,6 +41,17 @@ Foam::treeDataPoint::treeDataPoint(const pointField& points)
{} {}
Foam::treeDataPoint::treeDataPoint
(
const pointField& points,
const labelList& pointLabels
)
:
points_(points),
pointLabels_(pointLabels)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::pointField Foam::treeDataPoint::points() const Foam::pointField Foam::treeDataPoint::points() const
@ -69,7 +79,8 @@ bool Foam::treeDataPoint::overlaps
const treeBoundBox& cubeBb const treeBoundBox& cubeBb
) const ) const
{ {
return cubeBb.contains(points_[index]); label pointI = (pointLabels_.size() ? pointLabels_[index] : index);
return cubeBb.contains(points_[pointI]);
} }
@ -88,8 +99,9 @@ void Foam::treeDataPoint::findNearest
forAll(indices, i) forAll(indices, i)
{ {
const label index = indices[i]; const label index = indices[i];
label pointI = (pointLabels_.size() ? pointLabels_[index] : index);
const point& pt = points_[index]; const point& pt = points_[pointI];
scalar distSqr = magSqr(pt - sample); scalar distSqr = magSqr(pt - sample);
@ -122,8 +134,9 @@ void Foam::treeDataPoint::findNearest
forAll(indices, i) forAll(indices, i)
{ {
const label index = indices[i]; const label index = indices[i];
label pointI = (pointLabels_.size() ? pointLabels_[index] : index);
const point& shapePt = points_[index]; const point& shapePt = points_[pointI];
if (tightest.contains(shapePt)) if (tightest.contains(shapePt))
{ {

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -30,6 +30,8 @@ Description
Used for searching for nearest point. No bounding boxes around points. Used for searching for nearest point. No bounding boxes around points.
Only overlaps and calcNearest are implemented, rest makes little sense. Only overlaps and calcNearest are implemented, rest makes little sense.
Optionally works on subset of points.
SourceFiles SourceFiles
treeDataPoint.C treeDataPoint.C
@ -60,6 +62,9 @@ class treeDataPoint
const pointField& points_; const pointField& points_;
//- Subset of points to work on (or empty)
const labelList pointLabels_;
public: public:
// Declare name of the class and its debug switch // Declare name of the class and its debug switch
@ -68,9 +73,12 @@ public:
// Constructors // Constructors
//- Construct from components. Holds reference to points! //- Construct from pointField. Holds reference!
treeDataPoint(const pointField&); treeDataPoint(const pointField&);
//- Construct from subset of pointField. Holds reference!
treeDataPoint(const pointField&, const labelList&);
// Member Functions // Member Functions
@ -81,6 +89,11 @@ public:
return points_.size(); return points_.size();
} }
inline const labelList& pointLabels() const
{
return pointLabels_;
}
//- Get representative point cloud for all shapes inside //- Get representative point cloud for all shapes inside
// (one point per shape) // (one point per shape)
pointField points() const; pointField points() const;

View File

@ -90,7 +90,7 @@ Foam::radiation::fvDOM::fvDOM(const volScalarField& T)
mesh_.time().timeName(), mesh_.time().timeName(),
mesh_, mesh_,
IOobject::NO_READ, IOobject::NO_READ,
IOobject::AUTO_WRITE IOobject::NO_WRITE
), ),
mesh_, mesh_,
dimensionedScalar("a", dimless/dimLength, 0.0) dimensionedScalar("a", dimless/dimLength, 0.0)

View File

@ -32,8 +32,8 @@ boundaryField
sides sides
{ {
type pressureInletOutletVelocity; type pressureInletOutletVelocity;
outletValue uniform (0 0 0);
value uniform (0 0 0); value uniform (0 0 0);
phi phi;
} }
base base
{ {
@ -43,7 +43,7 @@ boundaryField
inlet inlet
{ {
type fixedValue; type fixedValue;
value uniform (0 0.05 0); value uniform (0 0.01 0);
} }
} }

View File

@ -32,9 +32,9 @@ boundaryField
p0 $internalField; p0 $internalField;
U U; U U;
phi phi; phi phi;
rho none; rho rho;
psi none; psi none;
gamma 1; gamma 0;
value $internalField; value $internalField;
} }
base base

View File

@ -14,7 +14,6 @@ FoamFile
location "constant"; location "constant";
object LESProperties; object LESProperties;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
LESModel oneEqEddy; LESModel oneEqEddy;
@ -26,6 +25,11 @@ turbulence on;
printCoeffs on; printCoeffs on;
oneEqEddyCoeffs
{
ck 0.07;
}
cubeRootVolCoeffs cubeRootVolCoeffs
{ {
deltaCoeff 1; deltaCoeff 1;

View File

@ -20,7 +20,7 @@ combustionModel infinitelyFastChemistry;
infinitelyFastChemistryCoeffs infinitelyFastChemistryCoeffs
{ {
C 10.0; C 5.0;
} }
noCombustionCoeffs noCombustionCoeffs

View File

@ -18,20 +18,20 @@ convertToMeters 1;
vertices vertices
( (
(-0.3 0 -0.3) (-0.5 0 -0.5)
( 0.3 0 -0.3) ( 0.5 0 -0.5)
( 0.3 1.0 -0.3) ( 0.5 1.0 -0.5)
(-0.3 1.0 -0.3) (-0.5 1.0 -0.5)
(-0.3 0 0.3) (-0.5 0 0.5)
( 0.3 0 0.3) ( 0.5 0 0.5)
( 0.3 1.0 0.3) ( 0.5 1.0 0.5)
(-0.3 1.0 0.3) (-0.5 1.0 0.5)
); );
blocks blocks
( (
hex (0 1 2 3 4 5 6 7) (70 70 70) simpleGrading (1 1 1) hex (0 1 2 3 4 5 6 7) (60 60 60) simpleGrading (1 1 1)
); );
edges edges

View File

@ -20,26 +20,26 @@ FoamFile
base base
{ {
type patch; type patch;
nFaces 4704; nFaces 3456;
startFace 1014300; startFace 637200;
} }
outlet outlet
{ {
type patch; type patch;
nFaces 4900; nFaces 3600;
startFace 1019004; startFace 640656;
} }
sides sides
{ {
type patch; type patch;
nFaces 19600; nFaces 14400;
startFace 1023904; startFace 644256;
} }
inlet inlet
{ {
type patch; type patch;
nFaces 196; nFaces 144;
startFace 1043504; startFace 658656;
} }
) )

View File

@ -39,7 +39,7 @@ fvDOMCoeffs
// Number of flow iterations per radiation iteration // Number of flow iterations per radiation iteration
solverFreq 10; solverFreq 10;
absorptionEmissionModel constantAbsorptionEmission; absorptionEmissionModel greyMeanAbsorptionEmission;
constantAbsorptionEmissionCoeffs constantAbsorptionEmissionCoeffs
{ {

View File

@ -1 +1 @@
faceSet f0 new boxToFace (-0.06 -0.001 -0.06)(0.06 0.005 0.06) faceSet f0 new boxToFace (-0.1 -0.001 -0.1)(0.1 0.005 0.1)

View File

@ -22,13 +22,13 @@ startTime 0.0;
stopAt endTime; stopAt endTime;
endTime 10.0; endTime 6.0;
deltaT 0.001; deltaT 0.001;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 0.1; writeInterval 0.05;
purgeWrite 0; purgeWrite 0;
@ -48,7 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes; adjustTimeStep yes;
maxCo 0.25; maxCo 0.2;
maxDeltaT 0.1; maxDeltaT 0.1;

View File

@ -27,15 +27,15 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss limitedLinear 1; div(phi,U) Gauss linear;
div(phi,k) Gauss limitedLinear 1; div(phi,k) Gauss limitedLinear 0.1;
flux(phi,ft) Gauss limitedLinear01 1; flux(phi,ft) Gauss limitedLinear01 0.1;
div(phi,ft_b_h) Gauss multivariateSelection div(phi,ft_b_h) Gauss multivariateSelection
{ {
fu limitedLinear01 1; fu limitedLinear 0.1;
ft limitedLinear01 1; ft limitedLinear 0.1;
hs limitedLinear 1; hs limitedLinear 0.1;
}; };
div((muEff*dev2(T(grad(U))))) Gauss linear; div((muEff*dev2(T(grad(U))))) Gauss linear;
div(phiU,p) Gauss linear; div(phiU,p) Gauss linear;
@ -44,7 +44,7 @@ divSchemes
laplacianSchemes laplacianSchemes
{ {
default Gauss linear corrected; default Gauss linear uncorrected;
} }
interpolationSchemes interpolationSchemes
@ -54,7 +54,7 @@ interpolationSchemes
snGradSchemes snGradSchemes
{ {
default corrected; default uncorrected;
} }
fluxRequired fluxRequired

View File

@ -40,7 +40,7 @@ solvers
p_rghFinal p_rghFinal
{ {
$p_rgh; $p_rgh;
tolerance 1e-7; tolerance 1e-8;
relTol 0; relTol 0;
}; };
@ -57,7 +57,7 @@ solvers
"(U|ft|fu|k|hs)Final" "(U|ft|fu|k|hs)Final"
{ {
$U; $U;
tolerance 1e-7; tolerance 1e-8;
relTol 0; relTol 0;
}; };
@ -77,7 +77,7 @@ solvers
{ {
solver PCG; solver PCG;
preconditioner DIC; preconditioner DIC;
tolerance 1e-06; tolerance 1e-04;
relTol 0; relTol 0;
} }
@ -85,9 +85,9 @@ solvers
PISO PISO
{ {
momentumPredictor yes; momentumPredictor no;
nOuterCorrectors 1; nOuterCorrectors 1;
nCorrectors 2; nCorrectors 1;
nNonOrthogonalCorrectors 0; nNonOrthogonalCorrectors 0;
} }

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -17,8 +17,6 @@ FoamFile
thermoType constSolidThermo; thermoType constSolidThermo;
//thermoType isotropicKSolidThermo; //thermoType isotropicKSolidThermo;
//thermoType directionalKSolidThermo; //thermoType directionalKSolidThermo;
//thermoType solidMixtureThermo<multiComponentSolidMixture<exponentialSolidTransport<constSolidRad<exponentialSolidThermo<constRho>>>>>;
constSolidThermoCoeffs constSolidThermoCoeffs
{ {
@ -28,12 +26,12 @@ constSolidThermoCoeffs
K K [1 1 -3 -1 0 0 0] 80; K K [1 1 -3 -1 0 0 0] 80;
//- radiative properties //- radiative properties
kappa kappa [0 -1 0 0 0 0 0] 0; kappa kappa [0 -1 0 0 0 0 0] 0;
sigmaS sigmaS [0 -1 0 0 0 0 0] 0; sigmaS sigmaS [0 -1 0 0 0 0 0] 0;
emissivity emissivity [0 0 0 0 0 0 0] 1; emissivity emissivity [0 0 0 0 0 0 0] 0;
//- chemical properties //- chemical properties
Hf Hf [0 2 -2 0 0 0 0] 1; Hf Hf [0 2 -2 0 0 0 0] 0;
} }
@ -52,7 +50,7 @@ isotropicKSolidThermoCoeffs
sigmaSValues (0 0); sigmaSValues (0 0);
//- chemical properties //- chemical properties
HfValues (1 1); HfValues (0 0);
} }

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
location "system"; location "system";
object decomposeParDict; object decomposeParDict;
} }
@ -19,13 +18,7 @@ FoamFile
numberOfSubdomains 4; numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch; method scotch;
// method hierarchical;
// method simple;
// method manual;
simpleCoeffs simpleCoeffs
{ {
@ -42,15 +35,6 @@ hierarchicalCoeffs
scotchCoeffs scotchCoeffs
{ {
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
} }
manualCoeffs manualCoeffs
@ -58,15 +42,4 @@ manualCoeffs
dataFile "decompositionData"; dataFile "decompositionData";
} }
//// Is the case distributed
//distributed yes;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots
//(
// "/tmp"
// "/tmp"
//);
// ************************************************************************* // // ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes ddtSchemes
{ {
default Euler; default Euler;
} }
gradSchemes gradSchemes
@ -26,7 +26,7 @@ gradSchemes
divSchemes divSchemes
{ {
default none; default none;
div(phi,U) Gauss upwind; div(phi,U) Gauss upwind;
div(phiU,p) Gauss linear; div(phiU,p) Gauss linear;
div(phi,h) Gauss upwind; div(phi,h) Gauss upwind;

View File

@ -23,13 +23,13 @@ startTime 0.001;
stopAt endTime; stopAt endTime;
endTime 200; endTime 100;
deltaT 0.001; deltaT 0.001;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 5; writeInterval 10;
purgeWrite 0; purgeWrite 0;
@ -52,11 +52,4 @@ maxDi 10.0;
adjustTimeStep yes; adjustTimeStep yes;
libs
(
"libOpenFOAM.so"
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -10,22 +10,14 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
location "system"; location "system";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4; numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch; method scotch;
// method hierarchical;
// method simple;
// method manual;
simpleCoeffs simpleCoeffs
{ {
@ -42,15 +34,6 @@ hierarchicalCoeffs
scotchCoeffs scotchCoeffs
{ {
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
} }
manualCoeffs manualCoeffs
@ -58,15 +41,4 @@ manualCoeffs
dataFile "decompositionData"; dataFile "decompositionData";
} }
//// Is the case distributed
//distributed yes;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots
//(
// "/tmp"
// "/tmp"
//);
// ************************************************************************* // // ************************************************************************* //

View File

@ -54,6 +54,7 @@ dictionaryReplacement
{ {
internalField uniform 0.5; internalField uniform 0.5;
boundaryField boundaryField
{ {
".*" ".*"

View File

@ -10,22 +10,14 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
location "system"; location "system";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4; numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch; method scotch;
// method hierarchical;
// method simple;
// method manual;
simpleCoeffs simpleCoeffs
{ {
@ -42,15 +34,6 @@ hierarchicalCoeffs
scotchCoeffs scotchCoeffs
{ {
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
} }
manualCoeffs manualCoeffs
@ -58,15 +41,4 @@ manualCoeffs
dataFile "decompositionData"; dataFile "decompositionData";
} }
//// Is the case distributed
//distributed yes;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots
//(
// "/tmp"
// "/tmp"
//);
// ************************************************************************* // // ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
ddtSchemes ddtSchemes
{ {
default Euler; default Euler;
} }
gradSchemes gradSchemes
@ -32,7 +32,7 @@ divSchemes
laplacianSchemes laplacianSchemes
{ {
default none; default none;
laplacian(K,T) Gauss linear limited 0.333; laplacian(K,T) Gauss linear limited 0.333;
} }
interpolationSchemes interpolationSchemes

View File

@ -54,6 +54,7 @@ dictionaryReplacement
{ {
internalField uniform 0.5; internalField uniform 0.5;
boundaryField boundaryField
{ {
".*" ".*"

View File

@ -10,22 +10,14 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
location "system"; location "system";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4; numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch; method scotch;
// method hierarchical;
// method simple;
// method manual;
simpleCoeffs simpleCoeffs
{ {
@ -42,15 +34,6 @@ hierarchicalCoeffs
scotchCoeffs scotchCoeffs
{ {
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
} }
manualCoeffs manualCoeffs
@ -58,15 +41,4 @@ manualCoeffs
dataFile "decompositionData"; dataFile "decompositionData";
} }
//// Is the case distributed
//distributed yes;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots
//(
// "/tmp"
// "/tmp"
//);
// ************************************************************************* // // ************************************************************************* //

View File

@ -32,7 +32,7 @@ divSchemes
laplacianSchemes laplacianSchemes
{ {
default none; default none;
laplacian(K,T) Gauss linear limited 0.333; laplacian(K,T) Gauss linear limited 0.333;
} }
interpolationSchemes interpolationSchemes

View File

@ -10,22 +10,14 @@ FoamFile
version 2.0; version 2.0;
format ascii; format ascii;
class dictionary; class dictionary;
note "mesh decomposition control dictionary";
location "system"; location "system";
object decomposeParDict; object decomposeParDict;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 4; numberOfSubdomains 4;
//- Keep owner and neighbour on same processor for faces in zones:
// preserveFaceZones (heater solid1 solid3);
method scotch; method scotch;
// method hierarchical;
// method simple;
// method manual;
simpleCoeffs simpleCoeffs
{ {
@ -42,15 +34,6 @@ hierarchicalCoeffs
scotchCoeffs scotchCoeffs
{ {
//processorWeights
//(
// 1
// 1
// 1
// 1
//);
//writeGraph true;
//strategy "b";
} }
manualCoeffs manualCoeffs
@ -58,15 +41,4 @@ manualCoeffs
dataFile "decompositionData"; dataFile "decompositionData";
} }
//// Is the case distributed
//distributed yes;
//// Per slave (so nProcs-1 entries) the directory above the case.
//roots
//(
// "/tmp"
// "/tmp"
//);
// ************************************************************************* // // ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -52,11 +52,4 @@ maxDi 10.0;
adjustTimeStep yes; adjustTimeStep yes;
libs
(
"libOpenFOAM.so"
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -23,13 +23,13 @@ startTime 0.001;
stopAt endTime; stopAt endTime;
endTime 200; endTime 75;
deltaT 0.001; deltaT 0.001;
writeControl adjustableRunTime; writeControl adjustableRunTime;
writeInterval 50; writeInterval 15;
purgeWrite 0; purgeWrite 0;
@ -47,15 +47,8 @@ runTimeModifiable true;
maxCo 0.3; maxCo 0.3;
maxDi 10.0; maxDi 10.0;
adjustTimeStep yes; adjustTimeStep yes;
libs
(
"libOpenFOAM.so"
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -0,0 +1,25 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object radiationProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
radiation off;
radiationModel none;
noRadiation
{
}
// ************************************************************************* //

View File

@ -45,11 +45,4 @@ timePrecision 6;
runTimeModifiable true; runTimeModifiable true;
libs
(
"libOpenFOAM.so"
"libcompressibleTurbulenceModel.so"
"libcompressibleRASModels.so"
);
// ************************************************************************* // // ************************************************************************* //

View File

@ -19,7 +19,7 @@ runParallel snappyHexMesh 2 -overwrite
# Add wildcard entries for meshed patches since not preserved # Add wildcard entries for meshed patches since not preserved
# by decomposePar. Notice -literalRE option to add wildcard itself # by decomposePar. Notice -literalRE option to add wildcard itself
# without evaluation. # without evaluation.
runParallel changeDictionary 2 -literalRE runParallel changeDictionary 2 -literalRE -enableFunctionEntries
cp system/decomposeParDict-4proc system/decomposeParDict cp system/decomposeParDict-4proc system/decomposeParDict
runParallel redistributeMeshPar 4 -overwrite runParallel redistributeMeshPar 4 -overwrite

View File

@ -0,0 +1,34 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object RASProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
RASModel kEpsilon;
turbulence on;
printCoeffs on;
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1.0;
sigmaEps 1.11; //Original value:1.44
Prt 1.0;
}
// ************************************************************************* //

View File

@ -0,0 +1,71 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
convertToMeters 1;
vertices
(
( 581321 4.78537e+06 930)
( 582290 4.78537e+06 930)
( 582290 4.78624e+06 930)
( 581321 4.78624e+06 930)
( 581321 4.78537e+06 1500)
( 582290 4.78537e+06 1500)
( 582290 4.78624e+06 1500)
( 581321 4.78624e+06 1500)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (30 30 20) simpleGrading (1 1 1)
);
edges
(
);
patches
(
patch outlet
(
(2 6 5 1)
)
patch sides
(
(1 5 4 0)
(3 7 6 2)
)
patch inlet
(
(0 4 7 3)
)
wall ground
(
(0 3 2 1)
)
patch top
(
(4 5 6 7)
)
);
mergePatchPairs
(
);
// ************************************************************************* //

View File

@ -0,0 +1,58 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
6
(
outlet
{
type patch;
nFaces 922;
startFace 364825;
}
sides
{
type patch;
nFaces 1834;
startFace 365747;
}
inlet
{
type patch;
nFaces 923;
startFace 367581;
}
ground
{
type wall;
nFaces 0;
startFace 368504;
}
top
{
type patch;
nFaces 900;
startFace 368504;
}
terrain_patch0
{
type wall;
nFaces 18201;
startFace 369404;
}
)
// ************************************************************************* //

View File

@ -0,0 +1,55 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object sourcesProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
disk1
{
typeModel actuationDiskSource;
active on; //on/off switch
timeStart 0.0; //start time
duration 1000.0; //duration
selectionMode cellSet; //cellSet // points //cellZone
cellSet actuationDisk1;//cellSet name when selectionMode = cellSet
cellZone actuationDisk1;//cellZone name when selectionMode = cellZone
actuationDiskSourceCoeffs
{
diskDir (-1 0 0); // orientation of the disk
Cp 0.53; // Cp
Ct 0.58; // Ct
diskArea 40; // disk area
}
}
disk2
{
typeModel actuationDiskSource;
active on;
timeStart 0.0;
duration 1000.0;
selectionMode cellSet;
cellSet actuationDisk2;
cellZone actuationDisk2;
actuationDiskSourceCoeffs
{
diskDir (-1 0 0);
Cp 0.53;
Ct 0.58;
diskArea 40;
}
}
// ************************************************************************* //

View File

@ -0,0 +1,21 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1.5e-05;
// ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -14,7 +14,6 @@ FoamFile
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
// Use absolute path to make sure it also works in parallel
#include "$FOAM_CASE/0/include/initialConditions" #include "$FOAM_CASE/0/include/initialConditions"
dictionaryReplacement dictionaryReplacement

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -17,6 +17,13 @@ FoamFile
numberOfSubdomains 2; numberOfSubdomains 2;
method ptscotch; method hierarchical;
hierarchicalCoeffs
{
n (2 1 1);
delta 0.001;
order xyz;
}
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -16,12 +16,12 @@ FoamFile
ddtSchemes ddtSchemes
{ {
default steadyState; default steadyState;
} }
gradSchemes gradSchemes
{ {
default Gauss linear; default Gauss linear;
grad(p) Gauss linear; grad(p) Gauss linear;
grad(U) Gauss linear; grad(U) Gauss linear;
} }

View File

@ -1,7 +1,7 @@
/*--------------------------------*- C++ -*----------------------------------*\ /*--------------------------------*- C++ -*----------------------------------*\
| ========= | | | ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7 | | \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.com | | \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | | | \\/ M anipulation | |
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/