From ee97417a27cd9af2e222de575453e1aa0b8af98c Mon Sep 17 00:00:00 2001 From: Henrik Rusche Date: Fri, 15 May 2015 15:57:39 +0200 Subject: [PATCH] Removing trailing whitespace --- Changelog.current | 4 +- ReleaseNotes | 12 +- ReleaseNotes.txt | 30 +- .../liquidFilmFoam/readSolutionControls.H | 2 +- .../liquidFilmFoam/surfaceCourantNo.H | 4 +- .../immersedBoundary/icoIbFoam/Make/files | 2 +- .../porousSimpleIbFoam/Make/files | 2 +- .../immersedBoundary/simpleIbFoam/Make/files | 2 +- .../elasticIncrAcpSolidFoam/updateCrack.H | 4 +- .../solvers/solidMechanics/readMe.txt | 2 +- .../ibContinuityError/Make/files | 2 +- .../mesh/conversion/gmshToFoam/gmshToFoam.C | 2 +- .../generation/cfMesh/FMSToVTK/FMSToVTK.C | 176 +- .../mesh/generation/cfMesh/FMSToVTK/xmlTag.H | 68 +- .../generation/cfMesh/FPMAToMesh/FPMAToMesh.C | 76 +- .../mergeSurfacePatches/mergeSurfacePatches.C | 102 +- .../generation/cfMesh/meshToFPMA/meshToFPMA.C | 6 +- .../python/Salome/extractFeatureEdges.py | 46 +- .../cfMesh/python/Salome/salomeTriSurf.py | 136 +- .../cfMesh/surfaceToFMS/surfaceToFMS.C | 2 +- extend-bazaar/Allpurge | 2 +- src/ODE/sixDOF/sixDOFqODE/sixDOFqODE.H | 2 +- .../blockLduSystem/BlockLduSystem.H | 2 +- .../gradSchemes/gradScheme/gradScheme.C | 2 +- .../leastSquaresGrad/leastSquaresGrad.H | 2 +- .../fvMatrices/fvBlockMatrix/fvBlockMatrix.C | 2 +- .../fvMatrices/fvBlockMatrix/fvBlockMatrix.H | 6 +- .../immersedBoundaryFvPatchTemplates.C | 2 +- .../immersedBoundaryFvPatchField.C | 4 +- ...ndaryOmegaWallFunctionFvPatchScalarField.C | 10 +- ...ryVelocityWallFunctionFvPatchVectorField.C | 2 +- ...immersedBoundaryWallFunctionFvPatchField.C | 2 +- .../cartesianMeshExtractor.C | 12 +- .../cartesianMeshExtractor.H | 12 +- ...artesianMeshExtractorDecomposeSplitHexes.C | 26 +- .../boundaryLayersCheckTopologyOfBndFaces.C | 72 +- .../boundaryLayersWrapperLayer.C | 16 +- .../utilities/boundaryLayers/extrudeLayer.H | 70 +- .../utilities/boundaryLayers/extrudeLayerI.H | 32 +- .../utilities/containers/DynList/DynList.C | 6 +- .../utilities/containers/FRWGraph/FRWGraphI.H | 10 +- .../containers/IODynList/IODynList.C | 2 +- .../containers/IOLongList/IOLongList.C | 2 +- .../utilities/containers/Lists/cellListPMG.H | 20 +- .../utilities/containers/Lists/cellListPMGI.H | 10 +- .../utilities/containers/Lists/faceListPMGI.H | 10 +- .../containers/Lists/pointFieldPMGI.H | 8 +- .../utilities/containers/LongList/LongList.H | 36 +- .../utilities/containers/LongList/LongListI.H | 36 +- .../utilities/containers/VRWGraph/VRWGraph.C | 14 +- .../utilities/containers/VRWGraph/VRWGraph.H | 58 +- .../utilities/containers/VRWGraph/VRWGraphI.H | 82 +- .../containers/VRWGraph/VRWGraphSMPModifier.H | 16 +- .../containers/VRWGraphList/VRWGraphList.C | 4 +- .../containers/VRWGraphList/VRWGraphList.H | 18 +- .../containers/VRWGraphList/VRWGraphListI.H | 14 +- .../utilities/containers/graphRow/graphRow.H | 16 +- .../utilities/containers/graphRow/graphRowI.H | 2 +- .../utilities/containers/subGraph/subGraph.H | 14 +- .../utilities/containers/subGraph/subGraphI.H | 8 +- .../dataConversion/foamToFPMA/fpmaMesh.C | 32 +- .../dataConversion/foamToFPMA/fpmaMesh.H | 4 +- .../dataConversion/foamToFPMA/writeMeshFPMA.H | 2 +- .../utilities/decomposeCells/decomposeCells.H | 22 +- .../faceDecomposition/decomposeFaces.H | 2 +- .../faceDecomposition/faceDecomposition.C | 14 +- .../faceDecomposition/faceDecomposition.H | 6 +- .../labelledMeshOctreeCubeCoordinates.H | 38 +- .../labelledPoint/labelledPoint.H | 42 +- .../labelledPoint/refLabelledPoint.H | 38 +- .../labelledPointScalar/labelledPointScalar.H | 48 +- .../parallelHelpers/parPartTet/parPartTet.H | 38 +- .../sortEdgesIntoChains/sortEdgesIntoChains.H | 28 +- .../helperFunctions/helperFunctionsPar.H | 2 +- .../helperFunctionsStringConversion.C | 6 +- .../helperFunctionsStringConversion.H | 6 +- .../partTetMesh/partTetMeshAddressing.C | 162 +- .../partTetMeshParallelAddressing.C | 142 +- .../meshes/partTetMesh/partTetMeshSimplex.C | 16 +- .../meshes/partTetMesh/partTetMeshSimplex.H | 24 +- .../partTriMesh/partTriMeshAddressing.C | 12 +- .../meshes/partTriMesh/partTriMeshSimplex.C | 8 +- .../meshes/partTriMesh/partTriMeshSimplex.H | 22 +- .../boundaryPatch/boundaryPatchBase.C | 10 +- .../boundaryPatch/boundaryPatchBase.H | 42 +- .../boundaryPatch/processorBoundaryPatch.C | 10 +- .../meshes/polyMeshGen/polyMeshGen.H | 8 +- .../meshes/polyMeshGen/polyMeshGenFacesI.H | 20 +- .../meshes/polyMeshGen/polyMeshGenPoints.C | 28 +- .../meshes/polyMeshGen/polyMeshGenPoints.H | 24 +- .../meshes/polyMeshGen/polyMeshGenPointsI.H | 16 +- .../polyMeshGenAddressing.H | 44 +- .../polyMeshGenChecks/polyMeshGenChecks.H | 4 +- .../polyMeshGenModifierAddBufferCells.C | 56 +- .../polyMeshGenModifierAddCellByCell.C | 24 +- .../polyMeshGenModifierAddCellByCell.H | 6 +- .../polyMeshGenModifierZipUpCells.C | 32 +- .../meshes/primitives/partTet/partTet.H | 20 +- .../meshes/primitives/partTet/partTetI.H | 20 +- .../meshOctreeAddressing.H | 152 +- .../meshOctreeAddressingI.H | 70 +- .../meshOctreeAutomaticRefinement.H | 4 +- .../meshOctreeInsideOutside.H | 38 +- .../objectRefinement/boxRefinement.C | 24 +- .../objectRefinement/boxRefinement.H | 14 +- .../objectRefinement/coneRefinement.C | 22 +- .../objectRefinement/coneRefinement.H | 12 +- .../objectRefinement/lineRefinement.C | 8 +- .../objectRefinement/lineRefinement.H | 12 +- .../objectRefinement/sphereRefinement.C | 10 +- .../objectRefinement/sphereRefinement.H | 12 +- .../meshOptimizerOptimizePointParallel.C | 144 +- .../knuppMetric/knuppMetric.C | 66 +- .../knuppMetric/knuppMetric.H | 12 +- .../meshUntangler/meshUntangler.C | 26 +- .../meshUntangler/meshUntangler.H | 40 +- .../meshUntanglerCutRegionEdges.C | 22 +- .../simplexSmoother/simplexSmoother.H | 24 +- .../tetMeshOptimisation/tetMeshOptimisation.H | 10 +- .../meshSurfaceOptimizerOptimizePoint.C | 14 +- .../checkBoundaryFacesSharingTwoEdges.H | 22 +- .../checkIrregularSurfaceConnections.C | 26 +- .../checkIrregularSurfaceConnections.H | 12 +- .../checkNonMappableCellConnections.H | 6 +- .../topologicalCleaner/topologicalCleaner.H | 14 +- .../meshSurfaceCheckInvertedVertices.H | 6 +- .../meshSurfaceEdgeExtractor.H | 10 +- .../meshSurfaceEdgeExtractorNonTopo.H | 6 +- .../meshSurfaceEngineModifier.H | 12 +- .../meshSurfaceMapper/meshSurfaceMapper.C | 4 +- .../meshSurfaceMapper/parMapperHelper.H | 34 +- .../renameBoundaryPatches.H | 4 +- .../surfaceMorpherCells/surfaceMorpherCells.H | 18 +- .../tetCreatorOctree/tetCreatorOctree.C | 20 +- .../tetCreatorOctree/tetCreatorOctree.H | 44 +- .../tetCreatorOctreeFromFacesWithCentreNode.C | 44 +- .../tetCreatorOctree/tetCreatorOctreeI.H | 4 +- .../tetCreatorOctreeTetsFromSplitFaces.C | 12 +- .../bentRotorStator/system/decomposeParDict | 12 +- .../simpleRotorStator/system/decomposeParDict | 12 +- .../cylinder/constant/faMesh/faBoundary | 10 +- .../cylinder/constant/polyMesh/blockMeshDict | 10 +- .../dropsSpreading/constant/faMesh/faBoundary | 8 +- .../constant/polyMesh/blockMeshDict | 10 +- .../setInitialDroplet/setInitialDroplet.C | 2 +- .../system/fvSolution | 2 +- .../system/fvSolution | 2 +- .../pitzDailyBodyFitted/0_org/y | 6 +- .../pitzDailyBodyFitted/0_org/yPlus | 4 +- .../pitzDailyLaminarIcoIbFoam/0_org/U | 2 +- .../pitzDailyLaminarSimpleIbFoam/0_org/U | 2 +- .../system/cellSetDict | 4 +- .../axialTurbine_mixingPlane/system/fvSchemes | 2 +- .../constant/polyMesh/boundary | 22 +- .../pitzDailyDirectMapped/system/controlDict | 2 +- .../system/decomposeParDict | 2 +- tutorials/mesh/cfMesh/Allclean | 2 +- .../hatOctree/system/controlDict | 4 +- .../hatOctree/system/fvSchemes | 4 +- .../hatOctree/system/fvSolution | 4 +- .../asmoOctree/system/controlDict | 4 +- .../cartesianMesh/asmoOctree/system/fvSchemes | 4 +- .../asmoOctree/system/fvSolution | 4 +- .../cartesianMesh/asmoOctree/system/meshDict | 6 +- .../bunnyOctree/system/controlDict | 4 +- .../bunnyOctree/system/fvSchemes | 4 +- .../bunnyOctree/system/fvSolution | 4 +- .../cartesianMesh/bunnyOctree/system/meshDict | 4 +- .../elbow_90degree/elbow_90degree.stl | 72136 +++---- .../cartesianMesh/elbow_90degree/readme.txt | 2 +- .../elbow_90degree/system/controlDict | 4 +- .../elbow_90degree/system/fvSchemes | 4 +- .../elbow_90degree/system/fvSolution | 4 +- .../elbow_90degree/system/meshDict | 10 +- .../intakePortOctree/system/controlDict | 4 +- .../intakePortOctree/system/fvSchemes | 4 +- .../intakePortOctree/system/fvSolution | 4 +- .../intakePortOctree/system/meshDict | 22 +- .../multipleOrifices/multipleOrifices.stl | 166592 +++++++-------- .../cartesianMesh/multipleOrifices/readme.txt | 2 +- .../multipleOrifices/system/controlDict | 4 +- .../multipleOrifices/system/fvSchemes | 4 +- .../multipleOrifices/system/fvSolution | 4 +- .../multipleOrifices/system/meshDict | 10 +- .../cartesianMesh/sBendOctree/sBend.fms | 8 +- .../sBendOctree/system/controlDict | 4 +- .../sBendOctree/system/fvSchemes | 4 +- .../sBendOctree/system/fvSolution | 4 +- .../cartesianMesh/sBendOctree/system/meshDict | 4 +- .../cfMesh/cartesianMesh/sawOctree/sav.smesh | 40728 ++-- .../sawOctree/system/controlDict | 4 +- .../cartesianMesh/sawOctree/system/fvSchemes | 4 +- .../cartesianMesh/sawOctree/system/fvSolution | 4 +- .../cartesianMesh/sawOctree/system/meshDict | 4 +- .../ship5415Octree/system/controlDict | 4 +- .../ship5415Octree/system/fvSchemes | 4 +- .../ship5415Octree/system/fvSolution | 4 +- .../ship5415Octree/system/meshDict | 4 +- .../cartesianMesh/singleOrifice/readme.txt | 2 +- .../singleOrifice/singleOrifice.stl | 39292 ++-- .../singleOrifice/system/controlDict | 4 +- .../singleOrifice/system/fvSchemes | 4 +- .../singleOrifice/system/fvSolution | 4 +- .../singleOrifice/system/meshDict | 12 +- .../mesh/cfMesh/tetMesh/cutCubeOctree/README | 2 +- .../tetMesh/cutCubeOctree/system/controlDict | 4 +- .../tetMesh/cutCubeOctree/system/fvSchemes | 4 +- .../tetMesh/cutCubeOctree/system/fvSolution | 4 +- .../tetMesh/cutCubeOctree/system/meshDict | 4 +- .../mesh/cfMesh/tetMesh/socketOctree/README | 2 +- .../cfMesh/tetMesh/socketOctree/socket.fms | 74 +- .../tetMesh/socketOctree/system/controlDict | 4 +- .../tetMesh/socketOctree/system/fvSchemes | 4 +- .../tetMesh/socketOctree/system/fvSolution | 4 +- .../tetMesh/socketOctree/system/meshDict | 4 +- .../fluid/constant/polyMesh/boundary | 2 + .../solid/constant/polyMesh/boundary | 2 + tutorials/solidMechanics/readMe.txt | 2 +- vagrantSandbox/skel/bootstrapFoam.sh | 2 +- 219 files changed, 161323 insertions(+), 161325 deletions(-) diff --git a/Changelog.current b/Changelog.current index 319041866..6f375633c 100644 --- a/Changelog.current +++ b/Changelog.current @@ -1,5 +1,5 @@ ################################################################################ -This file contains brief description of the changes introduced by merging +This file contains brief description of the changes introduced by merging branches There are two secions: feature and bugfix @@ -31,7 +31,7 @@ Updated wmake/rules for compilation with ICC 14 * processorPointPatch Author: Zeljko Tukovic; Merge: Dominik Christ -Correct interpolation of point data on processor boundaries after parallel +Correct interpolation of point data on processor boundaries after parallel topological changes diff --git a/ReleaseNotes b/ReleaseNotes index 38c1ff575..faaa85f00 100644 --- a/ReleaseNotes +++ b/ReleaseNotes @@ -42,9 +42,9 @@ December 2004) as release number 3.0. Visit http://foam-extend.org for more information. - OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and + OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and foam-extend are a community effort not endorsed by ESI Group. - + ** Installation foam-extend-3.1 can be compiled and runs on any linux system @@ -68,7 +68,7 @@ Binary packages are available for download at http://sourceforge.net/projects/openfoam-extend/ for the following systems: Ubuntu 14.04, Fedora 20 and Mac OS X. - + * Accompanying ThirdParty software: - gcc compatibility up to 4.8.2 - Paraview 4.0.1 @@ -86,7 +86,7 @@ - bison 2.7 - hwloc 1.7.2 - libccmio 2.6.1 - + ** Compatibility Upstream features from the OpenFOAM® code base are merged into foam-extend on regular basis. The interface format of @@ -328,8 +328,8 @@ user@machine> git log 3.0.. > commitLog http://sourceforge.net/apps/mantisbt/openfoam-extend ** How to contribute - All your contributions are highly welcome: New solvers, utilities and - models; bug fixes; documentation. The many ways of contributing and the + All your contributions are highly welcome: New solvers, utilities and + models; bug fixes; documentation. The many ways of contributing and the contribution process are described in detail at: http://sourceforge.net/p/openfoam-extend/wiki/HowToContribute/ diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index cba12f631..4695dede8 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -19,7 +19,7 @@ Table of Contents 9 List of Contributors: -1 Overview +1 Overview ----------- The foam-extend project is a fork of the OpenFOAM® open source library for Computational Fluid Dynamics (CFD). It is an open @@ -46,11 +46,11 @@ Table of Contents December 2004) as release number 3.0. Visit [http://foam-extend.org] for more information. - OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and + OPENFOAM® is a registered trademark of ESI Group. OpenFOAM-extend and foam-extend are a community effort not endorsed by ESI Group. - -2 Installation + +2 Installation --------------- foam-extend-3.1 can be compiled and runs on any linux system @@ -74,7 +74,7 @@ Table of Contents Binary packages are available for download at [http://sourceforge.net/projects/openfoam-extend/] for the following systems: Ubuntu 14.04, Fedora 20 and Mac OS X. - + * Accompanying ThirdParty software: - gcc compatibility up to 4.8.2 - Paraview 4.0.1 @@ -92,9 +92,9 @@ Table of Contents - bison 2.7 - hwloc 1.7.2 - libccmio 2.6.1 - -3 Compatibility + +3 Compatibility ---------------- Upstream features from the OpenFOAM® code base are merged into foam-extend on regular basis. The interface format of @@ -103,7 +103,7 @@ Table of Contents fixes and algorithmic improvements, considered more important than inter-operability. -4 Main differentiators between foam-extend and OpenFOAM +4 Main differentiators between foam-extend and OpenFOAM -------------------------------------------------------- A large number of features have been lost within the release of OpenFOAM since version 1.3, the code base has shrunk by more than @@ -184,7 +184,7 @@ Table of Contents * Approximately 6000 bug fixes in fundamental level libraries and discretisation techniques -5 New features in foam-extend-3.1, since foam-extend-3.0 +5 New features in foam-extend-3.1, since foam-extend-3.0 --------------------------------------------------------- The list of features is a result of the work of numerous contributors. The maintainers of foam-extend would formally like to @@ -307,7 +307,7 @@ Table of Contents - Template depth for block matrix support - Parallel efficiency improvements -6 Recent successful compilations and tests +6 Recent successful compilations and tests ------------------------------------------- * Ubuntu 14.04: @@ -337,18 +337,18 @@ Table of Contents [http://openfoam-extend.sourceforge.net/CDash/viewTest.php?buildid=743] -7 Reporting bugs +7 Reporting bugs ----------------- To report bugs, please use the MantisBT bugtracker at [http://sourceforge.net/apps/mantisbt/openfoam-extend] -8 How to contribute +8 How to contribute -------------------- - All your contributions are highly welcome: New solvers, utilities and - models; bug fixes; documentation. The many ways of contributing and the + All your contributions are highly welcome: New solvers, utilities and + models; bug fixes; documentation. The many ways of contributing and the contribution process are described in detail at: [http://sourceforge.net/p/openfoam-extend/wiki/HowToContribute/] -9 List of Contributors: +9 List of Contributors: ------------------------ See file ListOfContributors diff --git a/applications/solvers/finiteArea/liquidFilmFoam/readSolutionControls.H b/applications/solvers/finiteArea/liquidFilmFoam/readSolutionControls.H index 00930b2c1..dda7bf0d8 100644 --- a/applications/solvers/finiteArea/liquidFilmFoam/readSolutionControls.H +++ b/applications/solvers/finiteArea/liquidFilmFoam/readSolutionControls.H @@ -2,7 +2,7 @@ int nCorr = 0; if (aMesh.solutionDict().found("nOuterCorrectors")) { - nCorr = + nCorr = readInt(aMesh.solutionDict().lookup("nOuterCorrectors")); } else diff --git a/applications/solvers/finiteArea/liquidFilmFoam/surfaceCourantNo.H b/applications/solvers/finiteArea/liquidFilmFoam/surfaceCourantNo.H index 160797516..89718a940 100644 --- a/applications/solvers/finiteArea/liquidFilmFoam/surfaceCourantNo.H +++ b/applications/solvers/finiteArea/liquidFilmFoam/surfaceCourantNo.H @@ -40,7 +40,7 @@ scalar velMag = 0.0; if (aMesh.nInternalEdges()) { - edgeScalarField SfUfbyDelta = + edgeScalarField SfUfbyDelta = aMesh.edgeInterpolation::deltaCoeffs()*mag(phis); CoNum = max(SfUfbyDelta/aMesh.magLe()) @@ -53,7 +53,7 @@ if (aMesh.nInternalEdges()) } Info<< "Courant Number mean: " << meanCoNum - << " max: " << CoNum + << " max: " << CoNum << " velocity magnitude: " << velMag << endl; // ************************************************************************* // diff --git a/applications/solvers/immersedBoundary/icoIbFoam/Make/files b/applications/solvers/immersedBoundary/icoIbFoam/Make/files index 96a8e6f27..bccc003ee 100644 --- a/applications/solvers/immersedBoundary/icoIbFoam/Make/files +++ b/applications/solvers/immersedBoundary/icoIbFoam/Make/files @@ -1,3 +1,3 @@ -icoIbFoam.C +icoIbFoam.C EXE = $(FOAM_APPBIN)/icoIbFoam diff --git a/applications/solvers/immersedBoundary/porousSimpleIbFoam/Make/files b/applications/solvers/immersedBoundary/porousSimpleIbFoam/Make/files index f7992747e..1a063f7e8 100644 --- a/applications/solvers/immersedBoundary/porousSimpleIbFoam/Make/files +++ b/applications/solvers/immersedBoundary/porousSimpleIbFoam/Make/files @@ -1,3 +1,3 @@ -porousSimpleIbFoam.C +porousSimpleIbFoam.C EXE = $(FOAM_APPBIN)/porousSimpleIbFoam diff --git a/applications/solvers/immersedBoundary/simpleIbFoam/Make/files b/applications/solvers/immersedBoundary/simpleIbFoam/Make/files index ae685d71d..cea939f21 100644 --- a/applications/solvers/immersedBoundary/simpleIbFoam/Make/files +++ b/applications/solvers/immersedBoundary/simpleIbFoam/Make/files @@ -1,3 +1,3 @@ -simpleIbFoam.C +simpleIbFoam.C EXE = $(FOAM_APPBIN)/simpleIbFoam diff --git a/applications/solvers/solidMechanics/elasticIncrAcpSolidFoam/updateCrack.H b/applications/solvers/solidMechanics/elasticIncrAcpSolidFoam/updateCrack.H index 649ba6e4c..66a2ff1ba 100644 --- a/applications/solvers/solidMechanics/elasticIncrAcpSolidFoam/updateCrack.H +++ b/applications/solvers/solidMechanics/elasticIncrAcpSolidFoam/updateCrack.H @@ -12,7 +12,7 @@ nCoupledFacesToBreak = 0; // only consider tensile tractions normalTraction = max(normalTraction, scalar(0)); - + scalarField shearTraction = cohesiveZone.internalField() * mag( (I - Foam::sqr(n.internalField())) & traction.internalField() ); @@ -424,7 +424,7 @@ nCoupledFacesToBreak = 0; } faceToBreakTraction *= scaleFactor; - + topoChange = true; } diff --git a/applications/solvers/solidMechanics/readMe.txt b/applications/solvers/solidMechanics/readMe.txt index 446eef05b..a81c78519 100644 --- a/applications/solvers/solidMechanics/readMe.txt +++ b/applications/solvers/solidMechanics/readMe.txt @@ -23,7 +23,7 @@ The included solvers feature the following capabilities: arbitrary crack propagation custom boundary conditions Aitken's under-relaation for displacement field - + A number of people have contributed to the development of the solvers, mainly within Alojz Ivankovic's research group. The code has been assembled and is maintained by Philip Cardiff (University College Dublin), diff --git a/applications/utilities/immersedBoundary/ibContinuityError/Make/files b/applications/utilities/immersedBoundary/ibContinuityError/Make/files index 5a38df031..fe597de2d 100644 --- a/applications/utilities/immersedBoundary/ibContinuityError/Make/files +++ b/applications/utilities/immersedBoundary/ibContinuityError/Make/files @@ -1,3 +1,3 @@ -ibContinuityError.C +ibContinuityError.C EXE = $(FOAM_APPBIN)/ibContinuityError diff --git a/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C b/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C index c7b4fe7f3..17d78b20c 100644 --- a/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C +++ b/applications/utilities/mesh/conversion/gmshToFoam/gmshToFoam.C @@ -1095,7 +1095,7 @@ int main(int argc, char *argv[]) { mesh.addZones(List(0), fz, cz); } - + removeEmptyPatches(mesh); mesh.write(); diff --git a/applications/utilities/mesh/generation/cfMesh/FMSToVTK/FMSToVTK.C b/applications/utilities/mesh/generation/cfMesh/FMSToVTK/FMSToVTK.C index 747fb4e36..82f949d29 100644 --- a/applications/utilities/mesh/generation/cfMesh/FMSToVTK/FMSToVTK.C +++ b/applications/utilities/mesh/generation/cfMesh/FMSToVTK/FMSToVTK.C @@ -51,23 +51,23 @@ void writePointsToVTK { xmlTag xmlRoot("VTKFile"); xmlRoot.addAttribute("type", "PolyData"); - + xmlTag& xmlPolyData = xmlRoot.addChild("PolyData"); - + xmlTag& xmlPiece = xmlPolyData.addChild("Piece"); xmlPiece.addAttribute("NumberOfPoints", points.size()); - + xmlTag& xmlPoints = xmlPiece.addChild("Points"); - + xmlTag& xmlPointData = xmlPoints.addChild("DataArray"); xmlPointData.addAttribute("type", "Float32"); xmlPointData.addAttribute("NumberOfComponents", 3); xmlPointData.addAttribute("format", "ascii"); xmlPointData << points; - + OFstream os(fn); os << xmlRoot << endl; - + Info << "Created " << fn << endl; } @@ -83,12 +83,12 @@ void writePointsToVTK { // Create subaddressed points pointField newPoints(addr.size()); - + forAll(addr, i) { newPoints[i] = points[addr[i]]; } - + writePointsToVTK ( fn, @@ -108,23 +108,23 @@ void writeEdgesToVTK ) { labelList connectivity(edges.size()); - + forAll(edges, edgeI) { connectivity[edgeI] = 2*(edgeI+1); } - + xmlTag xmlRoot("VTKFile"); xmlRoot.addAttribute("type", "PolyData"); - + xmlTag& xmlPolyData = xmlRoot.addChild("PolyData"); - + xmlTag& xmlPiece = xmlPolyData.addChild("Piece"); xmlPiece.addAttribute("NumberOfPoints", points.size()); xmlPiece.addAttribute("NumberOfLines", edges.size()); - + xmlTag& xmlPoints = xmlPiece.addChild("Points"); - + xmlTag& xmlPointData = xmlPoints.addChild("DataArray"); xmlPointData.addAttribute("type", "Float32"); xmlPointData.addAttribute("NumberOfComponents", 3); @@ -144,7 +144,7 @@ void writeEdgesToVTK xmlConnectData.addAttribute("Name", "offsets"); xmlConnectData.addAttribute("format", "ascii"); xmlConnectData << connectivity; - + OFstream os(fn); os << xmlRoot << endl; @@ -165,28 +165,28 @@ void writeEdgesToVTK DynamicList newPoints; labelList newPointAddr(points.size(), -1); LongList newEdges(addr.size()); - + forAll(addr, addrI) { label edgeI = addr[addrI]; - + const edge& curEdge = edges[edgeI]; edge& newEdge = newEdges[addrI]; - + forAll(curEdge, i) { label pointId = curEdge[i]; - + if (newPointAddr[pointId] == -1) { newPoints.append(points[pointId]); newPointAddr[pointId] = newPoints.size()-1; } - + newEdge[i] = newPointAddr[pointId]; } } - + writeEdgesToVTK ( fn, @@ -207,30 +207,30 @@ void writeFacetsToVTK ) { labelList connectivity(facets.size()); - + forAll(facets, faceI) { connectivity[faceI] = 3*(faceI+1); } - + labelList regionData(facets.size()); - + forAll(facets, faceI) { regionData[faceI] = facets[faceI].region(); } - + xmlTag xmlRoot("VTKFile"); xmlRoot.addAttribute("type", "PolyData"); - + xmlTag& xmlPolyData = xmlRoot.addChild("PolyData"); - + xmlTag& xmlPiece = xmlPolyData.addChild("Piece"); xmlPiece.addAttribute("NumberOfPoints", points.size()); xmlPiece.addAttribute("NumberOfPolys", facets.size()); - + xmlTag& xmlPoints = xmlPiece.addChild("Points"); - + xmlTag& xmlPointData = xmlPoints.addChild("DataArray"); xmlPointData.addAttribute("type", "Float32"); xmlPointData.addAttribute("NumberOfComponents", 3); @@ -250,18 +250,18 @@ void writeFacetsToVTK xmlConnectData.addAttribute("Name", "offsets"); xmlConnectData.addAttribute("format", "ascii"); xmlConnectData << connectivity; - + xmlTag& xmlCellData = xmlPiece.addChild("CellData"); - + xmlTag& xmlCellDataArray = xmlCellData.addChild("DataArray"); xmlCellDataArray.addAttribute("type", "Int32"); xmlCellDataArray.addAttribute("Name", "region"); xmlCellDataArray.addAttribute("format", "ascii"); xmlCellDataArray << regionData; - + OFstream os(fn); os << xmlRoot << endl; - + Info << "Created " << fn << endl; } @@ -276,33 +276,33 @@ void writeFacetsToVTK const LongList& facets, const unallocLabelList& addr ) -{ +{ // Remove unused points and create subaddressed facets DynamicList newPoints; labelList newPointAddr(points.size(), -1); LongList newFacets(addr.size()); - + forAll(addr, addrI) { label faceI = addr[addrI]; - + const labelledTri& facet = facets[faceI]; const FixedList& pointIds = facet; FixedList newPointIds; - + forAll(pointIds, i) { label pointId = pointIds[i]; - + if (newPointAddr[pointId] == -1) { newPoints.append(points[pointId]); newPointAddr[pointId] = newPoints.size()-1; } - + newPointIds[i] = newPointAddr[pointId]; } - + newFacets[addrI] = labelledTri ( newPointIds[0], @@ -311,7 +311,7 @@ void writeFacetsToVTK facet.region() ); } - + writeFacetsToVTK ( fn, @@ -334,36 +334,36 @@ int main(int argc, char *argv[]) // Process commandline arguments fileName inFileName(args.args()[1]); fileName outPrefix(args.args()[2]); - + // Read original surface triSurf origSurf(inFileName); - + const pointField& points = origSurf.points(); const LongList& facets = origSurf.facets(); const LongList& edges = origSurf.featureEdges(); const geometricSurfacePatchList& patches = origSurf.patches(); - + label index = 0; - + // Create file structure for multiblock dataset mkDir(outPrefix); mkDir(outPrefix + "/patches"); mkDir(outPrefix + "/pointSubsets"); mkDir(outPrefix + "/edgeSubsets"); mkDir(outPrefix + "/faceSubsets"); - + // Create VTK multiblock dataset file xmlTag xmlRoot("VTKFile"); xmlRoot.addAttribute("type", "vtkMultiBlockDataSet"); xmlRoot.addAttribute("version", "1.0"); xmlRoot.addAttribute("byte_order", "LittleEndian"); - + xmlTag& xmlDataSet = xmlRoot.addChild("vtkMultiBlockDataSet"); - + // Write faces and feature edges { fileName fn = outPrefix / "facets.vtp"; - + writeFacetsToVTK ( outPrefix / "facets.vtp", @@ -371,16 +371,16 @@ int main(int argc, char *argv[]) points, facets ); - + xmlTag& tag = xmlDataSet.addChild("DataSet"); tag.addAttribute("index", Foam::name(index++)); tag.addAttribute("name", "facets"); tag.addAttribute("file", fn); } - + { fileName fn = outPrefix / "featureEdges.vtp"; - + writeEdgesToVTK ( outPrefix / "featureEdges.vtp", @@ -388,33 +388,33 @@ int main(int argc, char *argv[]) points, edges ); - + xmlTag& tag = xmlDataSet.addChild("DataSet"); tag.addAttribute("index", Foam::name(index++)); tag.addAttribute("name", "featureEdges"); tag.addAttribute("file", fn); } - + // Write patches // Create patch addressing List > patchAddr(patches.size()); - + forAll(facets, faceI) { patchAddr[facets[faceI].region()].append(faceI); } - + { xmlTag& xmlBlock = xmlDataSet.addChild("Block"); xmlBlock.addAttribute("index", Foam::name(index++)); xmlBlock.addAttribute("name", "patches"); - + forAll(patches, patchI) - { + { word patchName = patches[patchI].name(); - + fileName fn = outPrefix / "patches" / patchName + ".vtp"; - + writeFacetsToVTK ( fn, @@ -423,32 +423,32 @@ int main(int argc, char *argv[]) facets, patchAddr[patchI] ); - + xmlTag& tag = xmlBlock.addChild("DataSet"); tag.addAttribute("index", Foam::name(patchI)); tag.addAttribute("name", patchName); tag.addAttribute("file", fn); } } - + // Write point subsets { xmlTag& xmlBlock = xmlDataSet.addChild("Block"); xmlBlock.addAttribute("index", Foam::name(index++)); xmlBlock.addAttribute("name", "pointSubsets"); - + DynList