Go to the documentation of this file.
39 namespace extrudeModels
54 project_(coeffDict_.getOrDefault(
"project", false))
62 offsetSurfPtr_.reset(
new triSurface(offsetName));
76 <<
"offsetSurface:\n " << offsetName
77 <<
" has different topology than the baseSurface:\n "
98 point offsetSurface::operator()
100 const point& surfacePoint,
101 const vector& surfaceNormal,
114 baseSearchPtr_().findNearest(
samples, nearestDistSqr, info);
116 label triI = info[0].index();
126 const point offsetPoint
128 bary[0]*offsetTri.
a()
129 + bary[1]*offsetTri.
b()
130 + bary[2]*offsetTri.
c()
133 point interpolatedPoint
135 surfacePoint + sumThickness(layer)*(offsetPoint-surfacePoint)
145 offsetSearchPtr_().findNearest
151 return info[0].hitPoint();
155 return interpolatedPoint;
const Field< point_type > & points() const noexcept
Return reference to global points.
vectorField pointField
pointField is a vectorField.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling file names.
defineTypeNameAndDebug(cyclicSector, 0)
Top level extrusion model class.
label nEdges() const
Number of edges in patch.
Templated 2D Barycentric derived from VectorSpace. Has 3 components, one of which is redundant.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Helper class to search on triSurface.
A triangle primitive used to calculate face normals and swept volumes.
const Point & c() const
Return third vertex.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Triangulated surface description with patch information.
const Point & a() const
Return first vertex.
scalarField samples(nIntervals, Zero)
label nPoints() const
Number of points supporting patch faces.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
const Point & b() const
Return second vertex.
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual ~offsetSurface()
Destructor.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
string & expand(const bool allowEmpty=false)
offsetSurface(const dictionary &dict)
Construct from dictionary.
const dictionary & coeffDict_
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
barycentric2D pointToBarycentric(const point &pt) const
Calculate the barycentric coordinates from the given point.