mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: forces: construct from components
This commit is contained in:
@ -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 * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::forces::~forces()
|
Foam::forces::~forces()
|
||||||
|
|||||||
@ -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
|
//- Destructor
|
||||||
virtual ~forces();
|
virtual ~forces();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user