From c9a200104fdc379c8440a8fa4870b467ddf5b66d Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Mon, 1 Aug 2016 14:43:27 +0100 Subject: [PATCH] Bugfix: add access to direction member functions --- ...DirectedInletOutletVelocityFvPatchVectorField.H | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H index 423b0fc6c..b24c6c00b 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H +++ b/src/finiteVolume/fields/fvPatchFields/derived/pressureDirectedInletOutletVelocity/pressureDirectedInletOutletVelocityFvPatchVectorField.H @@ -47,7 +47,7 @@ namespace Foam { /*---------------------------------------------------------------------------*\ - Class pressureDirectedInletOutletVelocityFvPatch Declaration + Class pressureDirectedInletOutletVelocityFvPatchVectorField Declaration \*---------------------------------------------------------------------------*/ class pressureDirectedInletOutletVelocityFvPatchVectorField @@ -170,6 +170,18 @@ public: return phiName_; } + //- Return inlet direction + const vectorField& inletDir() const + { + return inletDir_; + } + + //- Return access to inlet direction + vectorField& inletDir() + { + return inletDir_; + } + // Mapping functions