From 898cb9b5999c52890a7fefe4aea40b9eeeadfa8e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Thu, 11 Apr 2024 13:39:17 +0100 Subject: [PATCH] functionObjects::wallShearStress: Added support for other types of wall patch, in particular filmWall --- .../field/wallShearStress/wallShearStress.C | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/functionObjects/field/wallShearStress/wallShearStress.C b/src/functionObjects/field/wallShearStress/wallShearStress.C index efbcd61a81..ac673dc302 100644 --- a/src/functionObjects/field/wallShearStress/wallShearStress.C +++ b/src/functionObjects/field/wallShearStress/wallShearStress.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2013-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -150,20 +150,21 @@ bool Foam::functionObjects::wallShearStress::read(const dictionary& dict) else { Info<< " processing wall patches: " << nl; + labelHashSet filteredPatchSet; forAllConstIter(labelHashSet, patchSet_, iter) { - label patchi = iter.key(); + const label patchi = iter.key(); + filteredPatchSet.insert(patchi); + if (isA(pbm[patchi])) { - filteredPatchSet.insert(patchi); Info<< " " << pbm[patchi].name() << endl; } else { - WarningInFunction - << "Requested wall shear stress on non-wall boundary " - << "type patch: " << pbm[patchi].name() << endl; + Info<< " " << pbm[patchi].name() + << " type " << pbm[patchi].type() << endl; } }