Merge Requests #38, #39, #40, #41, #42, #43, #44, #45, #46. Author: Pascal Beckstein. Merge: Henrik Rusche
#38: Fix for uniformDimensionedScalarField #39: Fix for the access function curMotionTimeIndex() of polyMesh #40: Fix for REMOVE action in the setSet utility #41: Prevent erroneous warnings about failed library loading if a new dynamicFvMesh is constructed multiple times #42: Add ALL option for cellSource pointToCell #43: Add faceSource rotatedBoxToFace #44: Add (dummy) tetPolyPatches for directMappedPatch and directMappedWall #45: Make finiteArea-related applications aware of regions #46: Tiny improvement .gitignore
This commit is contained in:
parent
512b75bef5
a90d267890
1344797239
80aa1d588f
ee7a5233e7
e655cbc255
244a23ff0a
b6a5ca2550
50574d8b1c
commit
bc6dca05f1
19 changed files with 720 additions and 30 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -13,6 +13,9 @@
|
|||
# file-browser settings - anywhere
|
||||
.directory
|
||||
|
||||
# KDevelop include-path files - anywhere
|
||||
.kdev_include_paths
|
||||
|
||||
# CVS recovered versions - anywhere
|
||||
.#*
|
||||
|
||||
|
@ -104,8 +107,8 @@ etc/cshrc
|
|||
etc/bashrc
|
||||
etc/settings.csh
|
||||
etc/settings.sh
|
||||
etc/pref.csh
|
||||
etc/pref.sh
|
||||
etc/prefs.csh
|
||||
etc/prefs.sh
|
||||
|
||||
# make sure that this settings file is not used
|
||||
etc/bashrc.preset
|
||||
|
|
|
@ -37,9 +37,11 @@ using namespace Foam;
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
# include "addRegionOption.H"
|
||||
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
# include "createMesh.H"
|
||||
# include "createNamedMesh.H"
|
||||
# include "createFaMesh.H"
|
||||
|
||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||
|
|
|
@ -50,6 +50,8 @@ using namespace Foam;
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
# include "addRegionOption.H"
|
||||
|
||||
argList::validArgs.append("STL mesh file");
|
||||
|
||||
argList args(argc, argv);
|
||||
|
|
|
@ -23,11 +23,18 @@
|
|||
faceRegion[faceI] = patch[faceI].region();
|
||||
}
|
||||
|
||||
word polyRegionName;
|
||||
|
||||
if (!args.optionReadIfPresent("region", polyRegionName))
|
||||
{
|
||||
polyRegionName = polyMesh::defaultRegion;
|
||||
}
|
||||
|
||||
polyMesh mesh
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
polyMesh::defaultRegion,
|
||||
polyRegionName,
|
||||
runTime.constant(),
|
||||
runTime
|
||||
),
|
||||
|
|
|
@ -63,9 +63,11 @@ public:
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
# include "addRegionOption.H"
|
||||
|
||||
# include "setRootCase.H"
|
||||
# include "createTime.H"
|
||||
# include "createMesh.H"
|
||||
# include "createNamedMesh.H"
|
||||
|
||||
// Reading faMeshDefinition dictionary
|
||||
IOdictionary faMeshDefinition
|
||||
|
|
|
@ -325,7 +325,7 @@ void printAllSets(const polyMesh& mesh, Ostream& os)
|
|||
|
||||
|
||||
// Physically remove a set
|
||||
void removeSet
|
||||
bool removeSet
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const word& setType,
|
||||
|
@ -346,7 +346,11 @@ void removeSet
|
|||
fileName object = objects[setName]->objectPath();
|
||||
Info<< "Removing file " << object << endl;
|
||||
rm(object);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -392,11 +396,7 @@ bool doCommand
|
|||
|
||||
IOobject::readOption r;
|
||||
|
||||
if (action == topoSetSource::REMOVE)
|
||||
{
|
||||
removeSet(mesh, setType, setName);
|
||||
}
|
||||
else if
|
||||
if
|
||||
(
|
||||
(action == topoSetSource::NEW)
|
||||
|| (action == topoSetSource::CLEAR)
|
||||
|
@ -414,7 +414,11 @@ bool doCommand
|
|||
currentSet.resize(max(currentSet.size(), typSize));
|
||||
}
|
||||
|
||||
if (!currentSetPtr.valid())
|
||||
if (action == topoSetSource::REMOVE)
|
||||
{
|
||||
ok = removeSet(mesh, setType, setName);
|
||||
}
|
||||
else if (!currentSetPtr.valid())
|
||||
{
|
||||
Info<< " Cannot construct/load set "
|
||||
<< topoSet::localPath(mesh, setName) << endl;
|
||||
|
|
|
@ -55,7 +55,7 @@ void faMeshDecomposition::distributeFaces()
|
|||
(
|
||||
IOobject
|
||||
(
|
||||
fvMesh::defaultRegion,
|
||||
GeoMesh<polyMesh>::mesh_.name(),
|
||||
processorDb.timeName(),
|
||||
processorDb
|
||||
)
|
||||
|
@ -252,7 +252,7 @@ void faMeshDecomposition::decomposeMesh(const bool filterEmptyPatches)
|
|||
(
|
||||
IOobject
|
||||
(
|
||||
fvMesh::defaultRegion,
|
||||
GeoMesh<polyMesh>::mesh_.name(),
|
||||
processorDb.timeName(),
|
||||
processorDb
|
||||
)
|
||||
|
@ -1073,7 +1073,7 @@ void faMeshDecomposition::decomposeMesh(const bool filterEmptyPatches)
|
|||
(
|
||||
IOobject
|
||||
(
|
||||
fvMesh::defaultRegion,
|
||||
GeoMesh<polyMesh>::mesh_.name(),
|
||||
processorDb.timeName(),
|
||||
processorDb
|
||||
)
|
||||
|
@ -1191,7 +1191,7 @@ bool faMeshDecomposition::writeDecomposition()
|
|||
(
|
||||
IOobject
|
||||
(
|
||||
fvMesh::defaultRegion,
|
||||
GeoMesh<polyMesh>::mesh_.name(),
|
||||
processorDb.timeName(),
|
||||
processorDb
|
||||
)
|
||||
|
|
|
@ -37,13 +37,29 @@ Foam::autoPtr<Foam::dynamicFvMesh> Foam::dynamicFvMesh::New(const IOobject& io)
|
|||
forAll(libNames,i) {
|
||||
const word libName("lib"+libNames[i]+".so");
|
||||
|
||||
bool ok=dlLibraryTable::open(libName);
|
||||
if(!ok) {
|
||||
WarningIn("dynamicFvMesh::New(const IOobject& io)")
|
||||
<< "Loading of dynamic mesh library " << libName
|
||||
bool libLoaded = false;
|
||||
|
||||
dlLibraryTable& ll = dlLibraryTable::loadedLibraries;
|
||||
|
||||
forAllConstIter(dlLibraryTable, ll, llI)
|
||||
{
|
||||
if (ll(llI.key()) == libName)
|
||||
{
|
||||
libLoaded = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!libLoaded)
|
||||
{
|
||||
bool ok=dlLibraryTable::open(libName);
|
||||
if(!ok) {
|
||||
WarningIn("dynamicFvMesh::New(const IOobject& io)")
|
||||
<< "Loading of dynamic mesh library " << libName
|
||||
<< " unsuccesful. Some dynamic mesh methods may not be "
|
||||
<< " available"
|
||||
<< endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -425,7 +425,7 @@ public:
|
|||
//- Return current motion time index
|
||||
label curMotionTimeIndex() const
|
||||
{
|
||||
return moving_;
|
||||
return curMotionTimeIndex_;
|
||||
}
|
||||
|
||||
//- Set the mesh to be moving
|
||||
|
|
|
@ -73,6 +73,7 @@ $(faceSources)/boundaryToFace/boundaryToFace.C
|
|||
$(faceSources)/zoneToFace/zoneToFace.C
|
||||
$(faceSources)/setToFace/setToFace.C
|
||||
$(faceSources)/boxToFace/boxToFace.C
|
||||
$(faceSources)/rotatedBoxToFace/rotatedBoxToFace.C
|
||||
|
||||
pointSources = sets/pointSources
|
||||
$(pointSources)/labelToPoint/labelToPoint.C
|
||||
|
|
|
@ -46,18 +46,21 @@ addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
|
|||
Foam::topoSetSource::addToUsageTable Foam::pointToCell::usage_
|
||||
(
|
||||
pointToCell::typeName,
|
||||
"\n Usage: pointToCell <pointSet> any\n\n"
|
||||
" Select all cells with any point in the pointSet\n\n"
|
||||
"\n Usage: pointToCell <pointSet> any|all\n\n"
|
||||
" Select cells with\n"
|
||||
" -any point in the pointSet\n"
|
||||
" -all points in the pointSet\n\n"
|
||||
);
|
||||
|
||||
template<>
|
||||
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
|
||||
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 2>::names[] =
|
||||
{
|
||||
"any"
|
||||
"any",
|
||||
"all"
|
||||
};
|
||||
|
||||
|
||||
const Foam::NamedEnum<Foam::pointToCell::pointAction, 1>
|
||||
const Foam::NamedEnum<Foam::pointToCell::pointAction, 2>
|
||||
Foam::pointToCell::pointActionNames_;
|
||||
|
||||
|
||||
|
@ -69,9 +72,9 @@ void Foam::pointToCell::combine(topoSet& set, const bool add) const
|
|||
pointSet loadedSet(mesh_, setName_);
|
||||
|
||||
|
||||
// Handle any selection
|
||||
if (option_ == ANY)
|
||||
{
|
||||
// Add cells with any point in loadedSet
|
||||
for
|
||||
(
|
||||
pointSet::const_iterator iter = loadedSet.begin();
|
||||
|
@ -89,6 +92,53 @@ void Foam::pointToCell::combine(topoSet& set, const bool add) const
|
|||
}
|
||||
}
|
||||
}
|
||||
else if (option_ == ALL)
|
||||
{
|
||||
// Add all cells whose points are all in set.
|
||||
|
||||
Map<label> numPoints(loadedSet.size());
|
||||
|
||||
forAllConstIter(pointSet, loadedSet, iter)
|
||||
{
|
||||
label pointI = iter.key();
|
||||
|
||||
const labelList& pCells = mesh_.pointCells()[pointI];
|
||||
|
||||
forAll(pCells, pCellI)
|
||||
{
|
||||
label cellI = pCells[pCellI];
|
||||
|
||||
Map<label>::iterator fndCell = numPoints.find(cellI);
|
||||
|
||||
if (fndCell == numPoints.end())
|
||||
{
|
||||
numPoints.insert(cellI, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
fndCell()++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Include cells that are referenced as many times as there are points
|
||||
// in cell -> all points of cell
|
||||
for
|
||||
(
|
||||
Map<label>::const_iterator iter = numPoints.begin();
|
||||
iter != numPoints.end();
|
||||
++iter
|
||||
)
|
||||
{
|
||||
label cellI = iter.key();
|
||||
|
||||
if (iter() == mesh_.cellPoints()[cellI].size())
|
||||
{
|
||||
addOrDelete(set, cellI, add);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -55,8 +55,8 @@ public:
|
|||
//- Enumeration defining the valid options
|
||||
enum pointAction
|
||||
{
|
||||
ANY // Cells using any point in set
|
||||
//ALL // Possible extension: cells whose all points are in set
|
||||
ANY, // Cells using any point in set
|
||||
ALL // Cells whose all points are in set
|
||||
};
|
||||
|
||||
private:
|
||||
|
@ -64,7 +64,7 @@ private:
|
|||
//- Add usage string
|
||||
static addToUsageTable usage_;
|
||||
|
||||
static const NamedEnum<pointAction, 1> pointActionNames_;
|
||||
static const NamedEnum<pointAction, 2> pointActionNames_;
|
||||
|
||||
//- Name of set to use
|
||||
word setName_;
|
||||
|
|
|
@ -0,0 +1,193 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / 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 "rotatedBoxToFace.H"
|
||||
#include "polyMesh.H"
|
||||
#include "cellModeller.H"
|
||||
|
||||
#include "addToRunTimeSelectionTable.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
defineTypeNameAndDebug(rotatedBoxToFace, 0);
|
||||
|
||||
addToRunTimeSelectionTable(topoSetSource, rotatedBoxToFace, word);
|
||||
|
||||
addToRunTimeSelectionTable(topoSetSource, rotatedBoxToFace, istream);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Foam::topoSetSource::addToUsageTable Foam::rotatedBoxToFace::usage_
|
||||
(
|
||||
rotatedBoxToFace::typeName,
|
||||
"\n Usage: rotatedBoxToFace (originx originy originz)"
|
||||
" (ix iy iz) (jx jy jz) (kx ky kz)\n\n"
|
||||
" Select all faces with faceCentre within parallelopiped\n\n"
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void Foam::rotatedBoxToFace::combine(topoSet& set, const bool add) const
|
||||
{
|
||||
// Define a cell for the box
|
||||
pointField boxPoints(8);
|
||||
boxPoints[0] = origin_;
|
||||
boxPoints[1] = origin_ + i_;
|
||||
boxPoints[2] = origin_ + i_ + j_;
|
||||
boxPoints[3] = origin_ + j_;
|
||||
boxPoints[4] = origin_ + k_;
|
||||
boxPoints[5] = origin_ + k_ + i_;
|
||||
boxPoints[6] = origin_ + k_ + i_ + j_;
|
||||
boxPoints[7] = origin_ + k_ + j_;
|
||||
|
||||
labelList boxVerts(8);
|
||||
forAll(boxVerts, i)
|
||||
{
|
||||
boxVerts[i] = i;
|
||||
}
|
||||
|
||||
const cellModel& hex = *(cellModeller::lookup("hex"));
|
||||
|
||||
// Get outwards pointing faces.
|
||||
faceList boxFaces(cellShape(hex, boxVerts).faces());
|
||||
|
||||
// Precalculate normals
|
||||
vectorField boxFaceNormals(boxFaces.size());
|
||||
forAll(boxFaces, i)
|
||||
{
|
||||
boxFaceNormals[i] = boxFaces[i].normal(boxPoints);
|
||||
|
||||
Pout<< "Face:" << i << " position:" << boxFaces[i].centre(boxPoints)
|
||||
<< " normal:" << boxFaceNormals[i] << endl;
|
||||
}
|
||||
|
||||
// Check whether face centre is inside all faces of box.
|
||||
|
||||
const pointField& ctrs = mesh_.faceCentres();
|
||||
|
||||
forAll(ctrs, faceI)
|
||||
{
|
||||
bool inside = true;
|
||||
|
||||
forAll(boxFaces, i)
|
||||
{
|
||||
const face& f = boxFaces[i];
|
||||
|
||||
if (((ctrs[faceI] - boxPoints[f[0]]) & boxFaceNormals[i]) > 0)
|
||||
{
|
||||
inside = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (inside)
|
||||
{
|
||||
addOrDelete(set, faceI, add);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct from components
|
||||
Foam::rotatedBoxToFace::rotatedBoxToFace
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const vector& origin,
|
||||
const vector& i,
|
||||
const vector& j,
|
||||
const vector& k
|
||||
)
|
||||
:
|
||||
topoSetSource(mesh),
|
||||
origin_(origin),
|
||||
i_(i),
|
||||
j_(j),
|
||||
k_(k)
|
||||
{}
|
||||
|
||||
|
||||
// Construct from dictionary
|
||||
Foam::rotatedBoxToFace::rotatedBoxToFace
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const dictionary& dict
|
||||
)
|
||||
:
|
||||
topoSetSource(mesh),
|
||||
origin_(dict.lookup("origin")),
|
||||
i_(dict.lookup("i")),
|
||||
j_(dict.lookup("j")),
|
||||
k_(dict.lookup("k"))
|
||||
{}
|
||||
|
||||
|
||||
// Construct from Istream
|
||||
Foam::rotatedBoxToFace::rotatedBoxToFace(const polyMesh& mesh, Istream& is)
|
||||
:
|
||||
topoSetSource(mesh),
|
||||
origin_(is),
|
||||
i_(is),
|
||||
j_(is),
|
||||
k_(is)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::rotatedBoxToFace::~rotatedBoxToFace()
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
void Foam::rotatedBoxToFace::applyToSet
|
||||
(
|
||||
const topoSetSource::setAction action,
|
||||
topoSet& set
|
||||
) const
|
||||
{
|
||||
if ((action == topoSetSource::NEW) || (action == topoSetSource::ADD))
|
||||
{
|
||||
Info<< " Adding faces with center within rotated box " << endl;
|
||||
|
||||
combine(set, true);
|
||||
}
|
||||
else if (action == topoSetSource::DELETE)
|
||||
{
|
||||
Info<< " Removing faces with center within rotated box " << endl;
|
||||
|
||||
combine(set, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
|
@ -0,0 +1,133 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / 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::rotatedBoxToFace
|
||||
|
||||
Description
|
||||
A topoSetSource to select faces based on face centres inside
|
||||
rotated/skewed box (parallelopiped?).
|
||||
|
||||
Box defined as origin and i,j,k vectors.
|
||||
E.g. box rotated 45 degrees around z-axis with sizes sqrt(0.2^2+0.2^2)
|
||||
(and extra large, 200 in z direction):
|
||||
@verbatim
|
||||
origin ( 0.4 0.4 -100);
|
||||
i ( 0.2 0.2 0);
|
||||
j (-0.2 0.2 0);
|
||||
k ( 0.0 0.0 100);
|
||||
@endverbatim
|
||||
|
||||
SourceFiles
|
||||
rotatedBoxToFace.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef rotatedBoxToFace_H
|
||||
#define rotatedBoxToFace_H
|
||||
|
||||
#include "topoSetSource.H"
|
||||
#include "treeBoundBox.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class rotatedBoxToFace Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class rotatedBoxToFace
|
||||
:
|
||||
public topoSetSource
|
||||
{
|
||||
|
||||
// Private data
|
||||
|
||||
//- Add usage string
|
||||
static addToUsageTable usage_;
|
||||
|
||||
|
||||
//- skewed box
|
||||
const vector origin_;
|
||||
const vector i_;
|
||||
const vector j_;
|
||||
const vector k_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
void combine(topoSet& set, const bool add) const;
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
TypeName("rotatedBoxToFace");
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from components
|
||||
rotatedBoxToFace
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const vector& origin,
|
||||
const vector& i,
|
||||
const vector& j,
|
||||
const vector& k
|
||||
);
|
||||
|
||||
//- Construct from dictionary
|
||||
rotatedBoxToFace(const polyMesh& mesh, const dictionary& dict);
|
||||
|
||||
//- Construct from Istream
|
||||
rotatedBoxToFace(const polyMesh& mesh, Istream&);
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
virtual ~rotatedBoxToFace();
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
virtual void applyToSet
|
||||
(
|
||||
const topoSetSource::setAction action,
|
||||
topoSet&
|
||||
) const;
|
||||
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -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
|
||||
|
||||
// ************************************************************************* //
|
||||
|
Reference in a new issue