75 const scalar startStepFraction,
76 const scalar endStepFraction,
79 Pair<vector>& vertex1,
93 const scalar startStepFraction,
94 const scalar endStepFraction
110 const label faceTrii,
122 base = pts[triIs[0]];
123 vertex1 = pts[triIs[1]];
124 vertex2 = pts[triIs[2]];
136 vector centre, base, vertex1, vertex2;
158 const label faceTrii,
159 const scalar startStepFraction,
160 const scalar endStepFraction,
173 const scalar f0 = startStepFraction, f1 = endStepFraction;
175 centre[0] = ccOld + f0*(ccNew - ccOld);
176 base[0] = ptsOld[triIs[0]] + f0*(ptsNew[triIs[0]] - ptsOld[triIs[0]]);
177 vertex1[0] = ptsOld[triIs[1]] + f0*(ptsNew[triIs[1]] - ptsOld[triIs[1]]);
178 vertex2[0] = ptsOld[triIs[2]] + f0*(ptsNew[triIs[2]] - ptsOld[triIs[2]]);
180 centre[1] = f1*(ccNew - ccOld);
181 base[1] = f1*(ptsNew[triIs[0]] - ptsOld[triIs[0]]);
182 vertex1[1] = f1*(ptsNew[triIs[1]] - ptsOld[triIs[1]]);
183 vertex2[1] = f1*(ptsNew[triIs[2]] - ptsOld[triIs[2]]);
192 const label faceTrii,
193 const scalar startStepFraction,
194 const scalar endStepFraction
229 const label faceTrii,
230 const scalar stepFraction
Templated 4x3 tensor derived from VectorSpace. Has 12 components. Can represent a barycentric transfo...
An ordered pair of two objects of type <Type> with first() and second() elements.
Mesh consisting of general polyhedral cells.
virtual const pointField & oldPoints() const
Return old points for mesh motion.
virtual const pointField & points() const
Return raw points.
virtual const pointField & oldCellCentres() const
Return old cell centres for mesh motion.
bool moving() const
Is mesh moving.
const vectorField & cellCentres() const
Storage and named access for the indices of a tet which is part of the decomposition of a cell.
A triangular face using a FixedList of labels corresponding to mesh vertices.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
barycentric coordinates(const polyMesh &mesh, const point &position, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the coordinates given the position and tet topology.
void stationaryTetGeometry(const polyMesh &mesh, const label celli, const label facei, const label faceTrii, vector ¢re, vector &base, vector &vertex1, vector &vertex2)
Get the vertices of the current tet.
barycentricTensor stationaryTetTransform(const polyMesh &mesh, const label celli, const label facei, const label faceTrii)
Get the transformation associated with the current tet. This.
void movingTetGeometry(const polyMesh &mesh, const label celli, const label facei, const label faceTrii, const scalar startStepFraction, const scalar endStepFraction, Pair< vector > ¢re, Pair< vector > &base, Pair< vector > &vertex1, Pair< vector > &vertex2)
Get the vertices of the current moving tet. Two values are.
Pair< barycentricTensor > movingTetTransform(const polyMesh &mesh, const label celli, const label facei, const label faceTrii, const scalar startStepFraction, const scalar endStepFraction)
Get the transformation associated with the current, moving, tet.
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Vector< scalar > vector
A scalar version of the templated Vector.
BarycentricTensor< scalar > barycentricTensor
A scalar version of the templated BarycentricTensor.