Commit bb8f7a28 authored by Andrew Heather's avatar Andrew Heather
Browse files

added function bodies for copy constructors

parent 3b43ab0c
......@@ -186,6 +186,17 @@ Foam::Particle<ParticleType>::Particle
{}
template<class ParticleType>
Foam::Particle<ParticleType>::Particle(const Particle<ParticleType>& p)
:
cloud_(p.cloud_),
position_(p.position_),
celli_(p.celli_),
facei_(p.facei_),
stepFraction_(p.stepFraction_)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ParticleType>
......
......@@ -167,6 +167,28 @@ const Foam::vector Foam::KinematicParcel<ParcelType>::calcVelocity
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType>
Foam::KinematicParcel<ParcelType>::KinematicParcel
(
const KinematicParcel<ParcelType>& p
)
:
Particle<ParcelType>(p),
typeId_(p.typeId_),
nParticle_(p.nParticle_),
d_(p.d_),
U_(p.U_),
rho_(p.rho_),
tTurb_(p.tTurb_),
UTurb_(p.UTurb_),
rhoc_(p.rhoc_),
Uc_(p.Uc_),
muc_(p.muc_)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ParcelType>
......
......@@ -546,6 +546,21 @@ Foam::scalar Foam::ReactingMultiphaseParcel<ParcelType>::calcSurfaceReactions
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType>
Foam::ReactingMultiphaseParcel<ParcelType>::ReactingMultiphaseParcel
(
const ReactingMultiphaseParcel<ParcelType>& p
)
:
ReactingParcel<ParcelType>(p),
YGas_(p.YGas_),
YLiquid_(p.YLiquid_),
YSolid_(p.YSolid_)
{}
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
#include "ReactingMultiphaseParcelIO.C"
......
......@@ -298,6 +298,21 @@ Foam::scalar Foam::ReactingParcel<ParcelType>::calcPhaseChange
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType>
Foam::ReactingParcel<ParcelType>::ReactingParcel
(
const ReactingParcel<ParcelType>& p
)
:
ThermoParcel<ParcelType>(p),
mass0_(p.mass0_),
Y_(p.Y_),
pc_(p.pc_)
{}
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
#include "ReactingParcelIO.C"
......
......@@ -205,6 +205,22 @@ Foam::scalar Foam::ThermoParcel<ParcelType>::calcHeatTransfer
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template <class ParcelType>
Foam::ThermoParcel<ParcelType>::ThermoParcel
(
const ThermoParcel<ParcelType>& p
)
:
KinematicParcel<ParcelType>(p),
T_(p.T_),
cp_(p.cp_),
Tc_(p.Tc_),
cpc_(p.cpc_)
{}
// * * * * * * * * * * * * * * IOStream operators * * * * * * * * * * * * * //
#include "ThermoParcelIO.C"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment