mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: injectedParticle/Cloud updates
This commit is contained in:
@ -33,4 +33,30 @@ namespace Foam
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::injectedParticle::injectedParticle(const injectedParticle& p)
|
||||
:
|
||||
particle(p),
|
||||
tag_(p.tag_),
|
||||
soi_(p.soi_),
|
||||
d_(p.d_),
|
||||
U_(p.U_)
|
||||
{}
|
||||
|
||||
|
||||
Foam::injectedParticle::injectedParticle
|
||||
(
|
||||
const injectedParticle& p,
|
||||
const polyMesh& mesh
|
||||
)
|
||||
:
|
||||
particle(p, mesh),
|
||||
tag_(p.tag_),
|
||||
soi_(p.soi_),
|
||||
d_(p.d_),
|
||||
U_(p.U_)
|
||||
{}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -48,6 +48,16 @@ Foam::injectedParticleCloud::injectedParticleCloud
|
||||
}
|
||||
|
||||
|
||||
Foam::injectedParticleCloud::injectedParticleCloud
|
||||
(
|
||||
const injectedParticleCloud& c,
|
||||
const word& cloudName
|
||||
)
|
||||
:
|
||||
Cloud<injectedParticle>(c.pMesh(), cloudName, c)
|
||||
{}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::injectedParticleCloud::~injectedParticleCloud()
|
||||
|
||||
@ -69,7 +69,7 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//-
|
||||
//- Construct from mesh and cloud name
|
||||
injectedParticleCloud
|
||||
(
|
||||
const polyMesh& mesh,
|
||||
@ -77,6 +77,18 @@ public:
|
||||
const bool readFields = true
|
||||
);
|
||||
|
||||
//- Copy constructor with new name
|
||||
injectedParticleCloud(const injectedParticleCloud& c, const word& name);
|
||||
|
||||
//- Construct and return clone based on (this) with new name
|
||||
virtual autoPtr<injectedParticleCloud> clone(const word& name) const
|
||||
{
|
||||
return autoPtr<injectedParticleCloud>
|
||||
(
|
||||
new injectedParticleCloud(*this, name)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
//- Destructor
|
||||
virtual ~injectedParticleCloud();
|
||||
|
||||
@ -202,7 +202,7 @@ Foam::Ostream& Foam::operator<<
|
||||
os << static_cast<const particle&>(p);
|
||||
os.write
|
||||
(
|
||||
reinterpret_cast<const char*>(&p.soi_),
|
||||
reinterpret_cast<const char*>(&p.tag_),
|
||||
injectedParticle::sizeofFields
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user