mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' into feature/cvMesh
Conflicts: applications/test/Matrix/Test-Matrix.C applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.C applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.H src/OpenFOAM/algorithms/indexedOctree/indexedOctree.C src/OpenFOAM/primitives/Tensor2D/Tensor2DI.H
This commit is contained in:
@ -2,16 +2,16 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 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 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
|
||||
@ -19,8 +19,10 @@ License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM; if not, write to the Free Software Foundation,
|
||||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
PDRMesh
|
||||
|
||||
Description
|
||||
Mesh and field preparation utility for PDR type simulations.
|
||||
@ -553,7 +555,6 @@ label findPatch(const polyBoundaryMesh& patches, const word& patchName)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
autoRefineMesh
|
||||
|
||||
Description
|
||||
Utility to refine cells near to a surface.
|
||||
|
||||
@ -615,7 +618,6 @@ void classifyCells
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
collapseEdges
|
||||
|
||||
Description
|
||||
Collapse short edges and combines edges that are in line.
|
||||
Collapses short edges and combines edges that are in line.
|
||||
|
||||
- collapse short edges. Length of edges to collapse provided as argument.
|
||||
- merge two edges if they are in line. Maximum angle provided as argument.
|
||||
@ -54,7 +57,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
timeSelector::addOptions(true, false);
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,10 +21,13 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
combinePatchFaces
|
||||
|
||||
Description
|
||||
Checks for multiple patch faces on same cell and combines them. These
|
||||
result from e.g. refined neighbouring cells getting removed, leaving 4
|
||||
exposed faces with same owner.
|
||||
Checks for multiple patch faces on same cell and combines them.
|
||||
Multiple patch faces can result from e.g. removal of refined
|
||||
neighbouring cells, leaving 4 exposed faces with same owner.
|
||||
|
||||
Rules for merging:
|
||||
- only boundary faces (since multiple internal faces between two cells
|
||||
@ -336,7 +339,6 @@ label mergeEdges(const scalar minCos, polyMesh& mesh)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
modifyMesh
|
||||
|
||||
Description
|
||||
Manipulates mesh elements.
|
||||
|
||||
@ -324,7 +327,6 @@ label findCell(const primitiveMesh& mesh, const point& nearPoint)
|
||||
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
refineHexMesh
|
||||
|
||||
Description
|
||||
Refines a hex mesh by 2x2x2 cell splitting.
|
||||
|
||||
@ -48,7 +51,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
# include "addOverwriteOption.H"
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
refineWallLayer
|
||||
|
||||
Description
|
||||
Utility to refine cells next to patches.
|
||||
|
||||
@ -42,7 +45,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
refinementLevel
|
||||
|
||||
Description
|
||||
Tries to figure out what the refinement level is on refined cartesian
|
||||
meshes. Run BEFORE snapping.
|
||||
@ -92,7 +95,6 @@ bool limitRefinementLevel
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
removeFaces
|
||||
|
||||
Description
|
||||
Utility to remove faces (combines cells on both sides).
|
||||
|
||||
@ -43,7 +46,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
selectCells
|
||||
|
||||
Description
|
||||
Select cells in relation to surface.
|
||||
|
||||
@ -326,7 +329,6 @@ label selectOutsideCells
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
splitCells
|
||||
|
||||
Description
|
||||
Utility to split cells with flat faces.
|
||||
|
||||
@ -513,7 +516,6 @@ void collectCuts
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -577,7 +577,6 @@ void ReadCells
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -951,7 +950,8 @@ int main(int argc, char *argv[])
|
||||
foamPatchSizes[patchI],
|
||||
meshFaceI,
|
||||
patchI,
|
||||
mesh.boundaryMesh()
|
||||
mesh.boundaryMesh(),
|
||||
patchType
|
||||
);
|
||||
}
|
||||
else if (patchType == "symmetryplane")
|
||||
@ -963,7 +963,8 @@ int main(int argc, char *argv[])
|
||||
foamPatchSizes[patchI],
|
||||
meshFaceI,
|
||||
patchI,
|
||||
mesh.boundaryMesh()
|
||||
mesh.boundaryMesh(),
|
||||
patchType
|
||||
);
|
||||
}
|
||||
else if (patchType == "empty")
|
||||
@ -976,13 +977,14 @@ int main(int argc, char *argv[])
|
||||
foamPatchSizes[patchI],
|
||||
meshFaceI,
|
||||
patchI,
|
||||
mesh.boundaryMesh()
|
||||
mesh.boundaryMesh(),
|
||||
patchType
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
// All other ccm types become straight polyPatch:
|
||||
// 'inlet', 'outlet', 'pressured'.
|
||||
// 'inlet', 'outlet', ...
|
||||
newPatches[patchI] =
|
||||
new polyPatch
|
||||
(
|
||||
@ -990,7 +992,8 @@ int main(int argc, char *argv[])
|
||||
foamPatchSizes[patchI],
|
||||
meshFaceI,
|
||||
patchI,
|
||||
mesh.boundaryMesh()
|
||||
mesh.boundaryMesh(),
|
||||
word::null
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -25,7 +25,7 @@ Application
|
||||
cfx4ToFoam
|
||||
|
||||
Description
|
||||
Converts a CFX 4 mesh to OpenFOAM format
|
||||
Converts a CFX 4 mesh to OpenFOAM format.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -43,7 +43,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -40,7 +40,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
foamMeshToFluent
|
||||
|
||||
Description
|
||||
Writes out the OpenFOAM mesh in Fluent mesh format.
|
||||
|
||||
@ -33,7 +36,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -58,7 +58,6 @@ See Also
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -50,7 +50,6 @@ Usage
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,11 +21,15 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
gmshToFoam
|
||||
|
||||
Description
|
||||
Reads .msh file as written by Gmsh.
|
||||
|
||||
Needs surface elements on mesh to be present and aligned with outside faces
|
||||
of the mesh. I.e. if the mesh is hexes, the outside faces need to be quads
|
||||
of the mesh. I.e. if the mesh is hexes, the outside faces need to be
|
||||
quads.
|
||||
|
||||
Note: There is something seriously wrong with the ordering written in the
|
||||
.msh file. Normal operation is to check the ordering and invert prisms
|
||||
@ -38,6 +42,7 @@ Description
|
||||
|
||||
A use of the cell zone information, is for field initialization with the
|
||||
"setFields" utility. see the classes: topoSetSource, zoneToCell.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
@ -745,7 +750,6 @@ void readCells
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -1059,7 +1063,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (zoneFaces[zoneI].size())
|
||||
{
|
||||
label physReg = zoneToPhys[zoneI];
|
||||
label physReg = patchToPhys[zoneI];
|
||||
|
||||
Map<word>::const_iterator iter = physicalNames.find(physReg);
|
||||
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
ideasUnvToFoam
|
||||
|
||||
Description
|
||||
I-Deas unv format mesh conversion.
|
||||
|
||||
@ -650,7 +653,6 @@ label findPatch(const List<labelHashSet>& dofGroups, const face& f)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -907,6 +909,8 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (own[faceI] != -1 && nei[faceI] != -1)
|
||||
{
|
||||
faceToCell[1].insert(faceI, own[faceI]);
|
||||
faceToCell[0].insert(faceI, nei[faceI]);
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -25,7 +25,7 @@ Application
|
||||
kivaToFoam
|
||||
|
||||
Description
|
||||
Converts a KIVA3v grid to OpenFOAM format
|
||||
Converts a KIVA3v grid to OpenFOAM format.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -54,7 +54,6 @@ enum kivaVersions
|
||||
};
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
mshToFoam
|
||||
|
||||
Description
|
||||
Converts .msh file generated by the Adventure system.
|
||||
|
||||
@ -50,7 +53,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
netgenNeutralToFoam
|
||||
|
||||
Description
|
||||
Converts neutral file format as written by Netgen v4.4.
|
||||
|
||||
@ -83,7 +86,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
plot3dToFoam
|
||||
|
||||
Description
|
||||
Plot3d mesh (ascii/formatted format) converter.
|
||||
|
||||
@ -50,7 +53,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -34,7 +34,6 @@ Description
|
||||
#include "sammMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -34,7 +34,6 @@ Description
|
||||
#include "starMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -55,7 +55,6 @@ Note
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
tetgenToFoam
|
||||
|
||||
Description
|
||||
Converts .ele and .node and .face files, written by tetgen.
|
||||
|
||||
@ -92,7 +95,6 @@ label findFace(const primitiveMesh& mesh, const face& f)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -41,7 +41,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
writeMeshObj
|
||||
|
||||
Description
|
||||
For mesh debugging: writes mesh as three separate OBJ files which can
|
||||
be viewed with e.g. javaview.
|
||||
@ -368,7 +371,6 @@ void writePointCells
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -65,7 +65,6 @@ Usage
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -70,7 +70,7 @@ public:
|
||||
typedef typename Fb::Vertex_handle Vertex_handle;
|
||||
typedef typename Fb::Face_handle Face_handle;
|
||||
|
||||
template < typename TDS2 >
|
||||
template<typename TDS2>
|
||||
struct Rebind_TDS
|
||||
{
|
||||
typedef typename Fb::template Rebind_TDS<TDS2>::Other Fb2;
|
||||
|
||||
@ -54,7 +54,7 @@ using namespace Foam;
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
template <class Triangulation, class Type>
|
||||
template<class Triangulation, class Type>
|
||||
Foam::tmp<Foam::Field<Type> > filterFarPoints
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
@ -89,7 +89,7 @@ Foam::tmp<Foam::Field<Type> > filterFarPoints
|
||||
}
|
||||
|
||||
|
||||
template <class T>
|
||||
template<class T>
|
||||
autoPtr<mapDistribute> buildMap
|
||||
(
|
||||
const T& mesh,
|
||||
@ -153,7 +153,7 @@ autoPtr<mapDistribute> buildMap
|
||||
}
|
||||
|
||||
|
||||
template <class T>
|
||||
template<class T>
|
||||
Foam::tmp<Foam::triadField> buildAlignmentField(const T& mesh)
|
||||
{
|
||||
tmp<triadField> tAlignments
|
||||
@ -181,7 +181,7 @@ Foam::tmp<Foam::triadField> buildAlignmentField(const T& mesh)
|
||||
}
|
||||
|
||||
|
||||
template <class T>
|
||||
template<class T>
|
||||
Foam::tmp<Foam::pointField> buildPointField(const T& mesh)
|
||||
{
|
||||
tmp<pointField> tPoints
|
||||
|
||||
@ -33,7 +33,7 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
template <class Triangulation, class Type>
|
||||
template<class Triangulation, class Type>
|
||||
Foam::tmp<Foam::Field<Type> > Foam::smoothAlignmentSolver::filterFarPoints
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
@ -68,7 +68,7 @@ Foam::tmp<Foam::Field<Type> > Foam::smoothAlignmentSolver::filterFarPoints
|
||||
}
|
||||
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildReferredMap
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
@ -111,7 +111,7 @@ Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildReferredMap
|
||||
}
|
||||
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildMap
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
@ -175,7 +175,7 @@ Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildMap
|
||||
}
|
||||
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
Foam::tmp<Foam::triadField> Foam::smoothAlignmentSolver::buildAlignmentField
|
||||
(
|
||||
const Triangulation& mesh
|
||||
@ -207,7 +207,7 @@ Foam::tmp<Foam::triadField> Foam::smoothAlignmentSolver::buildAlignmentField
|
||||
}
|
||||
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
Foam::tmp<Foam::pointField> Foam::smoothAlignmentSolver::buildPointField
|
||||
(
|
||||
const Triangulation& mesh
|
||||
|
||||
@ -57,31 +57,31 @@ class smoothAlignmentSolver
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
template <class Triangulation, class Type>
|
||||
template<class Triangulation, class Type>
|
||||
tmp<Field<Type> > filterFarPoints
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
const Field<Type>& field
|
||||
);
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
autoPtr<mapDistribute> buildMap
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
labelListList& pointPoints
|
||||
);
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
autoPtr<mapDistribute> buildReferredMap
|
||||
(
|
||||
const Triangulation& mesh,
|
||||
labelList& indices
|
||||
);
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
tmp<triadField> buildAlignmentField(const Triangulation& mesh);
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
tmp<pointField> buildPointField(const Triangulation& mesh);
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
|
||||
@ -503,7 +503,7 @@ private:
|
||||
void insertInitialPoints();
|
||||
|
||||
//- Calculate the worst load balance
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
scalar calculateLoadUnbalance(const Triangulation& mesh) const;
|
||||
|
||||
//- In parallel redistribute the backgroundMeshDecomposition and
|
||||
|
||||
@ -27,7 +27,7 @@ License
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
Foam::scalar Foam::conformalVoronoiMesh::calculateLoadUnbalance
|
||||
(
|
||||
const Triangulation& mesh
|
||||
@ -68,7 +68,7 @@ Foam::scalar Foam::conformalVoronoiMesh::calculateLoadUnbalance
|
||||
}
|
||||
|
||||
|
||||
template <class Triangulation>
|
||||
template<class Triangulation>
|
||||
bool Foam::conformalVoronoiMesh::distributeBackground(const Triangulation& mesh)
|
||||
{
|
||||
if (!Pstream::parRun())
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -118,7 +118,7 @@ public:
|
||||
typedef typename Cb::Vertex_handle Vertex_handle;
|
||||
typedef typename Cb::Cell_handle Cell_handle;
|
||||
|
||||
template < typename TDS2 >
|
||||
template<typename TDS2>
|
||||
struct Rebind_TDS
|
||||
{
|
||||
typedef typename Cb::template Rebind_TDS<TDS2>::Other Cb2;
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -29,7 +29,7 @@ License
|
||||
#include "CGALTriangulation3DKernel.H"
|
||||
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
Foam::scalar Foam::cvMeshChecks::coplanarTet
|
||||
(
|
||||
Cell& c,
|
||||
@ -74,7 +74,7 @@ Foam::scalar Foam::cvMeshChecks::coplanarTet
|
||||
}
|
||||
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
bool Foam::cvMeshChecks::closePoints
|
||||
(
|
||||
Cell& c,
|
||||
@ -104,7 +104,7 @@ bool Foam::cvMeshChecks::closePoints
|
||||
}
|
||||
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
bool Foam::cvMeshChecks::smallVolume
|
||||
(
|
||||
Cell& c,
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -34,21 +34,21 @@ namespace Foam
|
||||
namespace cvMeshChecks
|
||||
{
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
scalar coplanarTet
|
||||
(
|
||||
Cell& c,
|
||||
const scalar tol = 1e-12
|
||||
);
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
bool closePoints
|
||||
(
|
||||
Cell& c,
|
||||
const scalar tol = 1e-12
|
||||
);
|
||||
|
||||
template <typename Cell>
|
||||
template<typename Cell>
|
||||
bool smallVolume
|
||||
(
|
||||
Cell& 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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -52,7 +52,7 @@ namespace vectorTools
|
||||
//- Test if a and b are parallel: a.b = 1
|
||||
// Uses the cross product, so the tolerance is proportional to
|
||||
// the sine of the angle between a and b in radians
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
bool areParallel
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -69,7 +69,7 @@ namespace vectorTools
|
||||
//- Test if a and b are orthogonal: a.b = 0
|
||||
// Uses the dot product, so the tolerance is proportional to
|
||||
// the cosine of the angle between a and b in radians
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
bool areOrthogonal
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -81,7 +81,7 @@ namespace vectorTools
|
||||
}
|
||||
|
||||
//- Test if angle between a and b is acute: a.b > 0
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
bool areAcute
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -92,7 +92,7 @@ namespace vectorTools
|
||||
}
|
||||
|
||||
//- Test if angle between a and b is obtuse: a.b < 0
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
bool areObtuse
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -103,7 +103,7 @@ namespace vectorTools
|
||||
}
|
||||
|
||||
//- Calculate angle between a and b in radians
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
T cosPhi
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -118,7 +118,7 @@ namespace vectorTools
|
||||
}
|
||||
|
||||
//- Calculate angle between a and b in radians
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
T radAngleBetween
|
||||
(
|
||||
const Vector<T>& a,
|
||||
@ -133,7 +133,7 @@ namespace vectorTools
|
||||
}
|
||||
|
||||
//- Calculate angle between a and b in degrees
|
||||
template <typename T>
|
||||
template<typename T>
|
||||
T degAngleBetween
|
||||
(
|
||||
const Vector<T>& a,
|
||||
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
extrudeMesh
|
||||
|
||||
Description
|
||||
Extrude mesh from existing patch (by default outwards facing normals;
|
||||
optional flips faces) or from patch read from file.
|
||||
@ -190,7 +193,6 @@ void updateFaceLabels(const mapPolyMesh& map, labelList& faceLabels)
|
||||
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
extrudeToRegionMesh
|
||||
|
||||
Description
|
||||
Extrude faceZones (internal or boundary faces) or faceSets (boundary faces
|
||||
only) into a separate mesh (as a different region).
|
||||
@ -1481,7 +1484,6 @@ void extrudeGeometricProperties
|
||||
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -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) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
||||
@ -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) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
||||
@ -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) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
||||
@ -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) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -108,7 +108,6 @@ static const NamedEnum<ExtrudeMode, 2> ExtrudeModeNames;
|
||||
//}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -337,55 +337,75 @@ addLayersControls
|
||||
|
||||
// Advanced settings
|
||||
|
||||
// When not to extrude surface. 0 is flat surface, 90 is when two faces
|
||||
// are perpendicular
|
||||
featureAngle 60;
|
||||
|
||||
// At non-patched sides allow mesh to slip if extrusion direction makes
|
||||
// angle larger than slipFeatureAngle.
|
||||
slipFeatureAngle 30;
|
||||
// Static analysis of starting mesh
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 5;
|
||||
// When not to extrude surface. 0 is flat surface, 90 is when two faces
|
||||
// are perpendicular
|
||||
featureAngle 130;
|
||||
|
||||
// Number of smoothing iterations of surface normals
|
||||
nSmoothSurfaceNormals 1;
|
||||
// Stop layer growth on highly warped cells
|
||||
maxFaceThicknessRatio 0.5;
|
||||
|
||||
// Number of smoothing iterations of interior mesh movement direction
|
||||
nSmoothNormals 3;
|
||||
|
||||
// Smooth layer thickness over surface patches
|
||||
nSmoothThickness 10;
|
||||
// Patch displacement
|
||||
|
||||
// Stop layer growth on highly warped cells
|
||||
maxFaceThicknessRatio 0.5;
|
||||
// Number of smoothing iterations of surface normals
|
||||
nSmoothSurfaceNormals 1;
|
||||
|
||||
// Reduce layer growth where ratio thickness to medial
|
||||
// distance is large
|
||||
maxThicknessToMedialRatio 0.3;
|
||||
// Smooth layer thickness over surface patches
|
||||
nSmoothThickness 10;
|
||||
|
||||
// Angle used to pick up medial axis points
|
||||
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130 in 17x.
|
||||
minMedianAxisAngle 90;
|
||||
|
||||
// Create buffer region for new layer terminations
|
||||
nBufferCellsNoExtrude 0;
|
||||
|
||||
// Overall max number of layer addition iterations. The mesher will exit
|
||||
// if it reaches this number of iterations; possibly with an illegal
|
||||
// mesh.
|
||||
nLayerIter 50;
|
||||
// Medial axis analysis
|
||||
|
||||
// Max number of iterations after which relaxed meshQuality controls
|
||||
// get used. Up to nRelaxIter it uses the settings in meshQualityControls,
|
||||
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
|
||||
nRelaxedIter 20;
|
||||
// Angle used to pick up medial axis points
|
||||
// Note: changed(corrected) w.r.t 17x! 90 degrees corresponds to 130
|
||||
// in 17x.
|
||||
minMedianAxisAngle 90;
|
||||
|
||||
// Additional reporting: if there are just a few faces where there
|
||||
// are mesh errors (after adding the layers) print their face centres.
|
||||
// This helps in tracking down problematic mesh areas.
|
||||
//additionalReporting true;
|
||||
// Reduce layer growth where ratio thickness to medial
|
||||
// distance is large
|
||||
maxThicknessToMedialRatio 0.3;
|
||||
|
||||
// Number of smoothing iterations of interior mesh movement direction
|
||||
nSmoothNormals 3;
|
||||
|
||||
// Optional: smooth displacement after medial axis determination.
|
||||
// default is 0.
|
||||
nSmoothDisplacement 90;
|
||||
|
||||
|
||||
// Mesh shrinking
|
||||
|
||||
// Optional: at non-patched sides allow mesh to slip if extrusion
|
||||
// direction makes angle larger than slipFeatureAngle. Default is
|
||||
// 0.5*featureAngle.
|
||||
slipFeatureAngle 30;
|
||||
|
||||
// Maximum number of snapping relaxation iterations. Should stop
|
||||
// before upon reaching a correct mesh.
|
||||
nRelaxIter 5;
|
||||
|
||||
// Create buffer region for new layer terminations
|
||||
nBufferCellsNoExtrude 0;
|
||||
|
||||
// Overall max number of layer addition iterations. The mesher will
|
||||
// exit if it reaches this number of iterations; possibly with an
|
||||
// illegal mesh.
|
||||
nLayerIter 50;
|
||||
|
||||
// Max number of iterations after which relaxed meshQuality controls
|
||||
// get used. Up to nRelaxIter it uses the settings in
|
||||
// meshQualityControls,
|
||||
// after nRelaxIter it uses the values in meshQualityControls::relaxed.
|
||||
nRelaxedIter 20;
|
||||
|
||||
// Additional reporting: if there are just a few faces where there
|
||||
// are mesh errors (after adding the layers) print their face centres.
|
||||
// This helps in tracking down problematic mesh areas.
|
||||
//additionalReporting true;
|
||||
}
|
||||
|
||||
// Generic mesh quality settings. At any undoable phase these determine
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
autoPatch
|
||||
|
||||
Description
|
||||
Divides external faces into patches based on (user supplied) feature
|
||||
angle.
|
||||
@ -64,7 +67,6 @@ void collectFeatureEdges(const boundaryMesh& bMesh, labelList& markedEdges)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -25,7 +25,7 @@ Application
|
||||
checkMesh
|
||||
|
||||
Description
|
||||
Checks validity of a mesh
|
||||
Checks validity of a mesh.
|
||||
|
||||
Usage
|
||||
- checkMesh [OPTION]
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
createBaffles
|
||||
|
||||
Description
|
||||
Makes internal faces into boundary faces. Does not duplicate points, unlike
|
||||
mergeOrSplitBaffles.
|
||||
@ -108,7 +111,6 @@ void modifyOrAddFace
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -97,7 +97,7 @@ void Foam::faceSelections::searchableSurfaceSelection::select
|
||||
|
||||
// Boundary faces
|
||||
vectorField neighbourCellCentres;
|
||||
syncTools::swapBoundaryCellList
|
||||
syncTools::swapBoundaryCellPositions
|
||||
(
|
||||
mesh_,
|
||||
mesh_.cellCentres(),
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
createPatch
|
||||
|
||||
Description
|
||||
Utility to create patches out of selected boundary faces. Faces come either
|
||||
from existing patches or from a faceSet.
|
||||
@ -288,7 +291,7 @@ void separateList
|
||||
|
||||
|
||||
// Synchronise points on both sides of coupled boundaries.
|
||||
template <class CombineOp>
|
||||
template<class CombineOp>
|
||||
void syncPoints
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
@ -499,7 +502,6 @@ void syncPoints
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -38,7 +38,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
insideCells
|
||||
|
||||
Description
|
||||
Picks up cells with cell centre 'inside' of surface.
|
||||
Requires surface to be closed and singly connected.
|
||||
@ -38,7 +41,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
mergeMeshes
|
||||
|
||||
Description
|
||||
Merge two meshes.
|
||||
Merges two meshes.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -51,7 +54,6 @@ void getRootCase(fileName& casePath)
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
mirrorMesh
|
||||
|
||||
Description
|
||||
Mirrors a mesh around a given plane.
|
||||
|
||||
@ -33,7 +36,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -103,7 +103,6 @@ void writeWeights(const polyMesh& mesh)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
||||
<< nl << endl;
|
||||
}
|
||||
|
||||
Info<< "\n end\n";
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
moveMesh
|
||||
|
||||
Description
|
||||
Solver for moving meshes
|
||||
Solver for moving meshes.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -34,7 +37,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
objToVTK
|
||||
|
||||
Description
|
||||
Read obj line (not surface!) file and convert into vtk.
|
||||
|
||||
@ -105,7 +108,6 @@ labelList parseVertices(const string& line)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
polyDualMesh
|
||||
|
||||
Description
|
||||
Calculate the dual of a polyMesh. Adheres to all the feature and patch
|
||||
Calculates the dual of a polyMesh. Adheres to all the feature and patch
|
||||
edges.
|
||||
|
||||
Usage
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
refineMesh
|
||||
|
||||
Description
|
||||
Utility to refine cells in multiple directions.
|
||||
|
||||
@ -287,7 +290,6 @@ label twoDNess(const polyMesh& mesh)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anispulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -494,7 +494,13 @@ autoPtr<mapPolyMesh> reorderMesh
|
||||
newFlipMap[i] = fZone.flipMap()[i];
|
||||
}
|
||||
}
|
||||
fZone.resetAddressing(newAddressing, newFlipMap);
|
||||
labelList newToOld;
|
||||
sortedOrder(newAddressing, newToOld);
|
||||
fZone.resetAddressing
|
||||
(
|
||||
UIndirectList<label>(newAddressing, newToOld)(),
|
||||
UIndirectList<bool>(newFlipMap, newToOld)()
|
||||
);
|
||||
}
|
||||
}
|
||||
// Re-do the cellZones
|
||||
@ -508,6 +514,7 @@ autoPtr<mapPolyMesh> reorderMesh
|
||||
reverseCellOrder,
|
||||
cellZones[zoneI]
|
||||
)();
|
||||
Foam::sort(cellZones[zoneI]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
setSet
|
||||
|
||||
Description
|
||||
Manipulate a cell/face/point/ set or zone interactively.
|
||||
|
||||
@ -806,7 +809,6 @@ commandStatus parseAction(const word& actionName)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
setsToZones
|
||||
|
||||
Description
|
||||
Add pointZones/faceZones/cellZones to the mesh from similar named
|
||||
pointSets/faceSets/cellSets.
|
||||
@ -54,7 +57,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -28,8 +28,7 @@ Description
|
||||
Reads all fields and maps them to a mesh with all internal faces removed
|
||||
(singleCellFvMesh) which gets written to region "singleCell".
|
||||
|
||||
Used to generate mesh and fields
|
||||
that can be used for boundary-only data.
|
||||
Used to generate mesh and fields that can be used for boundary-only data.
|
||||
Might easily result in illegal mesh though so only look at boundaries
|
||||
in paraview.
|
||||
|
||||
@ -68,7 +67,6 @@ void interpolateFields
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
splitMesh
|
||||
|
||||
Description
|
||||
Splits mesh by making internal faces external. Uses attachDetach.
|
||||
|
||||
@ -105,7 +108,6 @@ void checkPatch(const polyBoundaryMesh& bMesh, const word& name)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -85,6 +85,7 @@ Description
|
||||
this is the original facelabel+1, for a turned face this is -facelabel-1
|
||||
- boundaryRegionAddressing : for every patch in this region the
|
||||
patch in the original mesh (or -1 if added patch)
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "SortableList.H"
|
||||
@ -1396,7 +1397,6 @@ void writeCellToRegion(const fvMesh& mesh, const labelList& cellRegion)
|
||||
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -1404,6 +1404,7 @@ int main(int argc, char *argv[])
|
||||
(
|
||||
"splits mesh into multiple regions (detected by walking across faces)"
|
||||
);
|
||||
# include "addRegionOption.H"
|
||||
#include "addOverwriteOption.H"
|
||||
argList::addBoolOption
|
||||
(
|
||||
@ -1467,7 +1468,7 @@ int main(int argc, char *argv[])
|
||||
#include "setRootCase.H"
|
||||
#include "createTime.H"
|
||||
runTime.functionObjects().off();
|
||||
#include "createMesh.H"
|
||||
#include "createNamedMesh.H"
|
||||
const word oldInstance = mesh.pointsInstance();
|
||||
|
||||
word blockedFacesName;
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
stitchMesh
|
||||
|
||||
Description
|
||||
'Stitches' a mesh.
|
||||
|
||||
@ -190,7 +193,6 @@ void checkPatch(const polyBoundaryMesh& bMesh, const word& name)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,11 +21,15 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
subsetMesh
|
||||
|
||||
Description
|
||||
Selects a section of mesh based on a cellSet.
|
||||
|
||||
The utility sub-sets the mesh to choose only a part of interest. Check
|
||||
the setSet/cellSet utilities to see how to select cells based on various.
|
||||
the setSet/cellSet/topoSet utilities to see how to select cells based on
|
||||
various shapes.
|
||||
|
||||
The mesh will subset all points, faces and cells needed to make a sub-mesh
|
||||
but will not preserve attached boundary types.
|
||||
@ -146,7 +150,6 @@ void subsetPointFields
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
topoSet
|
||||
|
||||
Description
|
||||
Operates on cellSets/faceSets/pointSets through a dictionary.
|
||||
|
||||
@ -188,7 +191,6 @@ polyMesh::readUpdateState meshReadUpdate(polyMesh& mesh)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -137,7 +137,6 @@ void rotateFields(const argList& args, const Time& runTime, const tensor& T)
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -59,7 +59,6 @@ Note
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -63,5 +63,5 @@ EXE_LIBS = \
|
||||
-lthermophysicalFunctions \
|
||||
-ltopoChangerFvMesh \
|
||||
-ltriSurface \
|
||||
-ltwoPhaseInterfaceProperties \
|
||||
-ltwoPhaseProperties \
|
||||
-lutilityFunctionObjects
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
foamDebugSwitches
|
||||
|
||||
Description
|
||||
Write out all library debug switches
|
||||
Write out all library debug switches.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -35,7 +38,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -139,7 +139,6 @@ bool writeZones(const word& name, const fileName& meshDir, Time& runTime)
|
||||
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,7 +21,6 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "GeometricField.H"
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
foamInfoExec.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/foamInfoExec
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,8 +21,11 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
foamInfoExec
|
||||
|
||||
Description
|
||||
Interrogates a case and prints information to stdout
|
||||
Interrogates a case and prints information to stdout.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
@ -34,7 +37,6 @@ Description
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -21,7 +21,6 @@ License
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "patchSummaryTemplates.H"
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -422,7 +422,6 @@ void compareFields
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
foamDataToFluent
|
||||
|
||||
Description
|
||||
Translates OpenFOAM data to Fluent format.
|
||||
|
||||
@ -32,7 +35,6 @@ Description
|
||||
#include "IOobjectList.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
// Main program:
|
||||
|
||||
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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -68,7 +68,7 @@ void ensightCloudField
|
||||
ensightCaseFile.setf(ios_base::left);
|
||||
ensightCaseFile
|
||||
<< ("c" + fieldObject.name()).c_str()
|
||||
<< (' ' + prepend + "***." + cloudName
|
||||
<< (' ' + prepend + "****." + cloudName
|
||||
+ "." + fieldObject.name()).c_str()
|
||||
<< nl;
|
||||
}
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -201,7 +201,7 @@ void writePatchField
|
||||
<< pTraits<Type>::typeName
|
||||
<< " per element: 1 "
|
||||
<< setw(15) << pfName
|
||||
<< (' ' + prepend + "***." + pfName).c_str()
|
||||
<< (' ' + prepend + "****." + pfName).c_str()
|
||||
<< nl;
|
||||
}
|
||||
|
||||
@ -344,7 +344,7 @@ void ensightField
|
||||
<< pTraits<Type>::typeName
|
||||
<< " per element: 1 "
|
||||
<< setw(15) << vf.name()
|
||||
<< (' ' + prepend + "***." + vf.name()).c_str()
|
||||
<< (' ' + prepend + "****." + vf.name()).c_str()
|
||||
<< nl;
|
||||
}
|
||||
|
||||
@ -558,7 +558,7 @@ void ensightPointField
|
||||
<< pTraits<Type>::typeName
|
||||
<< " per node: 1 "
|
||||
<< setw(15) << pf.name()
|
||||
<< (' ' + prepend + "***." + pf.name()).c_str()
|
||||
<< (' ' + prepend + "****." + pf.name()).c_str()
|
||||
<< nl;
|
||||
}
|
||||
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -1150,13 +1150,13 @@ void Foam::ensightMesh::write
|
||||
labelList pointToGlobal;
|
||||
labelList uniqueMeshPointLabels;
|
||||
autoPtr<globalIndex> globalPointsPtr =
|
||||
mesh_.globalData().mergePoints
|
||||
(
|
||||
p.meshPoints(),
|
||||
p.meshPointMap(),
|
||||
pointToGlobal,
|
||||
uniqueMeshPointLabels
|
||||
);
|
||||
mesh_.globalData().mergePoints
|
||||
(
|
||||
p.meshPoints(),
|
||||
p.meshPointMap(),
|
||||
pointToGlobal,
|
||||
uniqueMeshPointLabels
|
||||
);
|
||||
|
||||
pointField uniquePoints(mesh_.points(), uniqueMeshPointLabels);
|
||||
// Renumber the patch faces
|
||||
@ -1225,13 +1225,13 @@ void Foam::ensightMesh::write
|
||||
labelList pointToGlobal;
|
||||
labelList uniqueMeshPointLabels;
|
||||
autoPtr<globalIndex> globalPointsPtr =
|
||||
mesh_.globalData().mergePoints
|
||||
(
|
||||
fz().meshPoints(),
|
||||
fz().meshPointMap(),
|
||||
pointToGlobal,
|
||||
uniqueMeshPointLabels
|
||||
);
|
||||
mesh_.globalData().mergePoints
|
||||
(
|
||||
fz().meshPoints(),
|
||||
fz().meshPointMap(),
|
||||
pointToGlobal,
|
||||
uniqueMeshPointLabels
|
||||
);
|
||||
|
||||
pointField uniquePoints(mesh_.points(), uniqueMeshPointLabels);
|
||||
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -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/>.
|
||||
|
||||
Application
|
||||
foamToEnsight
|
||||
|
||||
Description
|
||||
Translates OpenFOAM data to EnSight format.
|
||||
|
||||
@ -91,7 +94,6 @@ bool inFileNameList
|
||||
}
|
||||
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
@ -243,7 +245,7 @@ int main(int argc, char *argv[])
|
||||
// test pre check variable if there is a moving mesh
|
||||
if (meshMoving)
|
||||
{
|
||||
geomFileName = prepend + "***";
|
||||
geomFileName = prepend + "****";
|
||||
}
|
||||
|
||||
ensightCaseFile
|
||||
@ -292,7 +294,7 @@ int main(int argc, char *argv[])
|
||||
<< (
|
||||
"measured: 1 "
|
||||
+ prepend
|
||||
+ "***."
|
||||
+ "****."
|
||||
+ cloudIter.key()
|
||||
).c_str()
|
||||
<< nl;
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -35,7 +35,7 @@ namespace Foam
|
||||
word itoa(const label n)
|
||||
{
|
||||
const label offset = '0';
|
||||
const label length = 3;
|
||||
const label length = 4;
|
||||
|
||||
char val[length + 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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -207,7 +207,7 @@ void Foam::ensightLagrangianField
|
||||
|
||||
|
||||
//- write generalized field components
|
||||
template <class Type>
|
||||
template<class Type>
|
||||
void Foam::ensightVolField
|
||||
(
|
||||
const ensightParts& partsList,
|
||||
|
||||
@ -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-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -75,7 +75,6 @@ using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
// Main program:
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
@ -1,7 +0,0 @@
|
||||
foamToFieldview9.C
|
||||
fieldviewTopology.C
|
||||
write_binary_uns.c
|
||||
calcFaceAddressing.C
|
||||
writeFunctions.C
|
||||
|
||||
EXE = $(FOAM_APPBIN)/foamToFieldview9
|
||||
@ -1,10 +0,0 @@
|
||||
EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/basic/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools \
|
||||
-lgenericPatchFields \
|
||||
-llagrangian
|
||||
@ -1,92 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 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/>.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "calcFaceAddressing.H"
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * Friend Functions * * * * * * * * * * * * * //
|
||||
|
||||
// Returns the face labels of the shape in an order consistent with the
|
||||
// shape.
|
||||
labelList calcFaceAddressing
|
||||
(
|
||||
const faceList& allFaces, // faces given faceLabels
|
||||
const cellShape& shape,
|
||||
const labelList& faces, // faceLabels for given cell
|
||||
const label cellI
|
||||
)
|
||||
{
|
||||
// return value.
|
||||
labelList shapeToMesh(shape.nFaces(), -1);
|
||||
|
||||
const faceList modelFaces(shape.faces());
|
||||
|
||||
// Loop over all faces of cellShape
|
||||
forAll(modelFaces, cellFaceI)
|
||||
{
|
||||
// face (vertex list)
|
||||
const face& modelFace = modelFaces[cellFaceI];
|
||||
|
||||
// Loop over all face labels
|
||||
forAll(faces, faceI)
|
||||
{
|
||||
const face& vertLabels = allFaces[faces[faceI]];
|
||||
|
||||
if (vertLabels == modelFace)
|
||||
{
|
||||
//Info<< "match:" << modelFace
|
||||
// << " to " << vertLabels << endl;
|
||||
shapeToMesh[cellFaceI] = faces[faceI];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (shapeToMesh[cellFaceI] == -1)
|
||||
{
|
||||
FatalErrorIn("foamToFieldview : calcFaceAddressing")
|
||||
<< "calcFaceAddressing : can't match face to shape.\n"
|
||||
<< " shape face:" << modelFace << endl
|
||||
<< " face labels:" << faces << endl
|
||||
<< " cellI:" << cellI << endl;
|
||||
|
||||
FatalError
|
||||
<< "Faces consist of vertices:" << endl;
|
||||
|
||||
forAll(faces, faceI)
|
||||
{
|
||||
FatalError
|
||||
<< " face:" << faces[faceI]
|
||||
<< allFaces[faces[faceI]] << endl;
|
||||
}
|
||||
FatalError
|
||||
<< exit(FatalError);
|
||||
}
|
||||
}
|
||||
return shapeToMesh;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,197 +0,0 @@
|
||||
// Construct List of pointers to all vol fields
|
||||
int nFields = volScalarNames.size() + 3*volVectorNames.size();
|
||||
List<volScalarField*> volFieldPtrs
|
||||
(
|
||||
nFields,
|
||||
reinterpret_cast<volScalarField*>(0)
|
||||
);
|
||||
|
||||
stringList volFieldNames(nFields);
|
||||
|
||||
nFields = 0;
|
||||
{
|
||||
// Load all scalar fields and store ptr to it
|
||||
forAll(volScalarNames, fieldI)
|
||||
{
|
||||
word fieldName = volScalarNames[fieldI];
|
||||
|
||||
// Check if present
|
||||
IOobject ioHeader
|
||||
(
|
||||
fieldName,
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
volFieldPtrs[nFields] = new volScalarField
|
||||
(
|
||||
ioHeader,
|
||||
mesh
|
||||
);
|
||||
}
|
||||
|
||||
fieldName = getFieldViewName(fieldName);
|
||||
|
||||
volFieldNames[nFields] = fieldName;
|
||||
|
||||
nFields++;
|
||||
}
|
||||
|
||||
|
||||
// Load all (componenents of) vector fields
|
||||
forAll(volVectorNames, fieldI)
|
||||
{
|
||||
word fieldName = volVectorNames[fieldI];
|
||||
|
||||
// Check if present
|
||||
IOobject ioHeader
|
||||
(
|
||||
fieldName,
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
volVectorField vvf(ioHeader, mesh);
|
||||
|
||||
// X component
|
||||
volFieldPtrs[nFields] =
|
||||
new volScalarField
|
||||
(
|
||||
vvf.component(vector::X)
|
||||
);
|
||||
|
||||
// Y component
|
||||
volFieldPtrs[nFields+1] =
|
||||
new volScalarField
|
||||
(
|
||||
vvf.component(vector::Y)
|
||||
);
|
||||
|
||||
// Z component
|
||||
volFieldPtrs[nFields+2] =
|
||||
new volScalarField
|
||||
(
|
||||
vvf.component(vector::Z)
|
||||
);
|
||||
}
|
||||
|
||||
fieldName = getFieldViewName(fieldName);
|
||||
|
||||
volFieldNames[nFields] = fieldName + ("x;" + fieldName);
|
||||
volFieldNames[nFields+1] = fieldName + "y";
|
||||
volFieldNames[nFields+2] = fieldName + "z";
|
||||
|
||||
nFields += 3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//
|
||||
// Construct List of pointers to all surface fields
|
||||
//
|
||||
|
||||
|
||||
|
||||
int nSurfFields = surfScalarNames.size() + 3*surfVectorNames.size();
|
||||
List<surfaceScalarField*> surfFieldPtrs
|
||||
(
|
||||
nSurfFields,
|
||||
reinterpret_cast<surfaceScalarField*>(0)
|
||||
);
|
||||
|
||||
stringList surfFieldNames(nSurfFields);
|
||||
|
||||
nSurfFields = 0;
|
||||
{
|
||||
// Load all scalar fields
|
||||
forAll(surfScalarNames, fieldI)
|
||||
{
|
||||
word fieldName = surfScalarNames[fieldI];
|
||||
|
||||
// Check if present
|
||||
IOobject ioHeader
|
||||
(
|
||||
fieldName,
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
surfFieldPtrs[nSurfFields] =
|
||||
new surfaceScalarField
|
||||
(
|
||||
ioHeader,
|
||||
mesh
|
||||
);
|
||||
}
|
||||
|
||||
fieldName = getFieldViewName(fieldName);
|
||||
|
||||
surfFieldNames[nSurfFields] = fieldName;
|
||||
|
||||
nSurfFields++;
|
||||
}
|
||||
|
||||
|
||||
// Set (componenents of) vector fields
|
||||
forAll(surfVectorNames, fieldI)
|
||||
{
|
||||
word fieldName = surfVectorNames[fieldI];
|
||||
|
||||
// Check if present
|
||||
IOobject ioHeader
|
||||
(
|
||||
fieldName,
|
||||
runTime.timeName(),
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
surfaceVectorField svf(ioHeader, mesh);
|
||||
|
||||
// X component
|
||||
surfFieldPtrs[nSurfFields] =
|
||||
new surfaceScalarField
|
||||
(
|
||||
svf.component(vector::X)
|
||||
);
|
||||
|
||||
// Y component
|
||||
surfFieldPtrs[nSurfFields+1] =
|
||||
new surfaceScalarField
|
||||
(
|
||||
svf.component(vector::Y)
|
||||
);
|
||||
|
||||
// Z component
|
||||
surfFieldPtrs[nSurfFields+2] =
|
||||
new surfaceScalarField
|
||||
(
|
||||
svf.component(vector::Z)
|
||||
);
|
||||
}
|
||||
|
||||
fieldName = getFieldViewName(fieldName);
|
||||
|
||||
surfFieldNames[nSurfFields] = fieldName + ("x;" + fieldName);
|
||||
surfFieldNames[nSurfFields+1] = fieldName + "y";
|
||||
surfFieldNames[nSurfFields+2] = fieldName + "z";
|
||||
|
||||
nSurfFields += 3;
|
||||
}
|
||||
}
|
||||
@ -1,75 +0,0 @@
|
||||
// Construct of ptrs to all spray fields
|
||||
List<IOField<scalar>* > sprayScalarFieldPtrs
|
||||
(
|
||||
sprayScalarNames.size(),
|
||||
reinterpret_cast<IOField<scalar>*>(0)
|
||||
);
|
||||
|
||||
List<IOField<vector>* > sprayVectorFieldPtrs
|
||||
(
|
||||
sprayVectorNames.size(),
|
||||
reinterpret_cast<IOField<vector>*>(0)
|
||||
);
|
||||
|
||||
{
|
||||
int sprayFieldI = 0;
|
||||
|
||||
// Set scalar fields
|
||||
forAll(sprayScalarNames, fieldI)
|
||||
{
|
||||
IOobject ioHeader
|
||||
(
|
||||
sprayScalarNames[fieldI],
|
||||
runTime.timeName(),
|
||||
cloud::prefix,
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
sprayScalarFieldPtrs[sprayFieldI] = new IOField<scalar>(ioHeader);
|
||||
}
|
||||
else
|
||||
{
|
||||
Info<< " dummy lagrangian field for "
|
||||
<< sprayScalarNames[fieldI] << endl;
|
||||
}
|
||||
|
||||
sprayFieldI++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Set vector fields
|
||||
|
||||
{
|
||||
int sprayFieldI = 0;
|
||||
|
||||
forAll(sprayVectorNames, fieldI)
|
||||
{
|
||||
IOobject ioHeader
|
||||
(
|
||||
sprayVectorNames[fieldI],
|
||||
runTime.timeName(),
|
||||
cloud::prefix,
|
||||
mesh,
|
||||
IOobject::MUST_READ,
|
||||
IOobject::NO_WRITE
|
||||
);
|
||||
|
||||
if (ioHeader.headerOk())
|
||||
{
|
||||
sprayVectorFieldPtrs[sprayFieldI] = new IOField<vector>(ioHeader);
|
||||
}
|
||||
else
|
||||
{
|
||||
Info<< " dummy lagrangian field for "
|
||||
<< sprayVectorNames[fieldI] << endl;
|
||||
}
|
||||
|
||||
sprayFieldI++;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,436 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 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/>.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "fieldviewTopology.H"
|
||||
#include "polyMesh.H"
|
||||
#include "cellShape.H"
|
||||
#include "cellModeller.H"
|
||||
#include "wallPolyPatch.H"
|
||||
#include "symmetryPolyPatch.H"
|
||||
|
||||
|
||||
#include "fv_reader_tags.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
unsigned int fv_encode_elem_header(int elem_type, int wall_info[]);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||
|
||||
Foam::labelList Foam::fieldviewTopology::calcFaceAddressing
|
||||
(
|
||||
const faceList& allFaces, // faces given faceLabels
|
||||
const cellShape& shape,
|
||||
const labelList& faces, // faceLabels for given cell
|
||||
const label cellI
|
||||
)
|
||||
{
|
||||
// return value.
|
||||
labelList shapeToMesh(shape.nFaces(), -1);
|
||||
|
||||
const faceList modelFaces(shape.faces());
|
||||
|
||||
// Loop over all faces of cellShape
|
||||
forAll(modelFaces, cellFaceI)
|
||||
{
|
||||
// face (vertex list)
|
||||
const face& modelFace = modelFaces[cellFaceI];
|
||||
|
||||
// Loop over all face labels
|
||||
forAll(faces, faceI)
|
||||
{
|
||||
const face& vertLabels = allFaces[faces[faceI]];
|
||||
|
||||
if (vertLabels == modelFace)
|
||||
{
|
||||
shapeToMesh[cellFaceI] = faces[faceI];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (shapeToMesh[cellFaceI] == -1)
|
||||
{
|
||||
FatalErrorIn("foamToFieldview : calcFaceAddressing")
|
||||
<< "calcFaceAddressing : can't match face to shape.\n"
|
||||
<< " shape face:" << modelFace << endl
|
||||
<< " face labels:" << faces << endl
|
||||
<< " cellI:" << cellI << endl;
|
||||
|
||||
FatalError << "Faces consist of vertices:" << endl;
|
||||
forAll(faces, faceI)
|
||||
{
|
||||
FatalError
|
||||
<< " face:" << faces[faceI]
|
||||
<< allFaces[faces[faceI]] << endl;
|
||||
}
|
||||
FatalError << exit(FatalError);
|
||||
}
|
||||
}
|
||||
return shapeToMesh;
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
// Construct from components
|
||||
Foam::fieldviewTopology::fieldviewTopology
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
const bool setWallInfo
|
||||
)
|
||||
:
|
||||
hexLabels_((1+8)*mesh.nCells()),
|
||||
prismLabels_((1+6)*mesh.nCells()),
|
||||
pyrLabels_((1+5)*mesh.nCells()),
|
||||
tetLabels_((1+4)*mesh.nCells()),
|
||||
nPoly_(0),
|
||||
quadFaceLabels_(mesh.boundaryMesh().size()),
|
||||
nPolyFaces_(mesh.boundaryMesh().size())
|
||||
{
|
||||
// Mark all faces that are to be seen as wall for particle
|
||||
// tracking and all cells that use one or more of these walls
|
||||
|
||||
List<int> wallFace(mesh.nFaces(), NOT_A_WALL);
|
||||
boolList wallCell(mesh.nCells(), false);
|
||||
|
||||
if (setWallInfo)
|
||||
{
|
||||
forAll(mesh.boundaryMesh(), patchI)
|
||||
{
|
||||
const polyPatch& currPatch = mesh.boundaryMesh()[patchI];
|
||||
if
|
||||
(
|
||||
isA<wallPolyPatch>(currPatch)
|
||||
|| isA<symmetryPolyPatch>(currPatch)
|
||||
)
|
||||
{
|
||||
forAll(currPatch, patchFaceI)
|
||||
{
|
||||
label meshFaceI = currPatch.start() + patchFaceI;
|
||||
|
||||
wallFace[meshFaceI] = A_WALL;
|
||||
wallCell[mesh.faceOwner()[meshFaceI]] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const cellModel& tet = *(cellModeller::lookup("tet"));
|
||||
const cellModel& pyr = *(cellModeller::lookup("pyr"));
|
||||
const cellModel& prism = *(cellModeller::lookup("prism"));
|
||||
const cellModel& wedge = *(cellModeller::lookup("wedge"));
|
||||
const cellModel& tetWedge = *(cellModeller::lookup("tetWedge"));
|
||||
const cellModel& hex = *(cellModeller::lookup("hex"));
|
||||
|
||||
// Pre calculate headers for cells not on walls
|
||||
List<int> notWallFlags(6, NOT_A_WALL);
|
||||
unsigned int tetNotWall = fv_encode_elem_header
|
||||
(
|
||||
FV_TET_ELEM_ID, notWallFlags.begin()
|
||||
);
|
||||
unsigned int pyrNotWall = fv_encode_elem_header
|
||||
(
|
||||
FV_PYRA_ELEM_ID, notWallFlags.begin()
|
||||
);
|
||||
unsigned int prismNotWall = fv_encode_elem_header
|
||||
(
|
||||
FV_PRISM_ELEM_ID, notWallFlags.begin()
|
||||
);
|
||||
unsigned int hexNotWall = fv_encode_elem_header
|
||||
(
|
||||
FV_HEX_ELEM_ID, notWallFlags.begin()
|
||||
);
|
||||
|
||||
// Some aliases
|
||||
const cellList& cellFaces = mesh.cells();
|
||||
const cellShapeList& cellShapes = mesh.cellShapes();
|
||||
|
||||
|
||||
label hexi = 0;
|
||||
label prismi = 0;
|
||||
label pyri = 0;
|
||||
label teti = 0;
|
||||
|
||||
const faceList& allFaces = mesh.faces();
|
||||
|
||||
List<int> wallFlags(6);
|
||||
forAll(cellShapes, celli)
|
||||
{
|
||||
const cellShape& cellShape = cellShapes[celli];
|
||||
const cellModel& cellModel = cellShape.model();
|
||||
|
||||
if (cellModel == tet)
|
||||
{
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
tetLabels_[teti++] = tetNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[0]];
|
||||
wallFlags[1] = wallFace[modelToMesh[1]];
|
||||
wallFlags[2] = wallFace[modelToMesh[2]];
|
||||
wallFlags[3] = wallFace[modelToMesh[3]];
|
||||
|
||||
tetLabels_[teti++] = fv_encode_elem_header
|
||||
(
|
||||
FV_TET_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
|
||||
tetLabels_[teti++] = cellShape[0] + 1;
|
||||
tetLabels_[teti++] = cellShape[1] + 1;
|
||||
tetLabels_[teti++] = cellShape[2] + 1;
|
||||
tetLabels_[teti++] = cellShape[3] + 1;
|
||||
}
|
||||
else if (cellModel == pyr)
|
||||
{
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
pyrLabels_[pyri++] = pyrNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[0]];
|
||||
wallFlags[1] = wallFace[modelToMesh[3]];
|
||||
wallFlags[2] = wallFace[modelToMesh[2]];
|
||||
wallFlags[3] = wallFace[modelToMesh[1]];
|
||||
wallFlags[4] = wallFace[modelToMesh[4]];
|
||||
|
||||
pyrLabels_[pyri++] = fv_encode_elem_header
|
||||
(
|
||||
FV_PYRA_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
|
||||
pyrLabels_[pyri++] = cellShape[0] + 1;
|
||||
pyrLabels_[pyri++] = cellShape[1] + 1;
|
||||
pyrLabels_[pyri++] = cellShape[2] + 1;
|
||||
pyrLabels_[pyri++] = cellShape[3] + 1;
|
||||
pyrLabels_[pyri++] = cellShape[4] + 1;
|
||||
}
|
||||
else if (cellModel == prism)
|
||||
{
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
prismLabels_[prismi++] = prismNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[4]];
|
||||
wallFlags[1] = wallFace[modelToMesh[2]];
|
||||
wallFlags[2] = wallFace[modelToMesh[3]];
|
||||
wallFlags[3] = wallFace[modelToMesh[0]];
|
||||
wallFlags[4] = wallFace[modelToMesh[1]];
|
||||
|
||||
prismLabels_[prismi++] = fv_encode_elem_header
|
||||
(
|
||||
FV_PRISM_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
|
||||
prismLabels_[prismi++] = cellShape[0] + 1;
|
||||
prismLabels_[prismi++] = cellShape[3] + 1;
|
||||
prismLabels_[prismi++] = cellShape[4] + 1;
|
||||
prismLabels_[prismi++] = cellShape[1] + 1;
|
||||
prismLabels_[prismi++] = cellShape[5] + 1;
|
||||
prismLabels_[prismi++] = cellShape[2] + 1;
|
||||
}
|
||||
else if (cellModel == tetWedge)
|
||||
{
|
||||
// Treat as prism with collapsed edge
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
prismLabels_[prismi++] = prismNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[1]];
|
||||
wallFlags[1] = wallFace[modelToMesh[2]];
|
||||
wallFlags[2] = wallFace[modelToMesh[3]];
|
||||
wallFlags[3] = wallFace[modelToMesh[0]];
|
||||
wallFlags[4] = wallFace[modelToMesh[3]];
|
||||
|
||||
prismLabels_[prismi++] = fv_encode_elem_header
|
||||
(
|
||||
FV_PRISM_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
|
||||
prismLabels_[prismi++] = cellShape[0] + 1;
|
||||
prismLabels_[prismi++] = cellShape[3] + 1;
|
||||
prismLabels_[prismi++] = cellShape[4] + 1;
|
||||
prismLabels_[prismi++] = cellShape[1] + 1;
|
||||
prismLabels_[prismi++] = cellShape[4] + 1;
|
||||
prismLabels_[prismi++] = cellShape[2] + 1;
|
||||
}
|
||||
else if (cellModel == wedge)
|
||||
{
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
hexLabels_[hexi++] = hexNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[2]];
|
||||
wallFlags[1] = wallFace[modelToMesh[3]];
|
||||
wallFlags[2] = wallFace[modelToMesh[0]];
|
||||
wallFlags[3] = wallFace[modelToMesh[1]];
|
||||
wallFlags[4] = wallFace[modelToMesh[4]];
|
||||
wallFlags[5] = wallFace[modelToMesh[5]];
|
||||
|
||||
hexLabels_[hexi++] = fv_encode_elem_header
|
||||
(
|
||||
FV_HEX_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
hexLabels_[hexi++] = cellShape[0] + 1;
|
||||
hexLabels_[hexi++] = cellShape[1] + 1;
|
||||
hexLabels_[hexi++] = cellShape[0] + 1;
|
||||
hexLabels_[hexi++] = cellShape[2] + 1;
|
||||
hexLabels_[hexi++] = cellShape[3] + 1;
|
||||
hexLabels_[hexi++] = cellShape[4] + 1;
|
||||
hexLabels_[hexi++] = cellShape[6] + 1;
|
||||
hexLabels_[hexi++] = cellShape[5] + 1;
|
||||
}
|
||||
else if (cellModel == hex)
|
||||
{
|
||||
if (!wallCell[celli])
|
||||
{
|
||||
hexLabels_[hexi++] = hexNotWall;
|
||||
}
|
||||
else
|
||||
{
|
||||
labelList modelToMesh = calcFaceAddressing
|
||||
(
|
||||
allFaces, cellShape, cellFaces[celli], celli
|
||||
);
|
||||
|
||||
wallFlags[0] = wallFace[modelToMesh[0]];
|
||||
wallFlags[1] = wallFace[modelToMesh[1]];
|
||||
wallFlags[2] = wallFace[modelToMesh[4]];
|
||||
wallFlags[3] = wallFace[modelToMesh[5]];
|
||||
wallFlags[4] = wallFace[modelToMesh[2]];
|
||||
wallFlags[5] = wallFace[modelToMesh[3]];
|
||||
|
||||
hexLabels_[hexi++] = fv_encode_elem_header
|
||||
(
|
||||
FV_HEX_ELEM_ID, wallFlags.begin()
|
||||
);
|
||||
}
|
||||
hexLabels_[hexi++] = cellShape[0] + 1;
|
||||
hexLabels_[hexi++] = cellShape[1] + 1;
|
||||
hexLabels_[hexi++] = cellShape[3] + 1;
|
||||
hexLabels_[hexi++] = cellShape[2] + 1;
|
||||
hexLabels_[hexi++] = cellShape[4] + 1;
|
||||
hexLabels_[hexi++] = cellShape[5] + 1;
|
||||
hexLabels_[hexi++] = cellShape[7] + 1;
|
||||
hexLabels_[hexi++] = cellShape[6] + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
nPoly_++;
|
||||
}
|
||||
}
|
||||
|
||||
hexLabels_.setSize(hexi);
|
||||
prismLabels_.setSize(prismi);
|
||||
pyrLabels_.setSize(pyri);
|
||||
tetLabels_.setSize(teti);
|
||||
|
||||
|
||||
//
|
||||
// Patches
|
||||
//
|
||||
forAll(mesh.boundaryMesh(), patchI)
|
||||
{
|
||||
const polyPatch& patchFaces = mesh.boundaryMesh()[patchI];
|
||||
|
||||
labelList& faceLabels = quadFaceLabels_[patchI];
|
||||
|
||||
// Faces, each 4 labels. Size big enough
|
||||
faceLabels.setSize(patchFaces.size()*4);
|
||||
|
||||
label labelI = 0;
|
||||
|
||||
forAll(patchFaces, faceI)
|
||||
{
|
||||
const face& patchFace = patchFaces[faceI];
|
||||
|
||||
if (patchFace.size() == 3)
|
||||
{
|
||||
faceLabels[labelI++] = patchFace[0] + 1;
|
||||
faceLabels[labelI++] = patchFace[1] + 1;
|
||||
faceLabels[labelI++] = patchFace[2] + 1;
|
||||
faceLabels[labelI++] = 0; // Fieldview:triangle definition
|
||||
}
|
||||
else if (patchFace.size() == 4)
|
||||
{
|
||||
faceLabels[labelI++] = patchFace[0] + 1;
|
||||
faceLabels[labelI++] = patchFace[1] + 1;
|
||||
faceLabels[labelI++] = patchFace[2] + 1;
|
||||
faceLabels[labelI++] = patchFace[3] + 1;
|
||||
}
|
||||
}
|
||||
|
||||
faceLabels.setSize(labelI);
|
||||
|
||||
label nFaces = labelI/4;
|
||||
|
||||
nPolyFaces_[patchI] = patchFaces.size() - nFaces;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -1,176 +0,0 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 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::fieldviewTopology
|
||||
|
||||
Description
|
||||
|
||||
SourceFiles
|
||||
fieldviewTopology.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef fieldviewTopology_H
|
||||
#define fieldviewTopology_H
|
||||
|
||||
#include "labelList.H"
|
||||
#include "faceList.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
|
||||
// Forward declaration of classes
|
||||
class polyMesh;
|
||||
class cellShape;
|
||||
|
||||
/*---------------------------------------------------------------------------*\
|
||||
Class fieldviewTopology Declaration
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
class fieldviewTopology
|
||||
{
|
||||
// Private data
|
||||
|
||||
//- Hexes in fieldview format
|
||||
List<int> hexLabels_;
|
||||
|
||||
List<int> prismLabels_;
|
||||
|
||||
List<int> pyrLabels_;
|
||||
|
||||
List<int> tetLabels_;
|
||||
|
||||
//- Number of non-hex/prism/pyr/tet labels
|
||||
label nPoly_;
|
||||
|
||||
|
||||
//
|
||||
// Patches
|
||||
//
|
||||
|
||||
//- Quad and tri patch faces in fv format
|
||||
labelListList quadFaceLabels_;
|
||||
|
||||
//- Number of polyhedral faces per patch
|
||||
labelList nPolyFaces_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
static labelList calcFaceAddressing
|
||||
(
|
||||
const faceList& allFaces, // faces given faceLabels
|
||||
const cellShape& shape,
|
||||
const labelList& faces, // faceLabels for given cell
|
||||
const label cellI
|
||||
);
|
||||
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
fieldviewTopology(const fieldviewTopology&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const fieldviewTopology&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from components
|
||||
fieldviewTopology(const polyMesh& mesh, const bool setWallInfo);
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Access
|
||||
|
||||
const List<int>& hexLabels() const
|
||||
{
|
||||
return hexLabels_;
|
||||
}
|
||||
|
||||
const List<int>& prismLabels() const
|
||||
{
|
||||
return prismLabels_;
|
||||
}
|
||||
|
||||
const List<int>& pyrLabels() const
|
||||
{
|
||||
return pyrLabels_;
|
||||
}
|
||||
|
||||
const List<int>& tetLabels() const
|
||||
{
|
||||
return tetLabels_;
|
||||
}
|
||||
|
||||
label nHex() const
|
||||
{
|
||||
return hexLabels().size()/9;
|
||||
}
|
||||
|
||||
label nPrism() const
|
||||
{
|
||||
return prismLabels().size()/7;
|
||||
}
|
||||
|
||||
label nPyr() const
|
||||
{
|
||||
return pyrLabels().size()/6;
|
||||
}
|
||||
|
||||
label nTet() const
|
||||
{
|
||||
return tetLabels().size()/5;
|
||||
}
|
||||
|
||||
label nPoly() const
|
||||
{
|
||||
return nPoly_;
|
||||
}
|
||||
|
||||
const labelListList& quadFaceLabels() const
|
||||
{
|
||||
return quadFaceLabels_;
|
||||
}
|
||||
|
||||
const labelList& nPolyFaces() const
|
||||
{
|
||||
return nPolyFaces_;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
} // End namespace Foam
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
||||
// ************************************************************************* //
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,37 +0,0 @@
|
||||
#ifndef FV_READER_TAGS_H
|
||||
#define FV_READER_TAGS_H
|
||||
|
||||
/* Numeric tags (codes) for FIELDVIEW binary file format. */
|
||||
|
||||
#define FV_MAGIC 0x00010203 /* decimal 66051 */
|
||||
|
||||
/* Content of the file (grid only, results only or combined). */
|
||||
#define FV_GRIDS_FILE 1
|
||||
#define FV_RESULTS_FILE 2
|
||||
#define FV_COMBINED_FILE 3
|
||||
|
||||
#define FV_NODES 1001
|
||||
#define FV_FACES 1002
|
||||
#define FV_ELEMENTS 1003
|
||||
#define FV_VARIABLES 1004
|
||||
#define FV_BNDRY_VARS 1006
|
||||
#define FV_ARB_POLY_FACES 1007
|
||||
#define FV_ARB_POLY_ELEMENTS 1008
|
||||
#define FV_ARB_POLY_BNDRY_VARS 1009
|
||||
|
||||
#define FV_TET_ELEM_ID 1
|
||||
#define FV_HEX_ELEM_ID 2
|
||||
#define FV_PRISM_ELEM_ID 3
|
||||
#define FV_PYRA_ELEM_ID 4
|
||||
#define FV_ARB_POLY_ELEM_ID 5
|
||||
|
||||
/* Values for "wall_info" array (see comments in fv_encode_elem_header). */
|
||||
#ifdef __STDC__
|
||||
#define A_WALL (07u)
|
||||
#define NOT_A_WALL (0u)
|
||||
#else
|
||||
#define A_WALL (07)
|
||||
#define NOT_A_WALL (0)
|
||||
#endif
|
||||
|
||||
#endif /* FV_READER_TAGS_H */
|
||||
@ -1,68 +0,0 @@
|
||||
HashSet<word> volScalarHash;
|
||||
HashSet<word> volVectorHash;
|
||||
HashSet<word> surfScalarHash;
|
||||
HashSet<word> surfVectorHash;
|
||||
HashSet<word> sprayScalarHash;
|
||||
HashSet<word> sprayVectorHash;
|
||||
|
||||
forAll(timeDirs, timeI)
|
||||
{
|
||||
runTime.setTime(timeDirs[timeI], timeI);
|
||||
|
||||
// Add all fields to hashtable
|
||||
IOobjectList objects(mesh, runTime.timeName());
|
||||
{
|
||||
wordList fieldNames(objects.names(volScalarField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
volScalarHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
{
|
||||
wordList fieldNames(objects.names(volVectorField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
volVectorHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
{
|
||||
wordList fieldNames(objects.names(surfaceScalarField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
surfScalarHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
{
|
||||
wordList fieldNames(objects.names(surfaceVectorField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
surfVectorHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Same for spray
|
||||
IOobjectList sprayObjects(mesh, runTime.timeName(), cloud::prefix);
|
||||
{
|
||||
wordList fieldNames(sprayObjects.names(scalarIOField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
sprayScalarHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
{
|
||||
wordList fieldNames(sprayObjects.names(vectorIOField::typeName));
|
||||
forAll(fieldNames, fieldI)
|
||||
{
|
||||
sprayVectorHash.insert(fieldNames[fieldI]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
wordList volScalarNames(volScalarHash.toc());
|
||||
wordList volVectorNames(volVectorHash.toc());
|
||||
wordList surfScalarNames(surfScalarHash.toc());
|
||||
wordList surfVectorNames(surfVectorHash.toc());
|
||||
wordList sprayScalarNames(sprayScalarHash.toc());
|
||||
wordList sprayVectorNames(sprayVectorHash.toc());
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user