diff --git a/src/edgeMesh/Make/files b/src/edgeMesh/Make/files index eb1b88e103..7ec66485e7 100644 --- a/src/edgeMesh/Make/files +++ b/src/edgeMesh/Make/files @@ -1,5 +1,8 @@ primitiveEdgeMesh/primitiveEdgeMesh.C primitiveEdgeMesh/primitiveEdgeMeshIO.C + edgeMesh/edgeMesh.C +featureEdgeMesh/featureEdgeMesh.C + LIB = $(FOAM_LIBBIN)/libedgeMesh diff --git a/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.C b/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.C new file mode 100644 index 0000000000..88d748d439 --- /dev/null +++ b/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.C @@ -0,0 +1,72 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM 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 2 of the License, or (at your + option) any later version. + + OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +\*---------------------------------------------------------------------------*/ + +#include "featureEdgeMesh.H" + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + +Foam::featureEdgeMesh::featureEdgeMesh(const IOobject& io) +: + edgeMesh(io) +{} + + +Foam::featureEdgeMesh::featureEdgeMesh +( + const IOobject& io, + const pointField& points, + const edgeList& edges +) +: + edgeMesh(io, points, edges) +{} + + +Foam::featureEdgeMesh::featureEdgeMesh +( + const IOobject& io, + const edgeMesh& em +) +: + edgeMesh(io, em) +{} + + + +// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // + +Foam::featureEdgeMesh::~featureEdgeMesh() +{} + + +// * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // + + + +// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * // + + +// ************************************************************************* // diff --git a/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.H b/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.H new file mode 100644 index 0000000000..bd96b68cb4 --- /dev/null +++ b/src/edgeMesh/featureEdgeMesh/featureEdgeMesh.H @@ -0,0 +1,111 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM 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 2 of the License, or (at your + option) any later version. + + OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +Class + Foam::featureEdgeMesh + +Description + +SourceFiles + featureEdgeMeshI.H + featureEdgeMesh.C + +\*---------------------------------------------------------------------------*/ + +#ifndef featureEdgeMesh_H +#define featureEdgeMesh_H + +#include "edgeMesh.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +namespace Foam +{ + +/*---------------------------------------------------------------------------*\ + Class featureEdgeMesh Declaration +\*---------------------------------------------------------------------------*/ + +class featureEdgeMesh +: + public edgeMesh +{ + // Private data + + // Private Member Functions + + //- Disallow default bitwise copy construct + featureEdgeMesh(const featureEdgeMesh&); + + //- Disallow default bitwise assignment + void operator=(const featureEdgeMesh&); + + +public: + + // Constructors + + //- Construct (read) given an IOobject + featureEdgeMesh(const IOobject&); + + //- Construct from edgeMesh data + featureEdgeMesh + ( + const IOobject&, + const pointField&, + const edgeList& + ); + + //- Construct as copy + featureEdgeMesh(const IOobject&, const edgeMesh&); + + //- Destructor + ~featureEdgeMesh(); + + + // Member Functions + + // Access + + // Check + + // Edit + + // Write +}; + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +} // End namespace Foam + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#include "featureEdgeMeshI.H" + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +#endif + +// ************************************************************************* // diff --git a/src/edgeMesh/featureEdgeMesh/featureEdgeMeshI.H b/src/edgeMesh/featureEdgeMesh/featureEdgeMeshI.H new file mode 100644 index 0000000000..42bc929311 --- /dev/null +++ b/src/edgeMesh/featureEdgeMesh/featureEdgeMeshI.H @@ -0,0 +1,59 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | + \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd. + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM 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 2 of the License, or (at your + option) any later version. + + OpenFOAM 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 OpenFOAM; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +\*---------------------------------------------------------------------------*/ + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * // + + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + +// ************************************************************************* //