Go to the documentation of this file.
31 template<
class CloudType>
41 dict_(dictionary::null),
47 template<
class CloudType>
67 Info<<
"Constructing particle forces" <<
endl;
69 if (modelNames.
size() > 0)
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>
163 value += this->operator[](i).calcCoupled(
p, dt, mass,
Re, muc);
171 template<
class CloudType>
187 value += this->operator[](i).calcNonCoupled(
p, dt, mass,
Re, muc);
195 template<
class CloudType>
202 scalar massEff = mass;
205 massEff += this->operator[](i).massAdd(
p, mass);
points setSize(newPointi)
virtual void cacheFields(const bool store)
Cache fields.
A class for handling words, derived from string.
virtual scalar massEff(const typename CloudType::parcelType &p, const scalar mass) const
Return the effective mass.
#define forAll(list, i)
Loop across all elements in list.
scalarField Re(const UList< complex > &cf)
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~ParticleForceList()
Destructor.
This function object reads fields from the time directories and adds them to the mesh database for fu...
const dictionary dict_
Forces dictionary.
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Helper container for force Su and Sp terms.
Abstract base class for particle forces.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual forceSuSp calcNonCoupled(const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the non-coupled force.
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
ParticleForceList(CloudType &owner, const fvMesh &mesh)
Null constructor.
Mesh data needed to do the Finite Volume discretisation.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const fvMesh & mesh_
Reference to the mesh database.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
CloudType & owner_
Reference to the owner cloud.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual forceSuSp calcCoupled(const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const
Calculate the coupled force.