33 namespace sampledSurfaces
43 Foam::sampledSurfaces::distanceSurface::calcIsoSurf()
const
48 List<pointIndexHit> nearest;
49 surfPtr_().findNearest
58 List<volumeType> volType;
59 surfPtr_().getVolumeType(
mesh().
points(), volType);
70 <<
"Point " <<
mesh().
points()[i] <<
" could not be "
71 <<
"classified as either inside or outside the surface "
91 return autoPtr<cutPolyIsoSurface>
93 new cutPolyIsoSurface(
mesh(), pointDistance, distance_,
zoneName())
112 dict.lookup(
"surfaceType"),
115 dict.lookupOrDefault(
"surfaceName",
name),
116 mesh.time().constant(),
125 distance_(
dict.lookup<scalar>(
"distance")),
146 os <<
"distanceSurface: " <<
name() <<
" :"
147 <<
" surface:" << surfPtr_().name()
148 <<
" distance:" << distance_
149 <<
" faces:" << faces().size()
150 <<
" points:" <<
points().size();
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh consisting of general polyhedral cells.
virtual const pointField & points() const
Return raw points.
An abstract class for surfaces with sampling.
const polyMesh & mesh() const
Access to the underlying mesh.
A sampledSurface defined by a distance to a surface.
distanceSurface(const word &name, const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
virtual ~distanceSurface()
Destructor.
virtual bool needsUpdate() const
Does the surface need an update?
virtual void print(Ostream &) const
Print.
A base class for sampled surfaces constructed from iso-surfaces.
const word & zoneName() const
Access the zoneName.
virtual const pointField & points() const
Points of surface.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
A class for handling words, derived from string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(cutPlane, 0)
addToRunTimeSelectionTable(sampledSurface, cutPlane, word)
errorManipArg< error, int > exit(error &err, const int errNo=1)
word name(const bool)
Return a word representation of a bool.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensioned< scalar > mag(const dimensioned< Type > &)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)