mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Added null constructor to particleForces
This commit is contained in:
@ -50,6 +50,24 @@ void Foam::particleForces::deleteFields()
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::particleForces::particleForces(const fvMesh& mesh)
|
||||
:
|
||||
mesh_(mesh),
|
||||
dict_(dictionary::null),
|
||||
g_(vector::zero),
|
||||
gradUPtr_(NULL),
|
||||
HdotGradHInterPtr_(NULL),
|
||||
gravity_(false),
|
||||
virtualMass_(false),
|
||||
Cvm_(0.0),
|
||||
pressureGradient_(false),
|
||||
paramagnetic_(false),
|
||||
magneticSusceptibility_(0.0),
|
||||
UName_("undefined_UName"),
|
||||
HdotGradHName_("undefined_HdotGradHName")
|
||||
{}
|
||||
|
||||
|
||||
Foam::particleForces::particleForces
|
||||
(
|
||||
const fvMesh& mesh,
|
||||
|
||||
@ -116,6 +116,9 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct null from mesh reference
|
||||
particleForces(const fvMesh& mesh);
|
||||
|
||||
//- Construct from mesh, dictionary and gravity
|
||||
particleForces
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user