Skip to content
Snippets Groups Projects
Commit 3bb7bccd authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: Added null constructor to particleForces

parent 0eeb5aa7
No related branches found
No related tags found
No related merge requests found
......@@ -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
(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment