From a922f819996665dc34d82705e80c808f051373da Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 23 Jan 2009 17:57:30 +0000 Subject: [PATCH 1/7] one-off warning for unsorted boundaries --- .../meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C index 261a952b06..ca11a21ec9 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyBoundaryMesh/polyBoundaryMesh.C @@ -538,7 +538,7 @@ bool Foam::polyBoundaryMesh::checkDefinition(const bool report) const forAll (bm, patchI) { - if (bm[patchI].start() != nextPatchStart) + if (bm[patchI].start() != nextPatchStart && !boundaryError) { boundaryError = true; @@ -547,7 +547,9 @@ bool Foam::polyBoundaryMesh::checkDefinition(const bool report) const << " of type " << bm[patchI].type() << ". The patch should start on face no " << nextPatchStart << " and the patch specifies " << bm[patchI].start() - << "." << endl; + << "." << endl + << "Possibly consecutive patches have this same problem." + << " Suppressing future warnings." << endl; } nextPatchStart += bm[patchI].size(); From 1d46bf6fb095a3c9c8978780f6b21b1329ba59eb Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 26 Jan 2009 13:26:07 +0000 Subject: [PATCH 2/7] Corrected the handling of no transformation. --- src/OpenFOAM/fields/Fields/transformField/transformField.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFOAM/fields/Fields/transformField/transformField.C b/src/OpenFOAM/fields/Fields/transformField/transformField.C index 11fe39e225..eef930b954 100644 --- a/src/OpenFOAM/fields/Fields/transformField/transformField.C +++ b/src/OpenFOAM/fields/Fields/transformField/transformField.C @@ -94,7 +94,7 @@ void Foam::transform } else { - rtf = vector::zero; + rtf = tf; } } } From 038c1990515fb17c13b8e9cd1c957d4dc804ce8c Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 26 Jan 2009 13:26:42 +0000 Subject: [PATCH 3/7] Corrected the implementation of the spectral function. --- .../incompressible/LES/spectEddyVisc/spectEddyVisc.C | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/turbulenceModels/incompressible/LES/spectEddyVisc/spectEddyVisc.C b/src/turbulenceModels/incompressible/LES/spectEddyVisc/spectEddyVisc.C index 1f56b36328..28a563b4c6 100644 --- a/src/turbulenceModels/incompressible/LES/spectEddyVisc/spectEddyVisc.C +++ b/src/turbulenceModels/incompressible/LES/spectEddyVisc/spectEddyVisc.C @@ -108,13 +108,13 @@ spectEddyVisc::spectEddyVisc tmp spectEddyVisc::k() const { - volScalarField Eps = 2*nuEff()*magSqr(symm(fvc::grad(U()))); + volScalarField eps = 2*nuEff()*magSqr(symm(fvc::grad(U()))); return - cK1_*pow(delta(), 2.0/3.0)*pow(Eps, 2.0/3.0) - *exp(-cK2_*pow(delta(), -4.0/3.0)*nu()/pow(Eps, 1.0/3.0)) - - cK3_*pow(Eps*nu(), 1.0/2.0) - *erfc(cK4_*pow(delta(), -2.0/3.0)*pow(Eps, -1.0/6.0)); + cK1_*pow(delta()*eps, 2.0/3.0) + *exp(-cK2_*pow(delta(), -4.0/3.0)*nu()/pow(eps, 1.0/3.0)) + - cK3_*sqrt(eps*nu()) + *erfc(cK4_*pow(delta(), -2.0/3.0)*sqrt(nu())*pow(eps, -1.0/6.0)); } From 1a1a919c70b73299648dd89c444d570941b3d957 Mon Sep 17 00:00:00 2001 From: henry Date: Mon, 26 Jan 2009 13:27:03 +0000 Subject: [PATCH 4/7] Minor format change. --- .../containers/LinkedLists/linkTypes/SLListBase/SLListBase.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H b/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H index 4f660a1e4d..0c67d7a56e 100644 --- a/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H +++ b/src/OpenFOAM/containers/LinkedLists/linkTypes/SLListBase/SLListBase.H @@ -247,6 +247,7 @@ public: inline const_iterator begin() const; inline const const_iterator& end() const; + private: //- iterator returned by end() @@ -254,7 +255,6 @@ private: //- const_iterator returned by end() static const_iterator endConstIter_; - }; From 8abbcc08c1ade31322145f89806d1df4e9778d0e Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 27 Jan 2009 20:18:35 +0000 Subject: [PATCH 5/7] added option for sloppily matching cell zones to regions --- .../splitMeshRegions/splitMeshRegions.C | 385 ++++++++++++++---- 1 file changed, 309 insertions(+), 76 deletions(-) diff --git a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C index a4b33b97dd..02accb32a8 100644 --- a/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C +++ b/applications/utilities/mesh/manipulation/splitMeshRegions/splitMeshRegions.C @@ -30,12 +30,17 @@ Description - any face inbetween differing cellZones (-cellZones) Output is: - - mesh with multiple regions + - mesh with multiple regions or - mesh with cells put into cellZones (-makeCellZones) - Should work in parallel but cellZone interfaces cannot align with + Note: + - Should work in parallel but cellZone interfaces cannot align with processor boundaries so use the correct option in decomposition to preserve those interfaces. + - If a cell zone gets split into more than one region it can detect + the largest matching region (-sloppyCellZones). This will accept any + region that covers more than 50% of the zone. It has to be a subset + so cannot have any cells in any other zone. \*---------------------------------------------------------------------------*/ @@ -1036,78 +1041,181 @@ EdgeMap