Go to the documentation of this file.
46 if (eFaces.size() == 1)
55 for (
const label facei : eFaces)
57 edgeNormal +=
n[facei];
60 return edgeNormal/(
mag(edgeNormal) + VSMALL);
76 os <<
"trianglecoords:" <<
s[index()].tri(
s.points());
80 const edge&
e =
s.edges()[index()];
82 os <<
"edgecoords:" <<
e.line(
s.localPoints());
86 os <<
"pointcoord:" <<
s.localPoints()[index()];
95 >> elType >> sl.triangle_;
114 const InfoProxy<surfaceLocation>& ip
117 const surfaceLocation& sl = ip.t_;
119 os <<
"coord:" << sl.point();
123 os <<
" inside triangle:";
135 <<
" excludeTriangle:" << sl.triangle();
void write(Ostream &os, const triSurface &s) const
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
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...
Istream & operator>>(Istream &, directionInfo &)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
This class describes the interaction of (usually) a face and a point. It carries the info of a succes...
bool hit() const noexcept
Generic templated field type.
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
OBJstream os(runTime.globalPath()/outputName)
PointIndexHit< point > pointIndexHit
A PointIndexHit for 3D points.
label & triangle() noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
label index() const noexcept
triPointRef::proxType & elementType() noexcept
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar e
const point_type & point() const noexcept
An Ostream is an abstract base class for all output systems (streams, files, token lists,...