construct cloud from components

This commit is contained in:
mattijs
2009-07-21 16:51:39 +01:00
parent 4bf0ae136c
commit 18fef89f39
2 changed files with 22 additions and 0 deletions

View File

@ -52,6 +52,17 @@ Foam::passiveParticleCloud::passiveParticleCloud
} }
Foam::passiveParticleCloud::passiveParticleCloud
(
const polyMesh& mesh,
const word& cloudName,
const IDLList<passiveParticle>& particles
)
:
Cloud<passiveParticle>(mesh, cloudName, particles)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::passiveParticleCloud::readFields() void Foam::passiveParticleCloud::readFields()

View File

@ -63,6 +63,9 @@ class passiveParticleCloud
public: public:
//- Type of parcel the cloud was instantiated for
typedef passiveParticle parcelType;
// Constructors // Constructors
//- Construct given mesh //- Construct given mesh
@ -72,6 +75,14 @@ public:
const word& cloudName = "defaultCloud" const word& cloudName = "defaultCloud"
); );
//- Construct from mesh, cloud name, and a list of particles
passiveParticleCloud
(
const polyMesh& mesh,
const word& cloudName,
const IDLList<passiveParticle>& particles
);
// Member Functions // Member Functions