51 #ifndef triSurfaceTools_H 52 #define triSurfaceTools_H 99 static void calcRefineStatus
105 static void greenRefine
122 static scalar faceCosAngle
130 static void protectNeighbours
146 static label vertexUsesFace
161 static void getMergedEdges
173 static scalar edgeCosAngle
189 static scalar collapseMinCosAngle
200 bool collapseCreatesFold
231 const label excludeEdgeI,
232 const label excludePointi,
233 const point& triPoint,
234 const plane& cutPlane,
240 static void snapToEnd
260 const label excludeEdgeI,
261 const label excludePointi,
263 const plane& cutPlane
382 static const label
NOEDGE;
437 const scalar mergeTol
446 const label nearestFacei,
447 const point& nearestPt
464 const point& nearestPoint,
475 const label nearestFacei
489 const bool verbose =
false 498 const bool verbose =
false 510 const bool verbose =
false 584 const word& basename,
595 const word& basename,
597 const scalar internalAngleTolerance = 45,
598 const scalar externalAngleTolerance = 10
608 const scalar searchDistance
615 const word& basename,
618 const scalar searchDistance
629 const bool verbose =
true 637 const bool verbose =
true 648 const point& trianglePoint
673 const plane& cutPlane
685 const plane& cutPlane,
A triangle primitive used to calculate face normals and swept volumes. Uses referred points...
A class for handling file names.
A face is a list of labels corresponding to mesh vertices.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
A bounding box defined in terms of min/max extrema points.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A list of faces which address into the list of points.
const dimensionedScalar e
Elementary charge.
An ordered pair of two objects of type <T> with first() and second() elements.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling words, derived from Foam::string.
A triangular face using a FixedList of labels corresponding to mesh vertices.
PointFrompoint toPoint(const Foam::point &p)
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO...
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
Forward declarations of Field<T> triad specialisation.
Contains information about location on a triSurface.
void writeVTK(OFstream &os, const Type &value)
A class for managing temporary objects.
Triangulated surface description with patch information.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))