31 template<
class CloudType>
41 dict_(dictionary::null),
47 template<
class CloudType>
67 Info<<
"Constructing particle forces" <<
endl;
69 if (modelNames.size() > 0)
71 this->
setSize(modelNames.size());
76 const word& model = iter().keyword();
115 template<
class CloudType>
130 template<
class CloudType>
137 template<
class CloudType>
142 this->operator[](i).cacheFields(store);
147 template<
class CloudType>
151 const typename CloudType::parcelType::trackingData& td,
164 value += this->operator[](i).calcCoupled(p, td, dt, mass, Re, muc);
172 template<
class CloudType>
176 const typename CloudType::parcelType::trackingData& td,
190 this->operator[](i).calcNonCoupled(p, td, dt, mass, Re, muc);
198 template<
class CloudType>
202 const typename CloudType::parcelType::trackingData& td,
206 scalar massEff = mass;
209 massEff += this->operator[](i).massAdd(p, td, mass);
Template class for intrusive linked lists.
virtual void cacheFields(const bool store)
Cache fields.
#define forAll(list, i)
Loop across all elements in list.
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
ParticleForceList(CloudType &owner, const fvMesh &mesh)
Null constructor.
wordList toc() const
Return the table of contents.
Helper container for force Su and Sp terms.
virtual scalar massEff(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar mass) const
Return the effective mass.
points setSize(newPointi)
virtual forceSuSp calcCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the coupled force.
A class for handling words, derived from string.
virtual forceSuSp calcNonCoupled(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the non-coupled force.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Mesh data needed to do the Finite Volume discretisation.
virtual ~ParticleForceList()
Destructor.
Templated base class for dsmc cloud.