From 2fa0a2ea9a88c9babe7e0049ab8c2ebbbad36450 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 15 May 2020 14:18:43 +0100 Subject: [PATCH] ENH: PatchFunction1: expose variables. This makes coded versions easier. --- src/meshTools/PatchFunction1/PatchFunction1.C | 14 ++++++++++++++ src/meshTools/PatchFunction1/PatchFunction1.H | 6 ++++++ 2 files changed, 20 insertions(+) diff --git a/src/meshTools/PatchFunction1/PatchFunction1.C b/src/meshTools/PatchFunction1/PatchFunction1.C index a564af0253..f01196a5d1 100644 --- a/src/meshTools/PatchFunction1/PatchFunction1.C +++ b/src/meshTools/PatchFunction1/PatchFunction1.C @@ -99,6 +99,20 @@ const Foam::word& Foam::PatchFunction1::name() const } +template +const Foam::polyPatch& Foam::PatchFunction1::patch() const +{ + return patch_; +} + + +template +bool Foam::PatchFunction1::faceValues() const +{ + return faceValues_; +} + + template void Foam::PatchFunction1::convertTimeBase(const Time&) {} diff --git a/src/meshTools/PatchFunction1/PatchFunction1.H b/src/meshTools/PatchFunction1/PatchFunction1.H index 6246fe44d2..bad8755982 100644 --- a/src/meshTools/PatchFunction1/PatchFunction1.H +++ b/src/meshTools/PatchFunction1/PatchFunction1.H @@ -183,6 +183,12 @@ public: //- Return the name of the entry const word& name() const; + //- Reference to the patch + const polyPatch& patch() const; + + //- Whether to generate face or point values on patch + bool faceValues() const; + // Manipulation