diff --git a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.H b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.H index 8d626099c34ae456dcdd735b3c23fab6db8c7f2e..177c2deb41e81f05bf5fedaf51c1f1e3059f912e 100644 --- a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -67,10 +67,10 @@ class AC3DsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - AC3DsurfaceFormat(const AC3DsurfaceFormat<Face>&); + AC3DsurfaceFormat(const AC3DsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const AC3DsurfaceFormat<Face>&); + void operator=(const AC3DsurfaceFormat<Face>&) = delete; public: @@ -101,10 +101,18 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Write UnsortedMeshedSurface, the output is always sorted by zones. - static void write(const fileName&, const UnsortedMeshedSurface<Face>&); + static void write + ( + const fileName&, + const UnsortedMeshedSurface<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C index 89e4f5eb638cd5bd8f66b75d282b2310566e2f86..9c2846efee3b01d04b3d39ca6d7e4d07cd9cda4f 100644 --- a/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/ac3d/AC3DsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, ac ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + AC3DsurfaceFormat, + labelledTri, + fileExtension, + ac +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,6 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, ac ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + AC3DsurfaceFormat, + labelledTri, + write, + fileExtension, + ac +); // write UnsortedMeshedSurface @@ -93,6 +110,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, ac ); +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + AC3DsurfaceFormat, + labelledTri, + write, + fileExtension, + ac +); } } diff --git a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormatRunTime.C index a4b00b40f0ccdb24606a2f380bb4aff92fbe379e..d4fd924b7b2eedf3fbb78122c2dbf89c524cf3cb 100644 --- a/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/fire/FLMAsurfaceFormatRunTime.C @@ -54,6 +54,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, flma ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + FLMAsurfaceFormat, + labelledTri, + write, + fileExtension, + flma +); // write MeshedSurfaceProxy (comnpressed versions of above) @@ -75,6 +84,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, flmaz ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + FLMAZsurfaceFormat, + labelledTri, + write, + fileExtension, + flmaz +); } } diff --git a/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.H b/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.H index 7a0175d0d29992e27c8b4ab475b1a15bfd5759e5..c39c005af511fd384220acdb7485c7f2bf120a36 100644 --- a/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,10 +60,10 @@ class GTSsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - GTSsurfaceFormat(const GTSsurfaceFormat<Face>&); + GTSsurfaceFormat(const GTSsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const GTSsurfaceFormat<Face>&); + void operator=(const GTSsurfaceFormat<Face>&) = delete; public: @@ -94,10 +94,18 @@ public: // Member Functions //- Write MeshedSurface - static void write(const fileName&, const MeshedSurface<Face>&); + static void write + ( + const fileName&, + const MeshedSurface<Face>& + ); //- Write UnsortedMeshedSurface, the output remains unsorted - static void write(const fileName&, const UnsortedMeshedSurface<Face>&); + static void write + ( + const fileName&, + const UnsortedMeshedSurface<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormatRunTime.C index 03fc0569ab2f48b15ed65b734a9a22eac2edcab2..35a6e95ba8a35521fc78ea500a947d1e0f122f8c 100644 --- a/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/gts/GTSsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, gts ); +addNamedTemplatedToRunTimeSelectionTable +( + UnsortedMeshedSurface, + GTSsurfaceFormat, + labelledTri, + fileExtension, + gts +); // write MeshedSurface addNamedTemplatedToMemberFunctionSelectionTable @@ -72,6 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, gts ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurface, + GTSsurfaceFormat, + labelledTri, + write, + fileExtension, + gts +); // write UnsortedMeshedSurface addNamedTemplatedToMemberFunctionSelectionTable @@ -92,6 +109,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, gts ); +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + GTSsurfaceFormat, + labelledTri, + write, + fileExtension, + gts +); } } diff --git a/src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.H b/src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.H index 65f22eecf7b4e5e3d6cefa4cbd66036558f871f4..d6b0ed0852bfefde27081808249b5335f7383d0a 100644 --- a/src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/nas/NASsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -68,10 +68,10 @@ class NASsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - NASsurfaceFormat(const NASsurfaceFormat<Face>&); + NASsurfaceFormat(const NASsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const NASsurfaceFormat<Face>&); + void operator=(const NASsurfaceFormat<Face>&) = delete; public: diff --git a/src/surfMesh/surfaceFormats/nas/NASsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/nas/NASsurfaceFormatRunTime.C index 4fca5cc1b6882df9908068b03d335d897e8504d1..572a9aa9827c703a29851875d660b5b56a3d1dbd 100644 --- a/src/surfMesh/surfaceFormats/nas/NASsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/nas/NASsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -35,7 +35,7 @@ namespace Foam namespace fileFormats { -// read MeshedSurface - .bdf (Bulk Data Format) +// read MeshedSurface - .bdf (Bulk Data Format) and nas (Nastran) addNamedTemplatedToRunTimeSelectionTable ( MeshedSurface, @@ -53,7 +53,6 @@ addNamedTemplatedToRunTimeSelectionTable nas ); -// read MeshedSurface - .nas (Nastran) addNamedTemplatedToRunTimeSelectionTable ( MeshedSurface, @@ -71,6 +70,23 @@ addNamedTemplatedToRunTimeSelectionTable nas ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + NASsurfaceFormat, + labelledTri, + fileExtension, + bdf +); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + NASsurfaceFormat, + labelledTri, + fileExtension, + nas +); + } } diff --git a/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.H b/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.H index 7162078175478fc366c91e7db9b33f6b255527af..dc472070371934b3ae70a4f259a8507607fb4fd9 100644 --- a/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,10 +60,10 @@ class OBJsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - OBJsurfaceFormat(const OBJsurfaceFormat<Face>&); + OBJsurfaceFormat(const OBJsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const OBJsurfaceFormat<Face>&); + void operator=(const OBJsurfaceFormat<Face>&) = delete; public: @@ -94,7 +94,11 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormatRunTime.C index a0d7ab518a16f1f39d15fca287bb047a02d85fe1..ff8b7ee1e51e98446518218c40cee2b001b0cddd 100644 --- a/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/obj/OBJsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, obj ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + OBJsurfaceFormat, + labelledTri, + fileExtension, + obj +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,6 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, obj ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + OBJsurfaceFormat, + labelledTri, + write, + fileExtension, + obj +); } } diff --git a/src/surfMesh/surfaceFormats/off/OFFsurfaceFormat.H b/src/surfMesh/surfaceFormats/off/OFFsurfaceFormat.H index 0fc6bdf6c67433d82b284fac2d3bcb97d48f94c3..654da0c93edc45a4d665cfb32bdd84fb87bb4b78 100644 --- a/src/surfMesh/surfaceFormats/off/OFFsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/off/OFFsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -68,10 +68,10 @@ class OFFsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - OFFsurfaceFormat(const OFFsurfaceFormat&); + OFFsurfaceFormat(const OFFsurfaceFormat&) = delete; //- Disallow default bitwise assignment - void operator=(const OFFsurfaceFormat&); + void operator=(const OFFsurfaceFormat&) = delete; public: @@ -102,7 +102,11 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/off/OFFsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/off/OFFsurfaceFormatRunTime.C index f3177520f87235beddb6d6970f5ba8234a9f75e5..6b355ecfe307ad6262564110b292d5630ec6141c 100644 --- a/src/surfMesh/surfaceFormats/off/OFFsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/off/OFFsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, off ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + OFFsurfaceFormat, + labelledTri, + fileExtension, + off +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,7 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, off ); - +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + OFFsurfaceFormat, + labelledTri, + write, + fileExtension, + off +); } } diff --git a/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.H b/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.H index 94fd8e1df0db177bb8509d16d0c55177d0d44c85..0a4e315f3ebcdc09382b889e6f6db3d3a4ed9740 100644 --- a/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -64,10 +64,10 @@ class SMESHsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - SMESHsurfaceFormat(const SMESHsurfaceFormat<Face>&); + SMESHsurfaceFormat(const SMESHsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const SMESHsurfaceFormat<Face>&); + void operator=(const SMESHsurfaceFormat<Face>&) = delete; public: @@ -86,7 +86,11 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Write object virtual void write(const fileName& name) const diff --git a/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormatRunTime.C index 34db152c9f10071d0e2e371988f1a3e49b714a5b..2bb1dae786398270446687f68b35e69985b2d6bf 100644 --- a/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/smesh/SMESHsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -54,6 +54,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, smesh ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + SMESHsurfaceFormat, + labelledTri, + write, + fileExtension, + smesh +); } } diff --git a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.H b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.H index 8d21f2cd870514f4fbd43fd1547206bcf786aa65..a0e3b39da3ac380ae069766132924b1cc2faeaae 100644 --- a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormat.H @@ -108,7 +108,11 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormatRunTime.C index 50e395ff48e2de6cb1430a74b0a176070be7df9b..866a0d5d1621d297d17c6d53f98ee0e98c4ac7ca 100644 --- a/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/starcd/STARCDsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, inp ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + STARCDsurfaceFormat, + labelledTri, + fileExtension, + inp +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,7 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, inp ); - +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + STARCDsurfaceFormat, + labelledTri, + write, + fileExtension, + inp +); } } diff --git a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormat.H b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormat.H index 76aaf028a327350f74f4bb737e10e90ff844476b..754ea005d92077276a7f84ef3a8526637db7621e 100644 --- a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -83,10 +83,10 @@ class STLsurfaceFormat //- Disallow default bitwise copy construct - STLsurfaceFormat(const STLsurfaceFormat<Face>&); + STLsurfaceFormat(const STLsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const STLsurfaceFormat<Face>&); + void operator=(const STLsurfaceFormat<Face>&) = delete; public: @@ -132,7 +132,11 @@ public: //- Write surface mesh components by proxy // as ASCII or BINARY, depending on the extension - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Write surface mesh components by proxy // as ASCII or BINARY or dependent on the extension @@ -159,7 +163,11 @@ public: //- Write UnsortedMeshedSurface // as ASCII or BINARY, depending on the extension - static void write(const fileName&, const UnsortedMeshedSurface<Face>&); + static void write + ( + const fileName&, + const UnsortedMeshedSurface<Face>& + ); //- Write UnsortedMeshedSurface // as ASCII or BINARY or dependent on the extension diff --git a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatRunTime.C index f50cff99c2a44a827ad99c4ca1c80f12b2c3a3e1..298da7e8e1d071522bf891103a4c0a1d92c1493b 100644 --- a/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "STLsurfaceFormat.H" +#include "labelledTri.H" #include "addToRunTimeSelectionTable.H" #include "addToMemberFunctionSelectionTable.H" @@ -52,6 +53,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, stl ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + STLsurfaceFormat, + labelledTri, + fileExtension, + stl +); // read MeshedSurface (binary) addNamedTemplatedToRunTimeSelectionTable @@ -70,6 +79,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, stlb ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + STLsurfaceFormat, + labelledTri, + fileExtension, + stlb +); // write MeshedSurfaceProxy (ascii) @@ -91,6 +108,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, stl ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + STLsurfaceFormat, + labelledTri, + write, + fileExtension, + stl +); // write MeshedSurfaceProxy (binary) addNamedTemplatedToMemberFunctionSelectionTable @@ -111,6 +137,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, stlb ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + STLsurfaceFormat, + labelledTri, + write, + fileExtension, + stlb +); // write UnsortedMeshedSurface (ascii) addNamedTemplatedToMemberFunctionSelectionTable @@ -131,6 +166,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, stl ); +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + STLsurfaceFormat, + labelledTri, + write, + fileExtension, + stl +); // write UnsortedMeshedSurface (binary) addNamedTemplatedToMemberFunctionSelectionTable @@ -151,6 +195,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, stlb ); +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + STLsurfaceFormat, + labelledTri, + write, + fileExtension, + stlb +); } } diff --git a/src/surfMesh/surfaceFormats/surfaceFormatsCore.H b/src/surfMesh/surfaceFormats/surfaceFormatsCore.H index 39218b9bc936555807128902272f0c48565753fb..73ccc8eff3b14de66634ba17fdd28a2c035a79ba 100644 --- a/src/surfMesh/surfaceFormats/surfaceFormatsCore.H +++ b/src/surfMesh/surfaceFormats/surfaceFormatsCore.H @@ -99,15 +99,26 @@ public: //- Return the local file name (within time directory) // NEEDS FIXING - static fileName localMeshFileName(const word& surfName=""); + static fileName localMeshFileName + ( + const word& surfName = word::null + ); //- Find instance with surfName // NEEDS FIXING - static fileName findMeshInstance(const Time&, const word& surfName=""); + static fileName findMeshInstance + ( + const Time&, + const word& surfName = word::null + ); //- Find mesh file with surfName // NEEDS FIXING - static fileName findMeshFile(const Time&, const word& surfName=""); + static fileName findMeshFile + ( + const Time&, + const word& surfName = word::null + ); // Constructors @@ -118,6 +129,7 @@ public: //- Destructor virtual ~surfaceFormatsCore(); + }; diff --git a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormat.H b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormat.H index 12834226f4f3ba20d12d5e8a43711105a265bba6..b4b914800a519c110b3b39e40655fd9ea2b0452f 100644 --- a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -71,10 +71,10 @@ class TRIsurfaceFormat ); //- Disallow default bitwise copy construct - TRIsurfaceFormat(const TRIsurfaceFormat<Face>&); + TRIsurfaceFormat(const TRIsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const TRIsurfaceFormat<Face>&); + void operator=(const TRIsurfaceFormat<Face>&) = delete; public: @@ -105,11 +105,19 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Write UnsortedMeshedSurface, // by default the output is not sorted by zones - static void write(const fileName&, const UnsortedMeshedSurface<Face>&); + static void write + ( + const fileName&, + const UnsortedMeshedSurface<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.H b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.H index 95fc0ffae59c50650d84357dc55ccdb82b5571ab..12ce08e3725fdc72d03e1f4b96313f7879baa186 100644 --- a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.H +++ b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatCore.H @@ -38,10 +38,6 @@ SourceFiles #include "surfaceFormatsCore.H" #include "triFace.H" -#include "IFstream.H" -#include "Ostream.H" -#include "OFstream.H" - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // namespace Foam @@ -74,10 +70,10 @@ class TRIsurfaceFormatCore // Private Member Functions //- Disallow default bitwise copy construct - TRIsurfaceFormatCore(const TRIsurfaceFormatCore&); + TRIsurfaceFormatCore(const TRIsurfaceFormatCore&) = delete; //- Disallow default bitwise assignment - void operator=(const TRIsurfaceFormatCore&); + void operator=(const TRIsurfaceFormatCore&) = delete; bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatRunTime.C index edceb53d08cf3f817b8f20fb9ffa34c276e49bd2..cd34f8311e9cfc7d155f548ea048fb4369321178 100644 --- a/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/tri/TRIsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, tri ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + TRIsurfaceFormat, + labelledTri, + fileExtension, + tri +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,6 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, tri ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + TRIsurfaceFormat, + labelledTri, + write, + fileExtension, + tri +); // write UnsortedMeshedSurface addNamedTemplatedToMemberFunctionSelectionTable @@ -92,6 +109,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, tri ); +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + TRIsurfaceFormat, + labelledTri, + write, + fileExtension, + tri +); } } diff --git a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormat.H b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormat.H index 0691f404141664fa22ce037f44abb9638d98d6f1..437eb249212441ffc2c574e3259ad8bca6836652 100644 --- a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -64,10 +64,10 @@ class VTKsurfaceFormat static void writeHeaderPolygons(Ostream&, const UList<Face>&); //- Disallow default bitwise copy construct - VTKsurfaceFormat(const VTKsurfaceFormat<Face>&); + VTKsurfaceFormat(const VTKsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const VTKsurfaceFormat<Face>&); + void operator=(const VTKsurfaceFormat<Face>&) = delete; public: @@ -89,6 +89,7 @@ public: ); } + //- Destructor virtual ~VTKsurfaceFormat() {} @@ -99,10 +100,18 @@ public: // Write //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); //- Write UnsortedMeshedSurface, the output remains unsorted - static void write(const fileName&, const UnsortedMeshedSurface<Face>&); + static void write + ( + const fileName&, + const UnsortedMeshedSurface<Face>& + ); //- Read from file virtual bool read(const fileName&); diff --git a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatCore.H b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatCore.H index d9e7ebdbc42ff1d44ff4e608cf1f7d839f6c9c3e..946440ddb0cf3734cc1a2bf6e99d81d2b207c2ea 100644 --- a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatCore.H +++ b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatCore.H @@ -35,9 +35,8 @@ SourceFiles #ifndef VTKsurfaceFormatCore_H #define VTKsurfaceFormatCore_H -#include "Ostream.H" -#include "OFstream.H" #include "MeshedSurface.H" +#include "Ostream.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatRunTime.C index 3636317223fba3fd8f045e3afb08ef1f50454411..5dc1aa2b67924030b56580baa58836cd7a8158ea 100644 --- a/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/vtk/VTKsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -52,6 +52,14 @@ addNamedTemplatedToRunTimeSelectionTable fileExtension, vtk ); +addNamedTemplatedToRunTimeSelectionTable +( + MeshedSurface, + VTKsurfaceFormat, + labelledTri, + fileExtension, + vtk +); // write MeshedSurfaceProxy addNamedTemplatedToMemberFunctionSelectionTable @@ -72,6 +80,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, vtk ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + VTKsurfaceFormat, + labelledTri, + write, + fileExtension, + vtk +); // write UnsortedMeshedSurface addNamedTemplatedToMemberFunctionSelectionTable @@ -92,7 +109,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, vtk ); - +addNamedTemplatedToMemberFunctionSelectionTable +( + UnsortedMeshedSurface, + VTKsurfaceFormat, + labelledTri, + write, + fileExtension, + vtk +); } } diff --git a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormat.H b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormat.H index 1dce035069ad8b0a83110b75826cd6198b33fc14..20caa634202d114ad3d5403c5e7238f365c5b74c 100644 --- a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormat.H +++ b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormat.H @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,10 +60,10 @@ class X3DsurfaceFormat // Private Member Functions //- Disallow default bitwise copy construct - X3DsurfaceFormat(const X3DsurfaceFormat<Face>&); + X3DsurfaceFormat(const X3DsurfaceFormat<Face>&) = delete; //- Disallow default bitwise assignment - void operator=(const X3DsurfaceFormat<Face>&); + void operator=(const X3DsurfaceFormat<Face>&) = delete; public: @@ -81,9 +81,14 @@ public: // Member Functions //- Write surface mesh components by proxy - static void write(const fileName&, const MeshedSurfaceProxy<Face>&); + static void write + ( + const fileName&, + const MeshedSurfaceProxy<Face>& + ); - //- Write object file + + //- Write object virtual void write(const fileName& name) const { write(name, MeshedSurfaceProxy<Face>(*this)); diff --git a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatCore.H b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatCore.H index 309fdd2380eedf1083d3360f029fed547d5d8910..751d91e2b25d5c3549f08a68c4aec8c55bf347a8 100644 --- a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatCore.H +++ b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatCore.H @@ -35,9 +35,8 @@ SourceFiles #ifndef X3DsurfaceFormatCore_H #define X3DsurfaceFormatCore_H -#include "Ostream.H" -#include "OFstream.H" #include "MeshedSurface.H" +#include "Ostream.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatRunTime.C b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatRunTime.C index aff02bfcc446a0883b2119161beee02b8d69fa22..5a15901df3844bb10066f21299cb2408d9bfacbc 100644 --- a/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatRunTime.C +++ b/src/surfMesh/surfaceFormats/x3d/X3DsurfaceFormatRunTime.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -53,6 +53,15 @@ addNamedTemplatedToMemberFunctionSelectionTable fileExtension, x3d ); +addNamedTemplatedToMemberFunctionSelectionTable +( + MeshedSurfaceProxy, + X3DsurfaceFormat, + labelledTri, + write, + fileExtension, + x3d +); } }