From d72f51ac23ea2fc894d217b4b8e133d040b525e7 Mon Sep 17 00:00:00 2001 From: Mattijs Janssens Date: Wed, 18 Sep 2024 11:07:41 +0000 Subject: [PATCH] Issue 3215 point connected cells --- .../wallDist/nearWallDist/nearWallDist.C | 129 ++++++-- .../wallDistAddressing/wallDistAddressing.C | 39 ++- src/meshTools/cellDist/cellDistFuncs.C | 282 ++++++++++-------- src/meshTools/cellDist/cellDistFuncs.H | 33 +- .../cellDist/cellDistFuncsTemplates.C | 133 ++++++++- .../cellDist/patchWave/patchDataWave.C | 41 ++- src/meshTools/cellDist/patchWave/patchWave.C | 39 ++- 7 files changed, 495 insertions(+), 201 deletions(-) diff --git a/src/finiteVolume/fvMesh/wallDist/nearWallDist/nearWallDist.C b/src/finiteVolume/fvMesh/wallDist/nearWallDist/nearWallDist.C index e79ce51ac8..f7d7644037 100644 --- a/src/finiteVolume/fvMesh/wallDist/nearWallDist/nearWallDist.C +++ b/src/finiteVolume/fvMesh/wallDist/nearWallDist/nearWallDist.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2011-2016 OpenFOAM Foundation - Copyright (C) 2020 OpenCFD Ltd. + Copyright (C) 2020,2024 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -27,60 +27,137 @@ License \*---------------------------------------------------------------------------*/ #include "nearWallDist.H" -#include "fvMesh.H" #include "cellDistFuncs.H" #include "wallFvPatch.H" -#include "surfaceFields.H" // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // void Foam::nearWallDist::calculate() { - cellDistFuncs wallUtils(mesh_); - - // Get patch ids of walls - labelHashSet wallPatchIDs(wallUtils.getPatchIDs()); - - // Size neighbours array for maximum possible - - DynamicList