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

This commit is contained in:
mattijs
2012-03-30 12:03:12 +01:00
25 changed files with 41 additions and 35 deletions

View File

@ -99,7 +99,7 @@
scalar u0 = hs0 - p0/rho0; scalar u0 = hs0 - p0/rho0;
scalar R0 = p0/(rho0*T0); scalar R0 = p0/(rho0*T0);
Rspecific[0] = R0; Rspecific[0] = R0;
scalar integratedHeat = 0.0; scalar integratedHeat = 0.0;
Info << constProp << " will be held constant." << nl Info << constProp << " will be held constant." << nl

View File

@ -8,7 +8,7 @@ using namespace Foam;
void test(const vector& a, const vector& b, const scalar tolerance) void test(const vector& a, const vector& b, const scalar tolerance)
{ {
Info<< "Vectors " << a << " and " << b Info<< "Vectors " << a << " and " << b
<< " are (to tolerance of " << tolerance << "): "; << " are (to tolerance of " << tolerance << "): ";
if (vectorTools::areParallel(a, b, tolerance)) if (vectorTools::areParallel(a, b, tolerance))

View File

@ -252,4 +252,4 @@ public:
#endif #endif
// ************************************************************************* // // ************************************************************************* //

View File

@ -93,7 +93,7 @@ void Foam::CV2D::insertSurfaceNearPointPairs()
nNearPoints++; nNearPoints++;
// Correct the edge iterator for the change in the // Correct the edge iterator for the change in the
// number of edges following the point-pair insertion // number of edges following the point-pair insertion
eit = Finite_edges_iterator eit = Finite_edges_iterator
( (

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) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -440,6 +440,10 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation
existingSurfacePtLocations existingSurfacePtLocations
); );
} }
// else
// {
// vit->setInternal();
// }
} }
else if (vit->ppSlave() || vit->referredExternal()) else if (vit->ppSlave() || vit->referredExternal())
{ {
@ -477,6 +481,10 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation
existingSurfacePtLocations existingSurfacePtLocations
); );
} }
// else
// {
// vit->setInternal();
// }
} }
} }
@ -2697,7 +2705,7 @@ void Foam::conformalVoronoiMesh::addSurfaceAndEdgeHits
// NEED TO REMOVE FROM THE SURFACE TREE... // NEED TO REMOVE FROM THE SURFACE TREE...
surfacePtLocationTreePtr_().remove surfacePtLocationTreePtr_().remove
( (
existingSurfacePtLocations.size() existingSurfacePtLocations.size() - 1
); );
} }

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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -330,4 +330,4 @@ void Foam::patchToPoly2DMesh::createMesh()
// * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * * //
// ************************************************************************* // // ************************************************************************* //

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) 2011-2011 OpenCFD Ltd. \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -162,4 +162,4 @@ public:
#endif #endif
// ************************************************************************* // // ************************************************************************* //

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) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License

View File

@ -82,7 +82,7 @@ Foam::label Foam::checkTopology
if (cFaces[i] < 0 || cFaces[i] >= mesh.nFaces()) if (cFaces[i] < 0 || cFaces[i] >= mesh.nFaces())
{ {
cells.insert(cellI); cells.insert(cellI);
break; break;
} }
} }
} }

View File

@ -488,7 +488,7 @@ int main(int argc, char *argv[])
"word", "word",
"specify alternative dictionary for the feature extraction information" "specify alternative dictionary for the feature extraction information"
); );
# include "setRootCase.H" # include "setRootCase.H"
# include "createTime.H" # include "createTime.H"

View File

@ -39,7 +39,7 @@ Description
} }
} }
If volumeMode = If volumeMode =
- absolute: values are given as <quantity> - absolute: values are given as <quantity>
- specific: values are given as <quantity>/m3 - specific: values are given as <quantity>/m3

View File

@ -38,7 +38,7 @@ Description
gradPini gradPini [0 2 -2 0 0] 0; // initial pressure gradient gradPini gradPini [0 2 -2 0 0] 0; // initial pressure gradient
flowDir (1 0 0); // flow direction flowDir (1 0 0); // flow direction
} }
SourceFiles SourceFiles
pressureGradientExplicitSource.C pressureGradientExplicitSource.C

View File

@ -202,7 +202,7 @@ protected:
//- Maximum radius //- Maximum radius
scalar rMax_; scalar rMax_;
// Protected Member Functions // Protected Member Functions
//- Check data //- Check data
@ -247,7 +247,7 @@ public:
// Constructors // Constructors
//- Construct from components //- Construct from components
rotorDiskSource rotorDiskSource
( (

View File

@ -181,7 +181,7 @@ void Foam::ParticleErosion<CloudType>::postPatch
// particle direction of travel // particle direction of travel
const vector& U = p.U(); const vector& U = p.U();
// quick reject if particle travelling away from the patch // quick reject if particle travelling away from the patch
if ((-nw & U) < 0) if ((-nw & U) < 0)
{ {

View File

@ -112,7 +112,7 @@ public:
//- Post-move hook //- Post-move hook
virtual void postMove virtual void postMove
( (
const parcelType& p, const parcelType& p,
const label cellI, const label cellI,
const scalar dt const scalar dt

View File

@ -285,7 +285,7 @@ void Foam::PairCollision<CloudType>::wallInteraction()
); );
flatSiteData.append(wSD); flatSiteData.append(wSD);
particleHit = true; particleHit = true;
} }
} }

View File

@ -26,7 +26,7 @@ functions
fields fields
( (
R R
); );
} }
} }

View File

@ -28,7 +28,7 @@ Description
Calculates pressure coefficient, c_p Calculates pressure coefficient, c_p
c_p = p/p_dyn,inf c_p = p/p_dyn,inf
where: where:
p_dyn,inf = 0.5*rho*mag(U_inf)^2 p_dyn,inf = 0.5*rho*mag(U_inf)^2

View File

@ -268,7 +268,7 @@ kOmegaSST::kOmegaSST
/ max / max
( (
a1_*omega_, a1_*omega_,
F2()*sqrt(2.0*magSqr(symm(fvc::grad(U_)))) F2()*sqrt(2.0)*mag(symm(fvc::grad(U_)))
) )
); );
mut_.correctBoundaryConditions(); mut_.correctBoundaryConditions();
@ -365,7 +365,7 @@ void kOmegaSST::correct()
// Re-calculate viscosity // Re-calculate viscosity
mut_ = mut_ =
a1_*rho_*k_ a1_*rho_*k_
/max(a1_*omega_, F2()*sqrt(2.0*magSqr(symm(fvc::grad(U_))))); /max(a1_*omega_, F2()*sqrt(2.0)*mag(symm(fvc::grad(U_))));
mut_.correctBoundaryConditions(); mut_.correctBoundaryConditions();
// Re-calculate thermal diffusivity // Re-calculate thermal diffusivity

View File

@ -6,7 +6,6 @@ cd ${0%/*} || exit 1 # run from this directory
runApplication blockMesh runApplication blockMesh
runApplication cvMesh runApplication cvMesh
runApplication collapseEdges 1e-3 45
runApplication snappyHexMesh runApplication snappyHexMesh
runApplication checkMesh -constant -allGeometry -allTopology runApplication checkMesh -constant -allGeometry -allTopology

View File

@ -59,7 +59,6 @@ initialPoints
autoDensityCoeffs autoDensityCoeffs
{ {
minCellSizeLimit 0.04;
minLevels 0; minLevels 0;
maxSizeRatio 5.0; maxSizeRatio 5.0;
sampleResolution 5; sampleResolution 5;
@ -150,21 +149,20 @@ motionControl
{ {
priority 1; priority 1;
mode bothSides; mode bothSides;
surfaceCellSizeFunction uniformValue; surfaceCellSizeFunction uniformValue;
uniformValueCoeffs uniformValueCoeffs
{ {
surfaceCellSize 0.04; surfaceCellSize 0.04;
} }
refinementFactor 1;
cellSizeFunction uniformDistance; cellSizeFunction uniformDistance;
uniformDistanceCoeffs uniformDistanceCoeffs
{ {
distance 0.1; distance 0.1;
} }
linearDistanceCoeffs linearDistanceCoeffs
{ {
surfaceCellSize 0.02;
distanceCellSize $defaultCellSize; distanceCellSize $defaultCellSize;
distance 0.1; distance 0.1;
} }
@ -217,14 +215,15 @@ polyMeshFiltering
{ {
writeTetDualMesh false; writeTetDualMesh false;
filterSizeCoeff 0.2; filterSizeCoeff 0.2;
mergeClosenessCoeff 1e-9; mergeClosenessCoeff 1e-3;
edgeMergeAngle 45;
continueFilteringOnBadInitialPolyMesh true; continueFilteringOnBadInitialPolyMesh true;
filterErrorReductionCoeff 0.5; filterErrorReductionCoeff 0.5;
filterCountSkipThreshold 4; filterCountSkipThreshold 4;
surfaceStepFaceAngle 80; surfaceStepFaceAngle 80;
maxCollapseIterations 25; maxCollapseIterations 25;
maxConsecutiveEqualFaceSets 5; maxConsecutiveEqualFaceSets 5;
edgeCollapseGuardFraction 0.3; edgeCollapseGuardFraction 0.1;
maxCollapseFaceToPointSideLengthCoeff 0.35; maxCollapseFaceToPointSideLengthCoeff 0.35;
} }

View File

@ -17,8 +17,8 @@ FoamFile
numberOfSubdomains 8; numberOfSubdomains 8;
method scotch; //method scotch;
// method ptscotch; method ptscotch;
// method hierarchical; // method hierarchical;
simpleCoeffs simpleCoeffs