diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/Make/files b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/Make/files index c6e553f64c..7e9d038441 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/Make/files +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/Make/files @@ -29,6 +29,10 @@ $(cellSizeAndAlignmentControl)/searchableSurfaceControl/searchableSurfaceControl cellShapeControl/cellAspectRatioControl/cellAspectRatioControl.C +cellShapeControl/smoothAlignmentSolver/smoothAlignmentSolver.C + +cellShapeControl/controlMeshRefinement/controlMeshRefinement.C + /*cellSizeControlSurfaces/cellSizeControlSurfaces.C*/ cellSizeFunctions = cellSizeControlSurfaces/cellSizeFunction diff --git a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.C b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.C index 932b264f94..444a0a4bf0 100644 --- a/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.C +++ b/applications/utilities/mesh/generation/cvMesh/conformalVoronoiMesh/cellShapeControl/cellShapeControl/cellShapeControl.C @@ -31,213 +31,16 @@ License #include "searchableSurfaceControl.H" #include "cellSizeFunction.H" +// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // + +namespace Foam +{ +defineTypeNameAndDebug(cellShapeControl, 0); +} + + // * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * * // -template -Foam::tmp > Foam::cellShapeControl::filterFarPoints -( - const Triangulation& mesh, - const Field& field -) -{ - tmp > tNewField(new Field(field.size())); - Field& newField = tNewField(); - - label added = 0; - label count = 0; - - for - ( - typename Triangulation::Finite_vertices_iterator vit = - mesh.finite_vertices_begin(); - vit != mesh.finite_vertices_end(); - ++vit - ) - { - if (vit->real()) - { - newField[added++] = field[count]; - } - - count++; - } - - newField.resize(added); - - return tNewField; -} - - -template -Foam::autoPtr Foam::cellShapeControl::buildReferredMap -( - const Triangulation& mesh, - labelList& indices -) -{ - globalIndex globalIndexing(mesh.vertexCount()); - - DynamicList