From ec48e2f3092a38c4a9fbd01656f320ed6b7bd55a Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Sat, 2 Dec 2023 20:46:36 +0000 Subject: [PATCH] ENH: Extended patchSeedSet to generate seed points more uniformly --- .../sampledSet/patchSeed/patchSeedSet.C | 162 ++++++++++++++---- .../sampledSet/patchSeed/patchSeedSet.H | 26 ++- 2 files changed, 149 insertions(+), 39 deletions(-) diff --git a/src/sampling/sampledSet/patchSeed/patchSeedSet.C b/src/sampling/sampledSet/patchSeed/patchSeedSet.C index 825345a370..8b7ef5a8ff 100644 --- a/src/sampling/sampledSet/patchSeed/patchSeedSet.C +++ b/src/sampling/sampledSet/patchSeed/patchSeedSet.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2012-2016 OpenFOAM Foundation - Copyright (C) 2018-2022 OpenCFD Ltd. + Copyright (C) 2018-2023 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -28,13 +28,12 @@ License #include "patchSeedSet.H" #include "polyMesh.H" -#include "addToRunTimeSelectionTable.H" #include "treeBoundBox.H" #include "treeDataFace.H" -#include "Time.H" -#include "meshTools.H" #include "mappedPatchBase.H" #include "indirectPrimitivePatch.H" +#include "triangulatedPatch.H" +#include "addToRunTimeSelectionTable.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -47,8 +46,10 @@ namespace Foam // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void Foam::patchSeedSet::calcSamples +void Foam::patchSeedSet::calcPatchSamples ( + const label nAvailable, + const label nPatchPoints, DynamicList& samplingPts, DynamicList