From d1c0b7773a1f38b9f239ca64d284fe2f58a994bb Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 22 Aug 2011 15:03:19 +0100 Subject: [PATCH] ENH: forces: construct from components --- .../functionObjects/forces/forces/forces.C | 30 ++++++++++++++++++++++ .../functionObjects/forces/forces/forces.H | 15 +++++++++++ 2 files changed, 45 insertions(+) diff --git a/src/postProcessing/functionObjects/forces/forces/forces.C b/src/postProcessing/functionObjects/forces/forces/forces.C index 2266d84d..d5855696 100644 --- a/src/postProcessing/functionObjects/forces/forces/forces.C +++ b/src/postProcessing/functionObjects/forces/forces/forces.C @@ -213,6 +213,36 @@ Foam::forces::forces } +Foam::forces::forces +( + const word& name, + const objectRegistry& obr, + const labelHashSet& patchSet, + const word& pName, + const word& UName, + const word& rhoName, + const scalar rhoInf, + const scalar pRef, + const coordinateSystem& coordSys +) +: + name_(name), + obr_(obr), + active_(true), + log_(false), + patchSet_(patchSet), + pName_(pName), + UName_(UName), + rhoName_(rhoName), + directForceDensity_(false), + fDName_(""), + rhoRef_(rhoInf), + pRef_(pRef), + coordSys_(coordSys), + forcesFilePtr_(NULL) +{} + + // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // Foam::forces::~forces() diff --git a/src/postProcessing/functionObjects/forces/forces/forces.H b/src/postProcessing/functionObjects/forces/forces/forces.H index a4736e2e..eb46c057 100644 --- a/src/postProcessing/functionObjects/forces/forces/forces.H +++ b/src/postProcessing/functionObjects/forces/forces/forces.H @@ -214,6 +214,21 @@ public: ); + //- Construct from components + forces + ( + const word& name, + const objectRegistry&, + const labelHashSet& patchSet, + const word& pName, + const word& UName, + const word& rhoName, + const scalar rhoInf, + const scalar pRef, + const coordinateSystem& coordSys + ); + + //- Destructor virtual ~forces(); -- 2.11.4.GIT