diff --git a/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C b/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C index 2d8cdb776..06f5a7409 100644 --- a/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C +++ b/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C @@ -996,10 +996,10 @@ scalar dynamicTopoFvMesh::testProximity if (twoDMesh_) { // Obtain the face-normal. - meshOps::faceNormal(faces_[index], points_, gNormal); + gNormal = faces_[index].normal(points_); // Obtain the face centre. - meshOps::faceCentre(faces_[index], points_, gCentre); + gCentre = faces_[index].centre(points_); // Fetch the edge const edge& edgeToCheck = edges_[getTriBoundaryEdge(index)]; @@ -1034,16 +1034,7 @@ scalar dynamicTopoFvMesh::testProximity if (neighbour_[eFaces[faceI]] == -1) { // Obtain the normal. - vector gTmp; - - meshOps::faceNormal - ( - faces_[eFaces[faceI]], - points_, - gTmp - ); - - gNormal += gTmp; + gNormal += faces_[eFaces[faceI]].normal(points_); } } @@ -2190,8 +2181,7 @@ const changeMap dynamicTopoFvMesh::identifySliverType } // Obtain the unit normal. - vector testNormal; - meshOps::faceNormal(testFace, points_, testNormal); + vector testNormal = testFace.normal(points_); testNormal /= (mag(testNormal) + VSMALL); @@ -2213,8 +2203,7 @@ const changeMap dynamicTopoFvMesh::identifySliverType } // Obtain the face-normal. - vector refArea; - meshOps::faceNormal(tFace, points_, refArea); + vector refArea = tFace.normal(points_); // Normalize it. vector n = refArea/mag(refArea); diff --git a/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.H b/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.H index d9838ffa1..e4256d135 100644 --- a/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.H +++ b/src/dynamicMesh/dynamicFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.H @@ -50,6 +50,7 @@ SourceFiles #include "Switch.H" #include "tetMetric.H" +#include "DynamicField.H" #include "threadHandler.H" #include "dynamicFvMesh.H" @@ -124,7 +125,14 @@ class dynamicTopoFvMesh typedef DynamicList Type; }; - resizableList::Type oldPoints_, points_; + template + class resizableField + { + public: + typedef DynamicField Type; + }; + + resizableField::Type oldPoints_, points_; resizableList::Type faces_; resizableList