ENH: forces: construct from components

This commit is contained in:
mattijs
2011-08-24 08:58:19 +01:00
parent 24a82f2d03
commit 0508100775
2 changed files with 45 additions and 0 deletions

View File

@ -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()

View File

@ -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();