From e054cad9beed67798134a4a18e59652d2bf4c23c Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 14 May 2015 20:31:22 +0100 Subject: [PATCH] Global controlDict pre-merge. --- .../mesh/cfMesh/FMSToSurface/FMSToSurface.C | 166 -- .../mesh/cfMesh/FMSToSurface/Make/files | 3 - .../mesh/cfMesh/FMSToSurface/Make/options | 9 - .../utilities/mesh/cfMesh/FMSToVTK/FMSToVTK.C | 545 ------- .../utilities/mesh/cfMesh/FMSToVTK/Make/files | 3 - .../mesh/cfMesh/FMSToVTK/Make/options | 9 - .../utilities/mesh/cfMesh/FMSToVTK/xmlTag.H | 297 ---- .../cfMesh/importSurfaceAsSubset/Make/files | 3 - .../cfMesh/importSurfaceAsSubset/Make/options | 9 - .../importSurfaceAsSubset.C | 84 - .../cfMesh/improveSymmetryPlanes/Make/files | 3 - .../cfMesh/improveSymmetryPlanes/Make/options | 7 - .../improveSymmetryPlanes.C | 57 - .../cfMesh/mergeSurfacePatches/Make/files | 3 - .../cfMesh/mergeSurfacePatches/Make/options | 9 - .../mergeSurfacePatches/mergeSurfacePatches.C | 403 ----- .../python/Salome/extractFeatureEdges.py | 131 -- .../cfMesh/python/Salome/salomeTriSurf.py | 363 ----- .../mesh/cfMesh/surfaceToFMS/Make/files | 3 - .../mesh/cfMesh/surfaceToFMS/Make/options | 9 - .../mesh/cfMesh/surfaceToFMS/surfaceToFMS.C | 63 - .../coupledLduMatrix/coupledLduMatrix.C | 33 +- src/foam/db/IOstreams/Pstreams/Pstream.C | 32 +- src/foam/db/IOstreams/Pstreams/Pstream.H | 3 +- src/foam/db/dictionary/dictionary.H | 46 +- src/foam/db/typeInfo/className.H | 2 +- .../GeometricField/GeometricBoundaryField.C | 42 +- .../derived/global/GlobalPointPatchField.C | 4 +- src/foam/global/argList/argList.C | 106 +- .../global/controlSwitches/constantsSwitch.H | 61 +- .../global/controlSwitches/controlSwitches.C | 230 +-- .../global/controlSwitches/controlSwitches.H | 221 ++- .../global/controlSwitches/controlSwitchesI.H | 201 ++- src/foam/global/controlSwitches/debugSwitch.H | 62 +- src/foam/global/controlSwitches/infoSwitch.H | 57 +- .../controlSwitches/optimisationSwitch.H | 105 +- .../{safe_bool.H => safeBool.H} | 43 +- .../{safe_boolI.H => safeBoolI.H} | 58 +- .../global/controlSwitches/tolerancesSwitch.H | 61 +- src/foam/global/debug/debug.C | 1345 +++++++++-------- src/foam/global/debug/debug.H | 63 +- .../dimensionedConstants.C | 15 +- .../dimensionedConstants.H | 1 + .../GGIInterpolationQuickRejectTests.C | 13 +- .../BlockLduMatrixUpdateInterfaces.C | 14 +- .../scalarBlockLduMatrixUpdateInterfaces.C | 14 +- .../lduMatrixUpdateMatrixInterfaces.C | 5 +- .../ProcessorTopology/ProcessorTopology.C | 2 +- .../mapPolyMesh/mapDistribute/mapDistribute.H | 4 +- .../constraint/processor/processorPolyPatch.C | 4 +- .../primitiveShapes/triangle/intersection.H | 7 +- .../immersedBoundaryFvPatch.C | 44 +- .../immersedBoundaryFvPatch.H | 8 +- .../immersedBoundaryFvPatchField.C | 17 +- .../immersedBoundaryFvPatchField.H | 4 +- src/lduSolvers/amg/amgPolicy/pamgPolicy.H | 2 +- .../tetFemMatrix/tetFemMatrixCheck.C | 5 +- .../simpleFoam/pitzDaily/0/epsilon | 7 +- .../incompressible/simpleFoam/pitzDaily/0/k | 1 - .../simpleFoam/pitzDaily/system/controlDict | 2 +- .../ship5415Octree/ship5415Octree.foam | 0 61 files changed, 1770 insertions(+), 3353 deletions(-) delete mode 100644 applications/utilities/mesh/cfMesh/FMSToSurface/FMSToSurface.C delete mode 100644 applications/utilities/mesh/cfMesh/FMSToSurface/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/FMSToSurface/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/FMSToVTK/FMSToVTK.C delete mode 100644 applications/utilities/mesh/cfMesh/FMSToVTK/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/FMSToVTK/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/FMSToVTK/xmlTag.H delete mode 100644 applications/utilities/mesh/cfMesh/importSurfaceAsSubset/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/importSurfaceAsSubset/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/importSurfaceAsSubset/importSurfaceAsSubset.C delete mode 100644 applications/utilities/mesh/cfMesh/improveSymmetryPlanes/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/improveSymmetryPlanes/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/improveSymmetryPlanes/improveSymmetryPlanes.C delete mode 100644 applications/utilities/mesh/cfMesh/mergeSurfacePatches/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/mergeSurfacePatches/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/mergeSurfacePatches/mergeSurfacePatches.C delete mode 100644 applications/utilities/mesh/cfMesh/python/Salome/extractFeatureEdges.py delete mode 100644 applications/utilities/mesh/cfMesh/python/Salome/salomeTriSurf.py delete mode 100644 applications/utilities/mesh/cfMesh/surfaceToFMS/Make/files delete mode 100644 applications/utilities/mesh/cfMesh/surfaceToFMS/Make/options delete mode 100644 applications/utilities/mesh/cfMesh/surfaceToFMS/surfaceToFMS.C rename src/foam/global/controlSwitches/{safe_bool.H => safeBool.H} (76%) rename src/foam/global/controlSwitches/{safe_boolI.H => safeBoolI.H} (68%) delete mode 100644 tutorials/mesh/cfMesh/cartesianMesh/ship5415Octree/ship5415Octree.foam diff --git a/applications/utilities/mesh/cfMesh/FMSToSurface/FMSToSurface.C b/applications/utilities/mesh/cfMesh/FMSToSurface/FMSToSurface.C deleted file mode 100644 index bd4ad4fde..000000000 --- a/applications/utilities/mesh/cfMesh/FMSToSurface/FMSToSurface.C +++ /dev/null @@ -1,166 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | cfMesh: A library for mesh generation - \\ / O peration | - \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com) - \\/ M anipulation | Copyright (C) Creative Fields, Ltd. -------------------------------------------------------------------------------- -License - This file is part of cfMesh. - - cfMesh is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation; either version 3 of the License, or (at your - option) any later version. - - cfMesh is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with cfMesh. If not, see . - -Description - Creates surface patches from surface subsets - -\*---------------------------------------------------------------------------*/ - -#include "argList.H" -#include "Time.H" -#include "triSurf.H" -#include "triSurfaceCopyParts.H" -#include "demandDrivenData.H" -#include "OFstream.H" - -using namespace Foam; - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -void exportFeatureEdges -( - const triSurf& origSurf, - const fileName& edgeFileName -) -{ - OFstream file(edgeFileName); - - const pointField& points = origSurf.points(); - labelList newPointLabel(points.size(), -1); - label nPoints(0); - - const edgeLongList& featureEdges = origSurf.featureEdges(); - forAll(featureEdges, feI) - { - const edge& e = featureEdges[feI]; - - if( newPointLabel[e[0]] == -1 ) - newPointLabel[e[0]] = nPoints++; - if( newPointLabel[e[1]] == -1 ) - newPointLabel[e[1]] = nPoints++; - } - - pointField pCopy(nPoints); - forAll(newPointLabel, pI) - { - if( newPointLabel[pI] < 0 ) - continue; - - pCopy[newPointLabel[pI]] = points[pI]; - } - - //- write the header - file << "# vtk DataFile Version 3.0\n"; - file << "vtk output\n"; - file << "ASCII\n"; - file << "DATASET POLYDATA\n"; - - //- write points - file << "POINTS " << pCopy.size() << " float\n"; - forAll(pCopy, pI) - { - const point& p = pCopy[pI]; - file << p.x() << ' ' << p.y() << ' ' << p.z() << '\n'; - } - - file << "\nLINES " << featureEdges.size() - << ' ' << 3*featureEdges.size() << nl; - forAll(featureEdges, edgeI) - { - const edge& e = featureEdges[edgeI]; - file << "2 " << newPointLabel[e[0]] - << token::SPACE << newPointLabel[e[1]] << nl; - } - file << nl; - - if( !file ) - FatalErrorIn - ( - "void exportFeatureEdges(const triSurf&, const fileName&)" - ) << "Writting of feature edges failed!" << exit(FatalError); -} - -int main(int argc, char *argv[]) -{ - argList::noParallel(); - argList::validArgs.clear(); - - argList::validArgs.append("input surface file"); - argList::validArgs.append("output surface file"); - argList::validOptions.insert("exportSubsets", ""); - argList::validOptions.insert("exportFeatureEdges", ""); - argList args(argc, argv); - - fileName inFileName(args.args()[1]); - fileName outFileName(args.args()[2]); - - fileName outFileNoExt = outFileName.lessExt(); - fileName outExtension = outFileName.ext(); - - Info << "Out file no ext " << outFileNoExt << endl; - Info << "Extension " << outExtension << endl; - - //- read the inout surface - triSurf origSurf(inFileName); - - //- write the surface in the requated format - origSurf.writeSurface(outFileName); - - //- export surface subsets as separate surface meshes - if( args.options().found("exportSubsets") ) - { - DynList