Go to the documentation of this file.
45 if (eFaces.size() == 1)
55 edgeNormal +=
n[eFaces[i]];
57 return edgeNormal/(
mag(edgeNormal) + VSMALL);
62 return s.pointNormals()[
index()];
73 os <<
"trianglecoords:" <<
s[index()].tri(
s.points());
77 const edge&
e =
s.edges()[index()];
79 os <<
"edgecoords:" <<
e.line(
s.localPoints());
83 os <<
"pointcoord:" <<
s.localPoints()[index()];
92 >> elType >> sl.triangle_;
118 <<
" inside triangle:" << sl.
index()
119 <<
" excludeTriangle:" << sl.
triangle();
124 <<
" on edge:" << sl.
index()
125 <<
" excludeTriangle:" << sl.
triangle();
130 <<
" on point:" << sl.
index()
131 <<
" excludeTriangle:" << sl.
triangle();
void write(Ostream &os, const triSurface &s) const
Write info to os.
label index() const
Return index.
A helper class for outputting values to Ostream.
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))
static constexpr const zero Zero
Global zero (0)
Contains information about location on a triSurface.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
bool hit() const
Is there a hit.
Istream & operator>>(Istream &, directionInfo &)
triPointRef::proxType & elementType()
#define forAll(list, i)
Loop across all elements in list.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
const Point & rawPoint() const
Return point with no checking.
Triangulated surface description with patch information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
vector normal(const triSurface &s) const
Normal. Approximate for points.
proxType
Return types for classify.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
Elementary charge.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...