diff --git a/utilities/FPMAToMesh/FPMAToMesh.C b/utilities/FPMAToMesh/FPMAToMesh.C
deleted file mode 100644
index a22febc6378ac362c9a8e5c7a3b26f32870b29b8..0000000000000000000000000000000000000000
--- a/utilities/FPMAToMesh/FPMAToMesh.C
+++ /dev/null
@@ -1,216 +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
- Writes the mesh in fpma format readable by AVL's CfdWM
-
-\*---------------------------------------------------------------------------*/
-
-#include "argList.H"
-#include "Time.H"
-#include "polyMeshGenModifier.H"
-#include "IFstream.H"
-
-#include "Map.H"
-
-using namespace Foam;
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-
-int main(int argc, char *argv[])
-{
-
-# include "setRootCase.H"
-# include "createTime.H"
-
- fileName inFileName;
-
- Info << "Reading mesh from file " << endl;
- cin >> inFileName;
-
- IFstream file(inFileName);
-
- polyMeshGen pmg(runTime);
- polyMeshGenModifier meshModifier(pmg);
-
- label counter;
-
- //- read the number of vertices
- pointFieldPMG& points = meshModifier.pointsAccess();
- file >> counter;
-
- //- read points from file
- points.setSize(counter);
- forAll(points, pointI)
- {
- point p;
- file >> p.x();
- file >> p.y();
- file >> p.z();
-
- points[pointI] = p;
- }
-
- //- read the number of faces
- file >> counter;
-
- faceListPMG& faces = meshModifier.facesAccess();
-
- //- read faces from file
- faces.setSize(counter);
- forAll(faces, faceI)
- {
- file >> counter;
-
- face f;
- f.setSize(counter);
-
- forAll(f, pI)
- file >> f[pI];
-
- faces[faceI] = f.reverseFace();
- }
-
- //- read the number of cells
- file >> counter;
-
- //- read cells from file
- cellListPMG& cells = meshModifier.cellsAccess();
- cells.setSize(counter);
-
- forAll(cells, cellI)
- {
- file >> counter;
-
- cell& c = cells[cellI];
-
- c.setSize(counter);
-
- forAll(c, fI)
- file >> c[fI];
- }
-
- //- read selections
- file >> counter;
-
- wordList patchNames;
- Map subsetToPatch;
-
- for(label setI=0;setI> sName;
-
- label type;
- file >> type;
-
- label nEntries;
- file >> nEntries;
-
- switch( type )
- {
- case 3:
- {
- //- face selection
- const label id = pmg.addFaceSubset(sName);
-
- patchNames.setSize(patchNames.size()+1);
- patchNames[patchNames.size()-1] = sName;
- subsetToPatch.insert(id, patchNames.size()-1);
-
- Info << "Reading face selection " << sName << endl;
-
- for(label i=0;i> entryI;
- pmg.addFaceToSubset(id, entryI);
- }
- } break;
- case 2:
- {
- //- cell selection
- const label id = pmg.addCellSubset(sName);
-
- for(label i=0;i> entryI;
- pmg.addCellToSubset(id, entryI);
- }
- } break;
- case 1:
- {
- //- node selection
- const label id = pmg.addPointSubset(sName);
-
- for(label i=0;i> entryI;
- pmg.addPointToSubset(id, entryI);
- }
- } break;
- };
- }
-
- //- create patches from face selections
- VRWGraph boundaryFaces;
- labelLongList boundaryOwner;
- labelLongList boundaryPatches;
-
- const labelList& owner = pmg.owner();
- DynList faceSubsets;
- pmg.faceSubsetIndices(faceSubsets);
-
- forAll(faceSubsets, setI)
- {
- labelLongList setFaces;
- pmg.facesInSubset(faceSubsets[setI], setFaces);
-
- forAll(setFaces, i)
- {
- boundaryFaces.appendList(faces[setFaces[i]]);
- boundaryOwner.append(owner[setFaces[i]]);
- boundaryPatches.append(subsetToPatch[faceSubsets[setI]]);
- }
-
- pmg.removeFaceSubset(faceSubsets[setI]);
- }
-
- meshModifier.reorderBoundaryFaces();
- meshModifier.replaceBoundary
- (
- patchNames,
- boundaryFaces,
- boundaryOwner,
- boundaryPatches
- );
-
- pmg.write();
-
- Info << "End\n" << endl;
- return 0;
-}
-
-// ************************************************************************* //
diff --git a/utilities/FPMAToMesh/Make/files b/utilities/FPMAToMesh/Make/files
deleted file mode 100644
index 667e7b431a09d83d690659de5f757b9c65a2696f..0000000000000000000000000000000000000000
--- a/utilities/FPMAToMesh/Make/files
+++ /dev/null
@@ -1,3 +0,0 @@
-FPMAToMesh.C
-
-EXE = $(FOAM_USER_APPBIN)/FPMAToMesh
diff --git a/utilities/FPMAToMesh/Make/options b/utilities/FPMAToMesh/Make/options
deleted file mode 100644
index e0ad8cce2ee975c0ede26fb45222e7d766557200..0000000000000000000000000000000000000000
--- a/utilities/FPMAToMesh/Make/options
+++ /dev/null
@@ -1,8 +0,0 @@
-EXE_INC = \
- -I../../meshLibrary/lnInclude \
- -I$(LIB_SRC)/meshTools/lnInclude
-
-EXE_LIBS = \
- -L$(FOAM_USER_LIBBIN) \
- -lmeshLibrary \
- -lmeshTools
diff --git a/utilities/backScaleMesh/Make/files b/utilities/backScaleMesh/Make/files
deleted file mode 100644
index 926c92017b4e6a2aa59042731825575b9c609be5..0000000000000000000000000000000000000000
--- a/utilities/backScaleMesh/Make/files
+++ /dev/null
@@ -1,3 +0,0 @@
-backScaleMesh.C
-
-EXE = $(FOAM_USER_APPBIN)/backScaleMesh
diff --git a/utilities/backScaleMesh/Make/options b/utilities/backScaleMesh/Make/options
deleted file mode 100644
index ab3de10c7030c93790a4db67abb80f5bb77efb30..0000000000000000000000000000000000000000
--- a/utilities/backScaleMesh/Make/options
+++ /dev/null
@@ -1,10 +0,0 @@
-EXE_INC = \
- -I../../meshLibrary/lnInclude \
- -I$(LIB_SRC)/triSurface/lnInclude \
- -I$(LIB_SRC)/meshTools/lnInclude
-
-EXE_LIBS = \
- -ltriSurface \
- -L$(FOAM_USER_LIBBIN) \
- -lmeshLibrary \
- -lmeshTools
diff --git a/utilities/backScaleMesh/backScaleMesh.C b/utilities/backScaleMesh/backScaleMesh.C
deleted file mode 100644
index 34a3589c96bd7e592efb42deeb24add83da3c314..0000000000000000000000000000000000000000
--- a/utilities/backScaleMesh/backScaleMesh.C
+++ /dev/null
@@ -1,78 +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
- Reads the specified surface and writes it in the fms format.
-
-\*---------------------------------------------------------------------------*/
-
-#include "argList.H"
-#include "polyMeshGen.H"
-#include "coordinateModifier.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-// Main program:
-using namespace Foam;
-
-int main(int argc, char *argv[])
-{
-# include "setRootCase.H"
-# include "createTime.H"
-
- IOdictionary meshDict
- (
- IOobject
- (
- "meshDict",
- runTime.system(),
- runTime,
- IOobject::MUST_READ,
- IOobject::NO_WRITE
- )
- );
-
- polyMeshGen pmg(runTime);
- pmg.read();
-
- pointFieldPMG& pts = pmg.points();
-
- if( !meshDict.found("anisotropicSources") )
- FatalError << "Cannot backward scale mesh. anisotropicSources"
- << " does not exist in meshDict" << exit(FatalError);
-
- coordinateModifier cMod(meshDict.subDict("anisotropicSources"));
-
- //- apply backward transformation
- forAll(pts, i)
- pts[i] = cMod.backwardModifiedPoint(pts[i]);
-
- Info << "Writting mesh with backward transformed points" << endl;
- pmg.write();
-
- Info << "End\n" << endl;
-
- return 0;
-}
-
-
-// ************************************************************************* //
diff --git a/utilities/scaleSurfaceMesh/Make/files b/utilities/scaleSurfaceMesh/Make/files
deleted file mode 100644
index 03752013c105be8207b84638af8ef95ca5200a7c..0000000000000000000000000000000000000000
--- a/utilities/scaleSurfaceMesh/Make/files
+++ /dev/null
@@ -1,3 +0,0 @@
-scaleSurfaceMesh.C
-
-EXE = $(FOAM_USER_APPBIN)/scaleSurfaceMesh
diff --git a/utilities/scaleSurfaceMesh/Make/options b/utilities/scaleSurfaceMesh/Make/options
deleted file mode 100644
index ab3de10c7030c93790a4db67abb80f5bb77efb30..0000000000000000000000000000000000000000
--- a/utilities/scaleSurfaceMesh/Make/options
+++ /dev/null
@@ -1,10 +0,0 @@
-EXE_INC = \
- -I../../meshLibrary/lnInclude \
- -I$(LIB_SRC)/triSurface/lnInclude \
- -I$(LIB_SRC)/meshTools/lnInclude
-
-EXE_LIBS = \
- -ltriSurface \
- -L$(FOAM_USER_LIBBIN) \
- -lmeshLibrary \
- -lmeshTools
diff --git a/utilities/scaleSurfaceMesh/scaleSurfaceMesh.C b/utilities/scaleSurfaceMesh/scaleSurfaceMesh.C
deleted file mode 100644
index 1df833b22a2e07c4bc1cfb37151a3af04d8d19c5..0000000000000000000000000000000000000000
--- a/utilities/scaleSurfaceMesh/scaleSurfaceMesh.C
+++ /dev/null
@@ -1,126 +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
- Reads the specified surface and writes it in the fms format.
-
-\*---------------------------------------------------------------------------*/
-
-#include "argList.H"
-#include "IFstream.H"
-#include "fileName.H"
-#include "triSurf.H"
-#include "triSurfModifier.H"
-#include "helperFunctions.H"
-#include "demandDrivenData.H"
-#include "coordinateModifier.H"
-#include "checkMeshDict.H"
-#include "surfaceMeshGeometryModification.H"
-
-// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
-// Main program:
-using namespace Foam;
-
-int main(int argc, char *argv[])
-{
-# include "setRootCase.H"
-# include "createTime.H"
-
- IOdictionary meshDict
- (
- IOobject
- (
- "meshDict",
- runTime.system(),
- runTime,
- IOobject::MUST_READ,
- IOobject::NO_WRITE
- )
- );
-
- checkMeshDict cmd(meshDict);
-
- fileName surfaceFile = meshDict.lookup("surfaceFile");
- if( Pstream::parRun() )
- surfaceFile = ".."/surfaceFile;
-
- triSurf surface(runTime.path()/surfaceFile);
-
- surfaceMeshGeometryModification gMod(surface, meshDict);
-
- //- modify points
- const triSurf* modSurfPtr = gMod.modifyGeometry();
-
- Info << "Writting modified surface" << endl;
- modSurfPtr->writeSurface("modifiedSurf.stl");
-
- # ifdef DEBUGScaling
- //- apply backward modification
- Info << "Here" << endl;
- coordinateModifier cMod(meshDict.subDict("anisotropicSources"));
- Info << "Starting modifications" << endl;
- forAll(surface.points(), i)
- {
- Info << "\nOrig point " << i << " coordinates " << surface.points()[i]
- << " modified point " << modSurfPtr->points()[i] << endl;
- const point p = cMod.backwardModifiedPoint(modSurfPtr->points()[i]);
-
- if( mag(p - surface.points()[i]) > 1e-14 )
- {
- Warning << "Point " << i << " is different "
- << p
- << " from original " << surface.points()[i]
- << " modified point "
- << cMod.modifiedPoint(surface.points()[i]) << endl;
- ::exit(0);
- }
- }
-
- Info << "Backscaling Ok" << endl;
- ::exit(0);
- # endif
-
- surfaceMeshGeometryModification bgMod(*modSurfPtr, meshDict);
- const triSurf* backModSurfPtr = bgMod.revertGeometryModification();
-
- Info << "Writting backward transformed surface" << endl;
- backModSurfPtr->writeSurface("backwardModifiedSurf.stl");
-
- # ifdef DEBUGScaling
- forAll(backModSurfPtr->points(), pI)
- if( mag(backModSurfPtr->points()[pI] - surface.points()[pI]) > 1e-14 )
- Warning << "Point " << pI << " is different "
- << backModSurfPtr->points()[pI]
- << " from original " << surface.points()[pI] << endl;
- # endif
-
- deleteDemandDrivenData(modSurfPtr);
- deleteDemandDrivenData(backModSurfPtr);
-
- Info << "End\n" << endl;
-
- return 0;
-}
-
-
-// ************************************************************************* //