From f6825c7952ae8a23284105531e6b72e46ff99e22 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 5 Feb 2024 09:55:41 +0100 Subject: [PATCH] ENH: replace listCombineReduce with equivalent - a few places still used listCombineReduce instead of newer constructs (eg allGatherList) with fewer MPI calls. - align triangulation handling of turbulentDFSEMInlet and patchInjectionBase with meshTools/triangulatedPatch (will ease future code refactoring) --- .../turbulentDFSEMInletFvPatchVectorField.C | 195 ++++++++---------- .../turbulentDFSEMInletFvPatchVectorField.H | 13 +- src/lagrangian/basic/Cloud/CloudIO.C | 10 +- .../PatchInjection/patchInjectionBase.C | 113 +++++----- .../PatchInjection/patchInjectionBase.H | 20 +- .../triangulatedPatch/triangulatedPatch.C | 27 +-- .../topOVariablesBase/topOVariablesBase.C | 14 +- 7 files changed, 188 insertions(+), 204 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C index f44176b09e..c66b642475 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/turbulentDFSEMInlet/turbulentDFSEMInletFvPatchVectorField.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2015 OpenFOAM Foundation - Copyright (C) 2016-2022 OpenCFD Ltd. + Copyright (C) 2016-2024 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -132,58 +132,76 @@ void Foam::turbulentDFSEMInletFvPatchVectorField::initialisePatch() patchNormal_ /= mag(patchNormal_) + ROOTVSMALL; - // Decompose the patch faces into triangles to enable point search - const polyPatch& patch = this->patch().patch(); const pointField& points = patch.points(); // Triangulate the patch faces and create addressing - DynamicList