Go to the documentation of this file.
27 #include "triSurface.H"
43 if (eFaces.
size() == 1)
53 edgeNormal +=
n[eFaces[i]];
55 return edgeNormal/(
mag(edgeNormal) + VSMALL);
60 return s.pointNormals()[
index()];
71 os <<
"trianglecoords:" <<
s[index()].tri(
s.points());
75 const edge&
e =
s.edges()[index()];
77 os <<
"edgecoords:" <<
e.line(
s.localPoints());
81 os <<
"pointcoord:" <<
s.localPoints()[index()];
108 const InfoProxy<surfaceLocation>& ip
111 const surfaceLocation& sl = ip.t_;
115 os <<
"coord:" << sl.rawPoint()
116 <<
" inside triangle:" << sl.index()
117 <<
" excludeTriangle:" << sl.triangle();
121 os <<
"coord:" << sl.rawPoint()
122 <<
" on edge:" << sl.index()
123 <<
" excludeTriangle:" << sl.triangle();
127 os <<
"coord:" << sl.rawPoint()
128 <<
" on point:" << sl.index()
129 <<
" excludeTriangle:" << sl.triangle();
void write(Ostream &os, const triSurface &s) const
Write info to os.
label index() const
Return index.
#define forAll(list, i)
Loop across all elements in list.
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...
dimensioned< scalar > mag(const dimensioned< Type > &)
triPointRef::proxType elementType_
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Triangulated surface description with patch information.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Ostream & operator<<(Ostream &, const edgeMesh &)
vector normal(const triSurface &s) const
Normal. Approximate for points.
const double e
Elementary charge.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().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))
PointIndexHit< point > pointIndexHit
proxType
Return types for classify.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Istream & operator>>(Istream &, edgeMesh &)
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...