Added tetPolyPatches based on directMapped

This commit is contained in:
Pascal Beckstein 2016-02-10 18:08:07 +01:00
parent ac941215d5
commit 244a23ff0a
5 changed files with 277 additions and 0 deletions

View file

@ -17,6 +17,7 @@ cyclicGgiTetPolyPatch = $(constraintTetPolyPatches)/cyclicGgi
mixingPlaneTetPolyPatch = $(constraintTetPolyPatches)/mixingPlane
globalTetPolyPatch = $(constraintTetPolyPatches)/global
wallTetPolyPatch = $(derivedTetPolyPatches)/wall
directMappedTetPolyPatch = $(derivedTetPolyPatches)/directMapped
MapTetFemFields = $(tetPolyMesh)/MapTetFemFields
@ -39,6 +40,8 @@ $(mixingPlaneTetPolyPatch)/mixingPlaneTetPolyPatch.C
$(globalTetPolyPatch)/globalTetPolyPatch.C
$(globalTetPolyPatch)/calcGlobalTetPolyPatchAddr.C
$(wallTetPolyPatch)/wallTetPolyPatch.C
$(directMappedTetPolyPatch)/directMappedTetPolyPatch.C
$(directMappedTetPolyPatch)/directMappedWallTetPolyPatch.C
$(tetPolyBoundaryMesh)/tetPolyBoundaryMesh.C
$(tetPolyMesh)/tetPolyMeshLduAddressing.C
$(tetPolyMesh)/tetPolyMesh.C

View file

@ -0,0 +1,52 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 4.0
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "directMappedTetPolyPatch.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defineTypeNameAndDebug(directMappedTetPolyPatch, 0);
// Add the patch constructor functions to the hash tables
addToRunTimeSelectionTable
(
faceTetPolyPatch,
directMappedTetPolyPatch,
polyPatch
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View file

@ -0,0 +1,86 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 4.0
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::directMappedTetPolyPatch
Description
Direct mapped patch.
SourceFiles
directMappedTetPolyPatch.C
\*---------------------------------------------------------------------------*/
#ifndef directMappedTetPolyPatch_H
#define directMappedTetPolyPatch_H
#include "faceTetPolyPatch.H"
#include "directMappedPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class directMappedTetPolyPatch Declaration
\*---------------------------------------------------------------------------*/
class directMappedTetPolyPatch
:
public faceTetPolyPatch
{
public:
//- Runtime type information
TypeName(directMappedPolyPatch::typeName_());
// Constructors
//- Construct from polyPatch
directMappedTetPolyPatch
(
const polyPatch& patch,
const tetPolyBoundaryMesh& bm
)
:
faceTetPolyPatch(patch, bm)
{}
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //

View file

@ -0,0 +1,52 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 4.0
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
#include "directMappedWallTetPolyPatch.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
defineTypeNameAndDebug(directMappedWallTetPolyPatch, 0);
// Add the patch constructor functions to the hash tables
addToRunTimeSelectionTable
(
faceTetPolyPatch,
directMappedWallTetPolyPatch,
polyPatch
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* //

View file

@ -0,0 +1,84 @@
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 4.0
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For copyright notice see file Copyright
-------------------------------------------------------------------------------
License
This file is part of foam-extend.
foam-extend 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.
foam-extend 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 foam-extend. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::directMappedWallTetPolyPatch
Description
Direct mapped wall patch.
SourceFiles
directMappedWallTetPolyPatch.C
\*---------------------------------------------------------------------------*/
#ifndef directMappedWallTetPolyPatch_H
#define directMappedWallTetPolyPatch_H
#include "wallTetPolyPatch.H"
#include "directMappedWallPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class directMappedWallTetPolyPatch Declaration
\*---------------------------------------------------------------------------*/
class directMappedWallTetPolyPatch
:
public wallTetPolyPatch
{
public:
//- Runtime type information
TypeName(directMappedWallPolyPatch::typeName_());
// Constructors
//- Construct from polyPatch
directMappedWallTetPolyPatch
(
const polyPatch& patch,
const tetPolyBoundaryMesh& bm
)
:
wallTetPolyPatch(patch, bm)
{}
};
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#endif
// ************************************************************************* //