48#ifndef Foam_surfaceLocation_H
49#define Foam_surfaceLocation_H
149 void write(Ostream&
os,
const triSurface&
s)
const;
A helper class for outputting values to Ostream.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Contains information about location on a triSurface.
vector normal(const triSurface &s) const
Normal. Approximate for points.
surfaceLocation(const pointIndexHit &pHit, const triPointRef::proxType elementType, const label triangle)
Construct from components.
label triangle() const noexcept
friend Ostream & operator<<(Ostream &os, const surfaceLocation &sl)
triPointRef::proxType elementType() const noexcept
surfaceLocation(Istream &is)
Construct from Istream.
InfoProxy< surfaceLocation > info() const noexcept
Return info proxy, to print information to a stream.
triPointRef::proxType & elementType() noexcept
friend Istream & operator>>(Istream &is, surfaceLocation &sl)
surfaceLocation()
Default construct.
label & triangle() noexcept
Triangulated surface description with patch information.
OBJstream os(runTime.globalPath()/outputName)
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))
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
Istream & operator>>(Istream &, directionInfo &)
triangle< point, const point & > triPointRef
A triangle using referred points.
PointIndexHit< point > pointIndexHit
A PointIndexHit with a 3D point.