36 int Foam::blockDescriptor::calcEdgePointsWeights
42 const gradingDescriptors&
expand 46 const Foam::edge thisEdge(blockShape_, cellModelEdge);
48 const bool isCollapsedEdge = !thisEdge.valid();
52 Info<<
"Collapsed edge:" << thisEdge;
55 Info <<
" block:" << index_;
57 Info<<
" model edge:" << cellModelEdge <<
nl;
66 for (
const blockEdge& cedge : blockEdges_)
68 const int cmp = cedge.compare(thisEdge);
75 const lineDivide divEdge(cedge, nDiv,
expand);
77 edgePoints = divEdge.points();
78 edgeWeights = divEdge.lambdaDivisions();
87 const lineDivide divEdge(cedge, nDiv,
expand.inv());
90 const scalarList& d = divEdge.lambdaDivisions();
93 edgeWeights.resize(d.size());
96 const label pn = (
p.size() - 1);
99 edgePoints[
pi] =
p[pn -
pi];
100 edgeWeights[
pi] = 1 - d[pn -
pi];
114 blockEdges::lineEdge(blockPoints, cellModelEdge),
119 edgePoints = divEdge.points();
120 edgeWeights = divEdge.lambdaDivisions();
136 for (label edgei = 0; edgei < 12; ++edgei)
138 nCurved += calcEdgePointsWeights
159 const gradingDescriptors& gd
162 if (edgei < 0 || edgei >= 12)
165 <<
"Edge label " << edgei
166 <<
" out of range 0..11" 170 const int nCurved = calcEdgePointsWeights
191 if (edgei < 0 || edgei >= 12)
194 <<
"Edge label " << edgei
195 <<
" out of range 0..11" 199 const int nCurved = calcEdgePointsWeights
List< scalar > scalarList
List of scalar.
errorManipArg< error, int > exit(error &err, const int errNo=1)
void resize(const label len)
Adjust allocated size of list.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const Foam::edgeList & modelEdges()
Return the model edges.
constexpr char nl
The newline '\n' character (0x0a)
int edgesPointsWeights(pointField(&edgesPoints)[12], scalarList(&edgesWeights)[12]) const
Calculate the points and weights for all edges.
#define forAll(list, i)
Loop across all elements in list.
vectorField pointField
pointField is a vectorField.
bool edgePointsWeights(const label edgei, pointField &edgePoints, scalarList &edgeWeights, const label nDiv, const gradingDescriptors &gd=gradingDescriptors()) const
Calculate points and weights for specified edge, using the specified number of divisions and grading...
An edge is a list of two vertex labels. This can correspond to a directed graph edge or an edge on a ...
constexpr scalar pi(M_PI)
pointField points(const UList< point > &meshPoints) const
The points corresponding to this shape.
int debug
Static debugging option.
messageStream Info
Information stream (stdout output on master, null elsewhere)
string expand(const std::string &s, const HashTable< string > &mapping, const char sigil='$')
Expand occurrences of variables according to the mapping and return the expanded string.