ENH: Added null constructor to particleForces

This commit is contained in:
andy
2010-10-21 11:18:08 +01:00
parent 0eeb5aa725
commit 3bb7bccde4
2 changed files with 21 additions and 0 deletions

View File

@ -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,

View File

@ -116,6 +116,9 @@ public:
// Constructors
//- Construct null from mesh reference
particleForces(const fvMesh& mesh);
//- Construct from mesh, dictionary and gravity
particleForces
(