Skip to content
Snippets Groups Projects
Commit 18e8d2be authored by laurence's avatar laurence
Browse files

STYLE: cleanup

parent 181e4b29
Branches
Tags
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -46,7 +46,8 @@ Foam::cellAspectRatioControl::cellAspectRatioControl ...@@ -46,7 +46,8 @@ Foam::cellAspectRatioControl::cellAspectRatioControl
{ {
Info<< nl << " Cell Aspect Ratio Control" << nl Info<< nl << " Cell Aspect Ratio Control" << nl
<< " Ratio : " << aspectRatio_ << nl << " Ratio : " << aspectRatio_ << nl
<< " Direction : " << aspectRatioDirection_ << nl << endl; << " Direction : " << aspectRatioDirection_
<< endl;
} }
......
...@@ -141,14 +141,15 @@ public: ...@@ -141,14 +141,15 @@ public:
const Foam::point& pt const Foam::point& pt
); );
void distribute void distribute(const backgroundMeshDecomposition& decomposition);
(
const backgroundMeshDecomposition& decomposition
);
tensorField dumpAlignments() const; tensorField dumpAlignments() const;
void insertBoundingPoints(const boundBox& bb); void insertBoundingPoints
(
const boundBox& bb,
const cellSizeAndAlignmentControls& sizeControls
);
void writeTriangulation(); void writeTriangulation();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -25,6 +25,7 @@ License ...@@ -25,6 +25,7 @@ License
#include "conformationSurfaces.H" #include "conformationSurfaces.H"
#include "conformalVoronoiMesh.H" #include "conformalVoronoiMesh.H"
#include "triSurface.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
...@@ -250,6 +251,9 @@ Foam::conformationSurfaces::conformationSurfaces ...@@ -250,6 +251,9 @@ Foam::conformationSurfaces::conformationSurfaces
Info<< endl Info<< endl
<< "Testing for locationInMesh " << locationInMesh_ << endl; << "Testing for locationInMesh " << locationInMesh_ << endl;
vector sum = vector::zero;
label totalTriangles = 0;
forAll(surfaces_, s) forAll(surfaces_, s)
{ {
const searchableSurface& surface(allGeometry_[surfaces_[s]]); const searchableSurface& surface(allGeometry_[surfaces_[s]]);
...@@ -273,7 +277,27 @@ Foam::conformationSurfaces::conformationSurfaces ...@@ -273,7 +277,27 @@ Foam::conformationSurfaces::conformationSurfaces
<< " surface " << surface.name() << " surface " << surface.name()
<< endl; << endl;
} }
if (isA<triSurface>(surface))
{
const triSurface& triSurf = refCast<const triSurface>(surface);
const pointField& surfPts = triSurf.points();
forAll(triSurf, sI)
{
sum += triSurf[sI].normal(surfPts);
}
totalTriangles += triSurf.size();
}
} }
Info<< " Sum of all the surface normals (if near zero, surface is"
<< " probably closed):" << nl
<< " Sum = " << sum/totalTriangles << nl
<< " mag(Sum) = " << mag(sum)/totalTriangles
<< endl;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment