38 searchableSurfaceFeatures,
39 searchablePlateFeatures,
62 const label edgesArray[4][2]
68 edges[edgeI][0] = edgesArray[edgeI][0];
69 edges[edgeI][1] = edgesArray[edgeI][1];
88 dict.lookupOrDefault<
word>(
"meshableSide",
"inside")
93 <<
" Meshable region = " 123 edgeNormals[0][0] = 0; edgeNormals[0][1] = 0;
124 edgeNormals[1][0] = 0; edgeNormals[1][1] = 0;
125 edgeNormals[2][0] = 0; edgeNormals[2][1] = 0;
126 edgeNormals[3][0] = 0; edgeNormals[3][1] = 0;
128 forAll(edgeDirections, eI)
135 for (
label j = 0; j < 2; ++j)
138 (faceNormals[edgeNormals[eI][j]] ^ edgeDirections[eI]);
143 normalDirections[eI][j] =
146 (cross/(
mag(cross) + vSmall))
147 & (fC0tofE0/(
mag(fC0tofE0)+ vSmall))
158 forAll(featurePointNormals, pI)
160 labelList& ftPtEdges = featurePointEdges[pI];
170 ftPtEdges[edgeI++] = eI;
172 else if (e.
end() == pI)
174 ftPtEdges[edgeI++] = eI;
178 labelList& ftPtNormals = featurePointNormals[pI];
181 ftPtNormals[0] = edgeNormals[ftPtEdges[0]][0];
194 "extendedFeatureEdgeMesh",
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const searchableSurface & surface() const
Return a reference to the searchable surface.
Ostream & indent(Ostream &os)
Indent stream.
Decorator that returns the features of a searchable surface.
A list of keyword definitions, which are a keyword followed by any number of values (e...
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
static const Foam::NamedEnum< sideVolumeType, 4 > sideVolumeTypeNames_
Ostream & endl(Ostream &os)
Add newline and flush stream.
Holds information (coordinate and normal) regarding nearest wall point.
void cross(FieldField< Field1, typename crossProduct< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
virtual ~searchablePlateFeatures()
Destructor.
Macros for easy insertion into run-time selection tables.
searchablePlateFeatures(const searchableSurface &surface, const dictionary &dict)
Construct from searchable surface and dictionary.
An edge is a list of two point labels. The functionality it provides supports the discretisation on a...
A class for handling words, derived from string.
static const edgeList edges
Edge to point addressing.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
List< label > labelList
A List of labels.
virtual autoPtr< extendedFeatureEdgeMesh > features() const
Return an extendedFeatureEdgeMesh containing the features.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual tmp< pointField > points() const =0
Get the points that define the surface.
defineTypeNameAndDebug(combustionModel, 0)
void set(T *)
Set pointer to that given.
word name(const complex &)
Return a string representation of a complex.
void setSize(const label)
Reset size of List.
label end() const
Return end vertex label.
dimensioned< scalar > mag(const dimensioned< Type > &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const doubleScalar e
Elementary charge.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
virtual void getNormal(const List< pointIndexHit > &, vectorField &normal) const =0
From a set of points and indices get the normal.
label start() const
Return start vertex label.