mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Updated headers to ensure the class name declared to Doxygen is in the appropriate namespace
Also moved global classes which should be in the Foam namespace into it.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
adjointOutletPressureFvPatchScalarField
|
||||
Foam::adjointOutletPressureFvPatchScalarField
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
adjointOutletVelocityFvPatchVectorField
|
||||
Foam::adjointOutletVelocityFvPatchVectorField
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
incompressibleThreePhaseMixture
|
||||
Foam::incompressibleThreePhaseMixture
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
threePhaseInterfaceProperties
|
||||
Foam::threePhaseInterfaceProperties
|
||||
|
||||
Description
|
||||
Properties to aid interFoam :
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::calcPointCells() const
|
||||
void Foam::sammMesh::calcPointCells() const
|
||||
{
|
||||
static const label UNIT_POINT_CELLS = 12;
|
||||
|
||||
@ -125,7 +125,7 @@ void sammMesh::calcPointCells() const
|
||||
}
|
||||
|
||||
|
||||
const labelListList& sammMesh::pointCells() const
|
||||
const Foam::labelListList& Foam::sammMesh::pointCells() const
|
||||
{
|
||||
if (!pointCellsPtr_)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,9 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Specialist version of face comparison to deal with
|
||||
// PROSTAR boundary format idiosyncracies
|
||||
bool sammMesh::sammEqualFace
|
||||
bool Foam::sammMesh::sammEqualFace
|
||||
(
|
||||
const face& boundaryFace,
|
||||
const face& cellFace
|
||||
@ -70,7 +68,7 @@ bool sammMesh::sammEqualFace
|
||||
}
|
||||
|
||||
|
||||
void sammMesh::createBoundaryFaces()
|
||||
void Foam::sammMesh::createBoundaryFaces()
|
||||
{
|
||||
forAll(boundary_, patchI)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::createPolyBoundary()
|
||||
void Foam::sammMesh::createPolyBoundary()
|
||||
{
|
||||
label nBoundaryFacesFound = 0;
|
||||
|
||||
@ -115,7 +115,10 @@ void sammMesh::createPolyBoundary()
|
||||
}
|
||||
|
||||
|
||||
List<polyPatch* > sammMesh::polyBoundaryPatches(const polyMesh& pMesh)
|
||||
Foam::List<Foam::polyPatch* > Foam::sammMesh::polyBoundaryPatches
|
||||
(
|
||||
const polyMesh& pMesh
|
||||
)
|
||||
{
|
||||
List<polyPatch* > p(boundary_.size());
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::createPolyCells()
|
||||
void Foam::sammMesh::createPolyCells()
|
||||
{
|
||||
// loop through all cell faces and create connectivity. This will produce
|
||||
// a global face list and will describe all cells as lists of face labels
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -23,15 +23,11 @@ License
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "error.H"
|
||||
#include "sammMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::fillSammAddressingTable()
|
||||
void Foam::sammMesh::fillSammAddressingTable()
|
||||
{
|
||||
// SAMM trim type 1: 8 models
|
||||
static label SammTrim1Rot0[10] = {1, 5, 6, 2, 8, 10, 4, 7, 3, 9};
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -26,16 +26,11 @@ Description
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "error.H"
|
||||
|
||||
#include "sammMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::fillSammCellShapeTable()
|
||||
void Foam::sammMesh::fillSammCellShapeTable()
|
||||
{
|
||||
// Fill the list by hand
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::fixCollapsedEdges()
|
||||
void Foam::sammMesh::fixCollapsedEdges()
|
||||
{
|
||||
cellFaces_.setSize(cellShapes_.size());
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::purgeCellShapes()
|
||||
void Foam::sammMesh::purgeCellShapes()
|
||||
{
|
||||
forAll(cellFaces_, cellI)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -36,7 +36,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::readBoundary()
|
||||
void Foam::sammMesh::readBoundary()
|
||||
{
|
||||
label nPatches=0, nFaces=0;
|
||||
labelList nPatchFaces(1000);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::addRegularCell
|
||||
void Foam::sammMesh::addRegularCell
|
||||
(
|
||||
const labelList& labels,
|
||||
const label nCreatedCells
|
||||
@ -135,7 +135,7 @@ void sammMesh::addRegularCell
|
||||
}
|
||||
|
||||
|
||||
void sammMesh::addSAMMcell
|
||||
void Foam::sammMesh::addSAMMcell
|
||||
(
|
||||
const label typeFlag,
|
||||
const labelList& globalLabels,
|
||||
@ -171,7 +171,7 @@ void sammMesh::addSAMMcell
|
||||
}
|
||||
|
||||
|
||||
void sammMesh::readCells()
|
||||
void Foam::sammMesh::readCells()
|
||||
{
|
||||
label nCells = 0;
|
||||
label maxLabel = -1;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::readCouples()
|
||||
void Foam::sammMesh::readCouples()
|
||||
{
|
||||
fileName couplesFileName(casePrefix_ + ".cpl");
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,21 +31,33 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
// Cell shape models
|
||||
const cellModel* sammMesh::unknownPtr_ = cellModeller::lookup("unknown");
|
||||
const cellModel* sammMesh::hexPtr_ = cellModeller::lookup("hex");
|
||||
const cellModel* sammMesh::wedgePtr_ = cellModeller::lookup("wedge");
|
||||
const cellModel* sammMesh::prismPtr_ = cellModeller::lookup("prism");
|
||||
const cellModel* sammMesh::pyrPtr_ = cellModeller::lookup("pyr");
|
||||
const cellModel* sammMesh::tetPtr_ = cellModeller::lookup("tet");
|
||||
const cellModel* sammMesh::tetWedgePtr_ = cellModeller::lookup("tetWedge");
|
||||
const Foam::cellModel* Foam::sammMesh::unknownPtr_ =
|
||||
Foam::cellModeller::lookup("unknown");
|
||||
const Foam::cellModel* Foam::sammMesh::hexPtr_ =
|
||||
Foam::cellModeller::lookup("hex");
|
||||
const Foam::cellModel* Foam::sammMesh::wedgePtr_ =
|
||||
Foam::cellModeller::lookup("wedge");
|
||||
const Foam::cellModel* Foam::sammMesh::prismPtr_ =
|
||||
Foam::cellModeller::lookup("prism");
|
||||
const Foam::cellModel* Foam::sammMesh::pyrPtr_ =
|
||||
Foam::cellModeller::lookup("pyr");
|
||||
const Foam::cellModel* Foam::sammMesh::tetPtr_ =
|
||||
Foam::cellModeller::lookup("tet");
|
||||
const Foam::cellModel* Foam::sammMesh::tetWedgePtr_ =
|
||||
Foam::cellModeller::lookup("tetWedge");
|
||||
|
||||
const cellModel* sammMesh::sammTrim1Ptr_ = cellModeller::lookup("sammTrim1");
|
||||
const cellModel* sammMesh::sammTrim2Ptr_ = cellModeller::lookup("sammTrim2");
|
||||
const cellModel* sammMesh::sammTrim3Ptr_ = cellModeller::lookup("sammTrim3");
|
||||
const cellModel* sammMesh::sammTrim4Ptr_ = cellModeller::lookup("sammTrim4");
|
||||
const cellModel* sammMesh::sammTrim5Ptr_ = cellModeller::lookup("sammTrim5");
|
||||
const cellModel* sammMesh::sammTrim8Ptr_ =
|
||||
cellModeller::lookup("hexagonalPrism");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim1Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim1");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim2Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim2");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim3Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim3");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim4Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim4");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim5Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim5");
|
||||
const Foam::cellModel* Foam::sammMesh::sammTrim8Ptr_ =
|
||||
Foam::cellModeller::lookup("hexagonalPrism");
|
||||
|
||||
// lookup table giving OpenFOAM face number when looked up with shape index
|
||||
// (first index) and STAR face number
|
||||
@ -59,7 +71,7 @@ const cellModel* sammMesh::sammTrim8Ptr_ =
|
||||
// However, at the moment I haven't got enough info to complete the toble and
|
||||
// there are no cases that break it. Please reconsider in the light of mode
|
||||
// information.
|
||||
const label sammMesh::shapeFaceLookup[19][9] =
|
||||
const Foam::label Foam::sammMesh::shapeFaceLookup[19][9] =
|
||||
{
|
||||
{-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 0 - empty+
|
||||
{-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 1 - empty+
|
||||
@ -87,22 +99,22 @@ const label sammMesh::shapeFaceLookup[19][9] =
|
||||
|
||||
// List of pointers used instead of pointer list o avoid
|
||||
// de-allocation problems
|
||||
List<const cellModel*> sammMesh::sammShapeLookup
|
||||
Foam::List<const Foam::cellModel*> Foam::sammMesh::sammShapeLookup
|
||||
(
|
||||
256,
|
||||
reinterpret_cast<cellModel*>(0)
|
||||
);
|
||||
|
||||
List<const label*> sammMesh::sammAddressingTable
|
||||
Foam::List<const Foam::label*> Foam::sammMesh::sammAddressingTable
|
||||
(
|
||||
256,
|
||||
reinterpret_cast<label*>(0)
|
||||
);
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
// Make polyhedral mesh data (packing)
|
||||
void sammMesh::createPolyMeshData()
|
||||
void Foam::sammMesh::createPolyMeshData()
|
||||
{
|
||||
Info<< "Creating a polyMesh" << endl;
|
||||
|
||||
@ -146,10 +158,10 @@ void sammMesh::createPolyMeshData()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct from components
|
||||
sammMesh::sammMesh
|
||||
Foam::sammMesh::sammMesh
|
||||
(
|
||||
const fileName& prefix,
|
||||
const Time& rt,
|
||||
@ -199,13 +211,10 @@ sammMesh::sammMesh
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
sammMesh::~sammMesh()
|
||||
Foam::sammMesh::~sammMesh()
|
||||
{
|
||||
deleteDemandDrivenData(pointCellsPtr_);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,14 +42,10 @@ SourceFiles
|
||||
#include "cellList.H"
|
||||
#include "polyPatchList.H"
|
||||
|
||||
#ifndef namespaceFoam
|
||||
#define namespaceFoam
|
||||
using namespace Foam;
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Forward declaration of classes
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class sammMesh Declaration
|
||||
@ -224,9 +220,6 @@ class sammMesh
|
||||
|
||||
public:
|
||||
|
||||
// Static data members
|
||||
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from case name
|
||||
@ -246,18 +239,13 @@ public:
|
||||
|
||||
//- Write mesh
|
||||
void writeMesh();
|
||||
|
||||
// Member Operators
|
||||
|
||||
// Friend Functions
|
||||
|
||||
// Friend Operators
|
||||
|
||||
// IOstream Operators
|
||||
// Ostream Operator
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -33,6 +33,8 @@ Description
|
||||
#include "Time.H"
|
||||
#include "sammMesh.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@ -55,7 +57,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
const scalar scaleFactor = args.optionLookupOrDefault("scale", 1.0);
|
||||
|
||||
# include "createTime.H"
|
||||
#include "createTime.H"
|
||||
|
||||
sammMesh makeMesh(args[1], runTime, scaleFactor);
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -32,7 +32,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void sammMesh::writeMesh()
|
||||
void Foam::sammMesh::writeMesh()
|
||||
{
|
||||
if (isShapeMesh_)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::calcPointCells() const
|
||||
void Foam::starMesh::calcPointCells() const
|
||||
{
|
||||
static const label UNIT_POINT_CELLS = 12;
|
||||
|
||||
@ -125,7 +125,7 @@ void starMesh::calcPointCells() const
|
||||
}
|
||||
|
||||
|
||||
const labelListList& starMesh::pointCells() const
|
||||
const Foam::labelListList& Foam::starMesh::pointCells() const
|
||||
{
|
||||
if (!pointCellsPtr_)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -28,17 +28,11 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "coupledFacePair.H"
|
||||
#include "error.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
#include "IOstreams.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct from components
|
||||
coupledFacePair::coupledFacePair
|
||||
Foam::coupledFacePair::coupledFacePair
|
||||
(
|
||||
const label coupleNo,
|
||||
const label mC, const label mF,
|
||||
@ -55,12 +49,9 @@ coupledFacePair::coupledFacePair
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
|
||||
|
||||
Ostream& operator<<(Ostream& os, const coupledFacePair& c)
|
||||
Foam::Ostream& Foam::operator<<(Ostream& os, const coupledFacePair& c)
|
||||
{
|
||||
os << "Master cell: " << c.masterCellID_
|
||||
<< " face: " << c.masterFaceID_ << endl
|
||||
@ -72,8 +63,4 @@ Ostream& operator<<(Ostream& os, const coupledFacePair& c)
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -32,7 +32,7 @@ Description
|
||||
|
||||
// Specialist version of face comparison to deal with
|
||||
// PROSTAR boundary format idiosyncracies
|
||||
bool starMesh::starEqualFace
|
||||
bool Foam::starMesh::starEqualFace
|
||||
(
|
||||
const face& boundaryFace,
|
||||
const face& cellFace
|
||||
@ -91,7 +91,7 @@ bool starMesh::starEqualFace
|
||||
}
|
||||
|
||||
|
||||
void starMesh::markBoundaryFaces()
|
||||
void Foam::starMesh::markBoundaryFaces()
|
||||
{
|
||||
// set size of mark lists for the boundary
|
||||
boundaryCellIDs_.setSize(boundary_.size());
|
||||
@ -175,7 +175,7 @@ void starMesh::markBoundaryFaces()
|
||||
}
|
||||
|
||||
|
||||
void starMesh::collectBoundaryFaces()
|
||||
void Foam::starMesh::collectBoundaryFaces()
|
||||
{
|
||||
Info<< "Collecting boundary faces" << endl;
|
||||
forAll(boundary_, patchI)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -36,7 +36,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::createCoupleMatches()
|
||||
void Foam::starMesh::createCoupleMatches()
|
||||
{
|
||||
// Loop through all couples and create intersection faces. Add all points
|
||||
// of intersection faces to the couple points lists. The numbering of
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::createPolyBoundary()
|
||||
void Foam::starMesh::createPolyBoundary()
|
||||
{
|
||||
label nBoundaryFacesFound = 0;
|
||||
|
||||
@ -294,7 +294,8 @@ void starMesh::createPolyBoundary()
|
||||
}
|
||||
|
||||
|
||||
List<polyPatch*> starMesh::polyBoundaryPatches(const polyMesh& pMesh)
|
||||
Foam::List<Foam::polyPatch*>
|
||||
Foam::starMesh::polyBoundaryPatches(const polyMesh& pMesh)
|
||||
{
|
||||
List<polyPatch*> p(boundary_.size());
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::createPolyCells()
|
||||
void Foam::starMesh::createPolyCells()
|
||||
{
|
||||
// loop through all cell faces and create connectivity. This will produce
|
||||
// a global face list and will describe all cells as lists of face labels
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::fixCollapsedEdges()
|
||||
void Foam::starMesh::fixCollapsedEdges()
|
||||
{
|
||||
cellFaces_.setSize(cellShapes_.size());
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -32,7 +32,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void starMesh::mergeCoupleFacePoints()
|
||||
void Foam::starMesh::mergeCoupleFacePoints()
|
||||
{
|
||||
// mark all used points by looping through all faces in two goes.
|
||||
// First, go into every cell and find min edge length. Use a
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -30,7 +30,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
void starMesh::purgeCellShapes()
|
||||
void Foam::starMesh::purgeCellShapes()
|
||||
{
|
||||
forAll(cellFaces_, cellI)
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -36,7 +36,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::readBoundary()
|
||||
void Foam::starMesh::readBoundary()
|
||||
{
|
||||
label nPatches=0, nFaces=0;
|
||||
labelList nPatchFaces(1000);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::addRegularCell
|
||||
void Foam::starMesh::addRegularCell
|
||||
(
|
||||
const labelList& labels,
|
||||
const label nCreatedCells
|
||||
@ -116,7 +116,7 @@ void starMesh::addRegularCell
|
||||
}
|
||||
|
||||
|
||||
void starMesh::addSAMMcell
|
||||
void Foam::starMesh::addSAMMcell
|
||||
(
|
||||
const labelList& labels,
|
||||
const label nCreatedCells
|
||||
@ -205,7 +205,7 @@ void starMesh::addSAMMcell
|
||||
}
|
||||
|
||||
|
||||
void starMesh::readCells()
|
||||
void Foam::starMesh::readCells()
|
||||
{
|
||||
label nCells = 0;
|
||||
label maxLabel = -1;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::readCouples()
|
||||
void Foam::starMesh::readCouples()
|
||||
{
|
||||
fileName couplesFileName(casePrefix_ + ".cpl");
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
label starMesh::readVtxLabel(IFstream& is)
|
||||
Foam::label Foam::starMesh::readVtxLabel(IFstream& is)
|
||||
{
|
||||
char lcs[16];
|
||||
|
||||
@ -46,7 +46,7 @@ label starMesh::readVtxLabel(IFstream& is)
|
||||
}
|
||||
|
||||
|
||||
scalar starMesh::readVtxCmpt(IFstream& is)
|
||||
Foam::scalar Foam::starMesh::readVtxCmpt(IFstream& is)
|
||||
{
|
||||
char lcs[17];
|
||||
|
||||
@ -61,7 +61,7 @@ scalar starMesh::readVtxCmpt(IFstream& is)
|
||||
}
|
||||
|
||||
|
||||
void starMesh::readToNl(IFstream& is)
|
||||
void Foam::starMesh::readToNl(IFstream& is)
|
||||
{
|
||||
char c;
|
||||
do
|
||||
@ -71,7 +71,7 @@ void starMesh::readToNl(IFstream& is)
|
||||
}
|
||||
|
||||
|
||||
void starMesh::readPoints(const scalar scaleFactor)
|
||||
void Foam::starMesh::readPoints(const scalar scaleFactor)
|
||||
{
|
||||
label nPoints = 0;
|
||||
label maxLabel = -1;
|
||||
@ -117,12 +117,12 @@ void starMesh::readPoints(const scalar scaleFactor)
|
||||
|
||||
points_.setSize(nPoints);
|
||||
|
||||
# ifdef starMesh_H
|
||||
#ifdef starMesh_H
|
||||
starPointID_.setSize(nPoints);
|
||||
|
||||
// Reset STAR point ID, just in case
|
||||
starPointID_ = -1;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
starPointLabelLookup_.setSize(maxLabel+1);
|
||||
|
||||
@ -146,9 +146,9 @@ void starMesh::readPoints(const scalar scaleFactor)
|
||||
|
||||
readToNl(pointsFile);
|
||||
|
||||
# ifdef starMesh_H
|
||||
#ifdef starMesh_H
|
||||
starPointID_[p] = pointLabel;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
starPointLabelLookup_[pointLabel] = p;
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,7 +31,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::readPoints(const scalar scaleFactor)
|
||||
void Foam::starMesh::readPoints(const scalar scaleFactor)
|
||||
{
|
||||
label nPoints = 0;
|
||||
label maxLabel = -1;
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -33,6 +33,8 @@ Description
|
||||
#include "Time.H"
|
||||
#include "starMesh.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -31,33 +31,41 @@ License
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
// Merge tolerances
|
||||
// Moni, tolerances:
|
||||
const scalar starMesh::smallMergeTol_ = 1e-3;
|
||||
const scalar starMesh::cpMergePointTol_ = 1e-4;
|
||||
|
||||
// const scalar starMesh::smallMergeTol_ = 4e-4;
|
||||
// const scalar starMesh::cpMergePointTol_ = 1e-3;
|
||||
const Foam::scalar Foam::starMesh::smallMergeTol_ = 1e-3;
|
||||
const Foam::scalar Foam::starMesh::cpMergePointTol_ = 1e-4;
|
||||
|
||||
// Cell shape models
|
||||
const cellModel* starMesh::unknownPtr_ = cellModeller::lookup("unknown");
|
||||
const cellModel* starMesh::tetPtr_ = cellModeller::lookup("tet");
|
||||
const cellModel* starMesh::pyrPtr_ = cellModeller::lookup("pyr");
|
||||
const cellModel* starMesh::tetWedgePtr_ = cellModeller::lookup("tetWedge");
|
||||
const cellModel* starMesh::prismPtr_ = cellModeller::lookup("prism");
|
||||
const cellModel* starMesh::wedgePtr_ = cellModeller::lookup("wedge");
|
||||
const cellModel* starMesh::hexPtr_ = cellModeller::lookup("hex");
|
||||
const Foam::cellModel* Foam::starMesh::unknownPtr_ =
|
||||
Foam::cellModeller::lookup("unknown");
|
||||
const Foam::cellModel* Foam::starMesh::tetPtr_ =
|
||||
Foam::cellModeller::lookup("tet");
|
||||
const Foam::cellModel* Foam::starMesh::pyrPtr_ =
|
||||
Foam::cellModeller::lookup("pyr");
|
||||
const Foam::cellModel* Foam::starMesh::tetWedgePtr_ =
|
||||
Foam::cellModeller::lookup("tetWedge");
|
||||
const Foam::cellModel* Foam::starMesh::prismPtr_ =
|
||||
Foam::cellModeller::lookup("prism");
|
||||
const Foam::cellModel* Foam::starMesh::wedgePtr_ =
|
||||
Foam::cellModeller::lookup("wedge");
|
||||
const Foam::cellModel* Foam::starMesh::hexPtr_ =
|
||||
Foam::cellModeller::lookup("hex");
|
||||
|
||||
const cellModel* starMesh::sammTrim1Ptr_ = cellModeller::lookup("sammTrim1");
|
||||
const cellModel* starMesh::sammTrim2Ptr_ = cellModeller::lookup("sammTrim2");
|
||||
const cellModel* starMesh::sammTrim3Ptr_ = cellModeller::lookup("sammTrim3");
|
||||
const cellModel* starMesh::sammTrim4Ptr_ = cellModeller::lookup("sammTrim4");
|
||||
const cellModel* starMesh::sammTrim5Ptr_ = cellModeller::lookup("sammTrim5");
|
||||
const cellModel* starMesh::sammTrim8Ptr_ =
|
||||
cellModeller::lookup("hexagonalPrism");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim1Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim1");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim2Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim2");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim3Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim3");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim4Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim4");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim5Ptr_ =
|
||||
Foam::cellModeller::lookup("sammTrim5");
|
||||
const Foam::cellModel* Foam::starMesh::sammTrim8Ptr_ =
|
||||
Foam::cellModeller::lookup("hexagonalPrism");
|
||||
|
||||
// Regular cell point addressing
|
||||
// SAMM point addressing
|
||||
const label starMesh::regularAddressingTable[6][8] =
|
||||
const Foam::label Foam::starMesh::regularAddressingTable[6][8] =
|
||||
{
|
||||
{ 0, 1, 2, 4, -1, -1, -1, -1}, // tet
|
||||
{ 0, 1, 2, 3, 4, -1, -1, -1}, // pyramid
|
||||
@ -69,7 +77,7 @@ const label starMesh::regularAddressingTable[6][8] =
|
||||
|
||||
|
||||
// SAMM point addressing
|
||||
const label starMesh::sammAddressingTable[9][12] =
|
||||
const Foam::label Foam::starMesh::sammAddressingTable[9][12] =
|
||||
{
|
||||
{-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1}, // samm0 - empty
|
||||
{ 3, 2, 6, 7, 11, 9, 1, 5, 4, 12, -1, -1}, // samm1+
|
||||
@ -97,7 +105,7 @@ const label starMesh::sammAddressingTable[9][12] =
|
||||
// Additionally, have in mind that this silliness does not allow matches
|
||||
// on face 7 and 8 of the samm cell.
|
||||
|
||||
const label starMesh::sammFacePermutationTable[24][8] =
|
||||
const Foam::label Foam::starMesh::sammFacePermutationTable[24][8] =
|
||||
{
|
||||
{-1, 1, 2, 3, 4, 5, 6, 7}, // permutation 0
|
||||
{-1, 3, 4, 5, 6, 1, 2, 7}, // permutation 1
|
||||
@ -125,7 +133,7 @@ const label starMesh::sammFacePermutationTable[24][8] =
|
||||
{-1, 6, 5, 2, 1, 3, 4, 7} // permutation 23
|
||||
};
|
||||
|
||||
const label starMesh::shapeFaceLookup[19][9] =
|
||||
const Foam::label Foam::starMesh::shapeFaceLookup[19][9] =
|
||||
{
|
||||
{-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 0 - empty+
|
||||
{-1, -1, -1, -1, -1, -1, -1, -1, -1}, // shape 1 - empty+
|
||||
@ -185,8 +193,7 @@ const label starMesh::shapeFaceLookup[19][9] =
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
// Make polyhedral mesh data (packing)
|
||||
void starMesh::createPolyMeshData()
|
||||
void Foam::starMesh::createPolyMeshData()
|
||||
{
|
||||
Info<< "Creating a polyMesh" << endl;
|
||||
|
||||
@ -199,9 +206,7 @@ void starMesh::createPolyMeshData()
|
||||
}
|
||||
|
||||
|
||||
// Clear extra storage before creation of the mesh to remove
|
||||
// a memory peak
|
||||
void starMesh::clearExtraStorage()
|
||||
void Foam::starMesh::clearExtraStorage()
|
||||
{
|
||||
Info<< "Clearing extra storage" << endl;
|
||||
|
||||
@ -218,10 +223,10 @@ void starMesh::clearExtraStorage()
|
||||
deleteDemandDrivenData(pointCellsPtr_);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct from components
|
||||
starMesh::starMesh
|
||||
Foam::starMesh::starMesh
|
||||
(
|
||||
const fileName& prefix,
|
||||
const Time& rt,
|
||||
@ -281,13 +286,10 @@ starMesh::starMesh
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
starMesh::~starMesh()
|
||||
Foam::starMesh::~starMesh()
|
||||
{
|
||||
deleteDemandDrivenData(pointCellsPtr_);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -58,11 +58,8 @@ SourceFiles
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifndef namespaceFoam
|
||||
#define namespaceFoam
|
||||
using namespace Foam;
|
||||
#endif
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class starMesh Declaration
|
||||
@ -310,6 +307,10 @@ public:
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -32,7 +32,7 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
void starMesh::writeMesh()
|
||||
void Foam::starMesh::writeMesh()
|
||||
{
|
||||
if (isShapeMesh_)
|
||||
{
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
pointFeatureEdgesTypes
|
||||
Foam::pointFeatureEdgesTypes
|
||||
|
||||
Description
|
||||
Holds information on the types of feature edges attached to feature points.
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedCell
|
||||
CGAL::indexedCell
|
||||
|
||||
Description
|
||||
An indexed form of CGAL::Triangulation_cell_base_3<K> used to keep
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedCellEnum
|
||||
Foam::indexedCellEnum
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedCellOps
|
||||
Namespace
|
||||
CGAL::indexedCellOps
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedVertex
|
||||
CGAL::indexedVertex
|
||||
|
||||
Description
|
||||
An indexed form of CGAL::Triangulation_vertex_base_3<K> used to keep
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedVertexEnum
|
||||
Foam::indexedVertexEnum
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -21,8 +21,8 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedVertexOps
|
||||
Namespace
|
||||
CGAL::indexedVertexOps
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
pointConversion
|
||||
Foam::pointConversion
|
||||
|
||||
Description
|
||||
Conversion functions between point (Foam::) and Point (CGAL::)
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
pointPairs
|
||||
Foam::pointPairs
|
||||
|
||||
Description
|
||||
HashSet of unique edges. The edges are stored as a pair of pairs:
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
CV2D
|
||||
Foam::CV2D
|
||||
|
||||
Description
|
||||
Conformal-Voronoi 2D automatic mesher with grid or read initial points
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedFace
|
||||
CGAL::indexedFace
|
||||
|
||||
Description
|
||||
An indexed form of CGAL::Triangulation_face_base_2<K> used to keep
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
indexedVertex
|
||||
CGAL::indexedVertex
|
||||
|
||||
Description
|
||||
An indexed form of CGAL::Triangulation_vertex_base_2<K> used to keep
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
meshDualiser
|
||||
Foam::meshDualiser
|
||||
|
||||
Description
|
||||
Creates dual of polyMesh. Every point becomes a cell (or multiple cells
|
||||
@ -40,7 +40,7 @@ Description
|
||||
In same way you can also preserve internal faces (e.g. faceZones)
|
||||
|
||||
SourceFiles
|
||||
meshDualiser.C
|
||||
Foam::meshDualiser.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
fileMonitor
|
||||
Foam::fileMonitor
|
||||
|
||||
Description
|
||||
Checking for changes to files.
|
||||
|
||||
@ -451,32 +451,40 @@ Foam::UPstream::commsTypes Foam::UPstream::defaultCommsType
|
||||
(
|
||||
commsTypeNames.read(Foam::debug::optimisationSwitches().lookup("commsType"))
|
||||
);
|
||||
// Register re-reader
|
||||
class addcommsTypeToOpt
|
||||
:
|
||||
public ::Foam::simpleRegIOobject
|
||||
{
|
||||
public:
|
||||
addcommsTypeToOpt(const char* name)
|
||||
:
|
||||
::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name)
|
||||
{}
|
||||
virtual ~addcommsTypeToOpt()
|
||||
{}
|
||||
virtual void readData(Foam::Istream& is)
|
||||
{
|
||||
Foam::UPstream::defaultCommsType = Foam::UPstream::commsTypeNames.read
|
||||
(
|
||||
is
|
||||
);
|
||||
}
|
||||
virtual void writeData(Foam::Ostream& os) const
|
||||
{
|
||||
os << Foam::UPstream::commsTypeNames[Foam::UPstream::defaultCommsType];
|
||||
}
|
||||
};
|
||||
addcommsTypeToOpt addcommsTypeToOpt_("commsType");
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
// Register re-reader
|
||||
class addcommsTypeToOpt
|
||||
:
|
||||
public ::Foam::simpleRegIOobject
|
||||
{
|
||||
public:
|
||||
|
||||
addcommsTypeToOpt(const char* name)
|
||||
:
|
||||
::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name)
|
||||
{}
|
||||
|
||||
virtual ~addcommsTypeToOpt()
|
||||
{}
|
||||
|
||||
virtual void readData(Foam::Istream& is)
|
||||
{
|
||||
UPstream::defaultCommsType = UPstream::commsTypeNames.read
|
||||
(
|
||||
is
|
||||
);
|
||||
}
|
||||
|
||||
virtual void writeData(Foam::Ostream& os) const
|
||||
{
|
||||
os << UPstream::commsTypeNames[UPstream::defaultCommsType];
|
||||
}
|
||||
};
|
||||
|
||||
addcommsTypeToOpt addcommsTypeToOpt_("commsType");
|
||||
}
|
||||
|
||||
// Default communicator
|
||||
Foam::label Foam::UPstream::worldComm(0);
|
||||
|
||||
@ -74,35 +74,42 @@ Foam::regIOobject::fileCheckTypes Foam::regIOobject::fileModificationChecking
|
||||
)
|
||||
)
|
||||
);
|
||||
// Register re-reader
|
||||
class addfileModificationCheckingToOpt
|
||||
:
|
||||
public ::Foam::simpleRegIOobject
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
public:
|
||||
addfileModificationCheckingToOpt(const char* name)
|
||||
// Register re-reader
|
||||
class addfileModificationCheckingToOpt
|
||||
:
|
||||
::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name)
|
||||
{}
|
||||
virtual ~addfileModificationCheckingToOpt()
|
||||
{}
|
||||
virtual void readData(Foam::Istream& is)
|
||||
public ::Foam::simpleRegIOobject
|
||||
{
|
||||
Foam::regIOobject::fileModificationChecking =
|
||||
Foam::regIOobject::fileCheckTypesNames.read(is);
|
||||
}
|
||||
virtual void writeData(Foam::Ostream& os) const
|
||||
{
|
||||
os << Foam::regIOobject::fileCheckTypesNames
|
||||
[
|
||||
Foam::regIOobject::fileModificationChecking
|
||||
];
|
||||
}
|
||||
};
|
||||
addfileModificationCheckingToOpt addfileModificationCheckingToOpt_
|
||||
(
|
||||
"fileModificationChecking"
|
||||
);
|
||||
public:
|
||||
|
||||
addfileModificationCheckingToOpt(const char* name)
|
||||
:
|
||||
::Foam::simpleRegIOobject(Foam::debug::addOptimisationObject, name)
|
||||
{}
|
||||
|
||||
virtual ~addfileModificationCheckingToOpt()
|
||||
{}
|
||||
|
||||
virtual void readData(Foam::Istream& is)
|
||||
{
|
||||
regIOobject::fileModificationChecking =
|
||||
regIOobject::fileCheckTypesNames.read(is);
|
||||
}
|
||||
|
||||
virtual void writeData(Foam::Ostream& os) const
|
||||
{
|
||||
os << regIOobject::fileCheckTypesNames
|
||||
[regIOobject::fileModificationChecking];
|
||||
}
|
||||
};
|
||||
|
||||
addfileModificationCheckingToOpt addfileModificationCheckingToOpt_
|
||||
(
|
||||
"fileModificationChecking"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
bool Foam::regIOobject::masterOnlyReading = false;
|
||||
|
||||
@ -21,6 +21,9 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
Foam::RegisterSwitch
|
||||
|
||||
Description
|
||||
Class and registration macros for InfoSwitches and OptimisationSwitches
|
||||
to support reading from system/controlDict and dynamic update.
|
||||
@ -34,10 +37,17 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class RegisterSwitch Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
template<class Type>
|
||||
class RegisterSwitch
|
||||
:
|
||||
public ::Foam::simpleRegIOobject
|
||||
public simpleRegIOobject
|
||||
{
|
||||
Type& optSwitch_;
|
||||
|
||||
@ -50,7 +60,7 @@ public:
|
||||
Type& optSwitch
|
||||
)
|
||||
:
|
||||
::Foam::simpleRegIOobject(registryFn, name),
|
||||
simpleRegIOobject(registryFn, name),
|
||||
optSwitch_(optSwitch)
|
||||
{}
|
||||
|
||||
@ -69,17 +79,23 @@ public:
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#define CONCAT(x, y) x ## y
|
||||
#define CONCAT2(x, y) CONCAT(x, y)
|
||||
#define FILE_UNIQUE(x) CONCAT2(x, __LINE__)
|
||||
|
||||
#define registerOptSwitch(Name, Type, Switch) \
|
||||
static RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
|
||||
static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
|
||||
(Foam::debug::addOptimisationObject, Name, Switch)
|
||||
|
||||
|
||||
#define registerInfoSwitch(Name, Type, Switch) \
|
||||
static RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
|
||||
static Foam::RegisterSwitch<Type> FILE_UNIQUE(_addToOpt_) \
|
||||
(Foam::debug::addInfoObject, Name, Switch)
|
||||
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
scalarMatrices
|
||||
Foam::scalarMatrices
|
||||
|
||||
Description
|
||||
Scalar matrices
|
||||
|
||||
@ -25,7 +25,7 @@ Typedef
|
||||
Foam::Scalar
|
||||
|
||||
Description
|
||||
Single floating point number
|
||||
Single floating point number (float or double)
|
||||
|
||||
SourceFiles
|
||||
Scalar.C
|
||||
@ -34,6 +34,11 @@ SourceFiles
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// template specialisation for pTraits<Scalar>
|
||||
template<>
|
||||
class pTraits<Scalar>
|
||||
@ -314,5 +319,8 @@ Scalar readScalar(Istream&);
|
||||
Istream& operator>>(Istream&, Scalar&);
|
||||
Ostream& operator<<(Ostream&, const Scalar);
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -85,8 +85,21 @@ inline Scalar func(const Scalar s) \
|
||||
return ::func(s); \
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "Scalar.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
inline Scalar hypot(const Scalar x, const Scalar y)
|
||||
{
|
||||
return ::hypot(x, y);
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -85,8 +85,21 @@ inline Scalar func(const Scalar s) \
|
||||
return ::func##f(s); \
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#include "Scalar.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
inline Scalar hypot(const Scalar x, const Scalar y)
|
||||
{
|
||||
return ::hypotf(x, y);
|
||||
|
||||
@ -25,7 +25,7 @@ License
|
||||
|
||||
#include "error.H"
|
||||
#include "products.H"
|
||||
#include "VectorSpaceM.H"
|
||||
#include "VectorSpaceOps.H"
|
||||
#include "ops.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -1,3 +1,43 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ 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 3 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, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
Foam::VectorSpaceOps
|
||||
|
||||
Description
|
||||
Operator functions for VectorSpace.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef VectorSpaceOps_H
|
||||
#define VectorSpaceOps_H
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
template<int N, int I>
|
||||
class VectorSpaceOps
|
||||
@ -81,3 +121,14 @@ public:
|
||||
static inline void op(V& vs, const V1&, const V1&, Op)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
temperatureCoupledBase
|
||||
Foam::temperatureCoupledBase
|
||||
|
||||
Description
|
||||
Common functions for use in temperature coupled boundaries. For now only
|
||||
|
||||
@ -22,9 +22,8 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
Foam::
|
||||
compressible::
|
||||
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
|
||||
Foam::compressible::
|
||||
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField
|
||||
|
||||
Description
|
||||
Mixed boundary condition for temperature, to be used for heat-transfer
|
||||
|
||||
@ -22,9 +22,8 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
Foam::
|
||||
compressible::
|
||||
turbulentTemperatureRadCoupledMixedFvPatchScalarField
|
||||
Foam::compressible::
|
||||
turbulentTemperatureRadCoupledMixedFvPatchScalarField
|
||||
|
||||
Description
|
||||
Mixed boundary condition for temperature and radiation heat transfer
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
extrudePatchMesh
|
||||
Foam::extrudePatchMesh
|
||||
|
||||
Description
|
||||
Mesh at a patch created on the fly. The following entry should be used
|
||||
@ -194,4 +194,3 @@ public:
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
tetDecomposer
|
||||
Foam::tetDecomposer
|
||||
|
||||
Description
|
||||
Decomposes polyMesh into tets.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
pointLinear
|
||||
Foam::pointLinear
|
||||
|
||||
Description
|
||||
Face-point interpolation scheme class derived from linear and
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
surfaceDisplacementPointPatchVectorField
|
||||
Foam::surfaceDisplacementPointPatchVectorField
|
||||
|
||||
Description
|
||||
Displacement fixed by projection onto triSurface.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
coalCloud
|
||||
Foam::coalCloud
|
||||
|
||||
Description
|
||||
Cloud class to introduce coal parcels
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
coalParcel
|
||||
Foam::coalParcel
|
||||
|
||||
Description
|
||||
Definition of coal parcel
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
COxidationDiffusionLimitedRate
|
||||
Foam::COxidationDiffusionLimitedRate
|
||||
|
||||
Description
|
||||
Diffusion limited rate surface reaction model for coal parcels. Limited to:
|
||||
@ -40,12 +40,15 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Forward class declarations
|
||||
template<class CloudType>
|
||||
class COxidationDiffusionLimitedRate;
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class COxidationDiffusionLimitedRate Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
COxidationHurtMitchell
|
||||
Foam::COxidationHurtMitchell
|
||||
|
||||
Description
|
||||
Char oxidation model given by Hurt and Mitchell:
|
||||
@ -41,7 +41,7 @@ Description
|
||||
Model validity:
|
||||
Gas temperature: Tc > 1500 K
|
||||
Particle sizes: 75 um -> 200 um
|
||||
Pox > 0.3 atm
|
||||
Pox > 0.3 atm
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
COxidationIntrinsicRate
|
||||
Foam::COxidationIntrinsicRate
|
||||
|
||||
Description
|
||||
Intrinsic char surface reaction mndel
|
||||
@ -40,12 +40,15 @@ Description
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Forward class declarations
|
||||
template<class CloudType>
|
||||
class COxidationIntrinsicRate;
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class COxidationIntrinsicRate Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
COxidationKineticDiffusionLimitedRate
|
||||
Foam::COxidationKineticDiffusionLimitedRate
|
||||
|
||||
Description
|
||||
Kinetic/diffusion limited rate surface reaction model for coal parcels.
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
COxidationMurphyShaddix
|
||||
Foam::COxidationMurphyShaddix
|
||||
|
||||
Description
|
||||
Limited to C(s) + O2 -> CO2
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
kinematicParcelInjectionDataIOList
|
||||
Foam::kinematicParcelInjectionDataIOList
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
reactingMultiphaseParcelInjectionDataIOList
|
||||
Foam::reactingMultiphaseParcelInjectionDataIOList
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
thermoParcelInjectionDataIOList
|
||||
Foam::thermoParcelInjectionDataIOList
|
||||
|
||||
Description
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
momentOfInertia
|
||||
Foam::momentOfInertia
|
||||
|
||||
Description
|
||||
Calculates the inertia tensor and principal axes and moments of a
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2013-2014 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2013-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,10 +22,8 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
|
||||
Foam::
|
||||
compressible::
|
||||
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField
|
||||
Foam::compressible::
|
||||
filmPyrolysisRadiativeCoupledMixedFvPatchScalarField
|
||||
|
||||
Description
|
||||
Mixed boundary condition for temperature, to be used in the flow and
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
regionProperties
|
||||
Foam::regionProperties
|
||||
|
||||
Description
|
||||
Simple class to hold region information for coupled region simulations.
|
||||
|
||||
@ -22,7 +22,7 @@ License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Class
|
||||
radiationCoupledBase
|
||||
Foam::radiationCoupledBase
|
||||
|
||||
Description
|
||||
Common functions to emissivity. It gets supplied from lookup into a
|
||||
|
||||
Reference in New Issue
Block a user