58 template<
class CloudType>
61 template<
class CloudType>
64 template<
class CloudType>
71 template<
class ParcelType>
74 public Cloud<ParcelType>,
81 const word cloudName_;
156 binaryCollisionModel_;
160 wallInteractionModel_;
164 inflowBoundaryModel_;
170 void buildConstProps();
173 void buildCellOccupancy();
176 void initialise(
const IOdictionary& dsmcInitialiseDict);
185 void calculateFields();
191 void operator=(
const DSMCCloud&) =
delete;
266 inline const typename ParcelType::constantProperties&
const volVectorField & momentum() const
Return the momentum density field.
const volScalarField & boundaryT() const
Return macroscopic temperature.
virtual void autoMap(const mapPolyMesh &)
Remap the particles to the correct cells following mesh change.
const volScalarField & linearKE() const
Return the total linear kinetic energy (translational and.
const volScalarField & dsmcRhoN() const
Return the field of number of DSMC particles.
const List< word > & typeIdList() const
Return the idList.
void info() const
Print cloud information.
vector linearMomentumOfSystem() const
Total linear momentum of the system.
const word & cloudName() const
Return the cloud type.
Templated inflow boundary model class.
const BinaryCollisionModel< DSMCCloud< ParcelType > > & binaryCollision() const
Return reference to binary elastic collision model.
volScalarField::Boundary & rhoMBF()
Return non-const mass density boundary field reference.
Templated DSMC particle collision class.
scalar massInSystem() const
Total mass in system.
volScalarField::Boundary & iDofBF()
Return non-const internal degree of freedom density boundary.
const InflowBoundaryModel< DSMCCloud< ParcelType > > & inflowBoundary() const
Return reference to wall interaction model.
scalar maxwellianRMSSpeed(scalar temperature, scalar mass) const
RMS particle speed.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
volScalarField::Boundary & qBF()
Return non-const heat flux boundary field reference.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
const volScalarField & internalE() const
Return the internal energy density field.
const volVectorField & boundaryU() const
Return macroscopic velocity.
A class for handling words, derived from Foam::string.
Random & rndGen()
Return reference to the random object.
const volScalarField & q() const
Return heat flux at surface field.
volScalarField::Boundary & linearKEBF()
Return non-const linear kinetic energy density boundary.
volVectorField::Boundary & fDBF()
Return non-const force density at boundary field reference.
scalar maxwellianMostProbableSpeed(scalar temperature, scalar mass) const
Most probable speed.
volScalarField::Boundary & internalEBF()
Return non-const internal energy density boundary field.
Base cloud calls templated on particle type.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
const volScalarField & rhoM() const
Return the particle mass density field.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
void clear()
Clear the Cloud.
const volScalarField & rhoN() const
Return the real particle number density field.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
scalar linearKineticEnergyOfSystem() const
Total linear kinetic energy in the system.
scalar nParticle() const
Return the number of real particles represented by one.
const volScalarField & iDof() const
Return the average internal degrees of freedom field.
void addNewParcel(const vector &position, const label celli, const vector &U, const scalar Ei, const label typeId)
Add new parcel.
virtual ~DSMCCloud()
Destructor.
const fvMesh & mesh() const
Return reference to the mesh.
const volVectorField & fD() const
Return force density at surface field.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void evolve()
Evolve the cloud (move, collide)
scalar internalEnergyOfSystem() const
Total internal energy in the system.
const List< DynamicList< ParcelType * > > & cellOccupancy() const
Return the cell occupancy addressing.
Virtual abstract base class for templated DSMCCloud.
volScalarField::Boundary & rhoNBF()
Return non-const number density boundary field reference.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
const WallInteractionModel< DSMCCloud< ParcelType > > & wallInteraction() const
Return reference to wall interaction model.
const IOdictionary & particleProperties() const
Return particle properties dictionary.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
volScalarField & sigmaTcRMax()
Return the sigmaTcRMax field. non-const access to allow.
Templated wall interaction model class.
void dumpParticlePositions() const
Dump particle positions to .obj file.
scalarField & collisionSelectionRemainder()
Return the collision selection remainder field. non-const.
vector equipartitionLinearVelocity(scalar temperature, scalar mass)
Generate a random velocity sampled from the Maxwellian speed.
scalar maxwellianAverageSpeed(scalar temperature, scalar mass) const
Average particle speed.
Templated base class for dsmc cloud.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.
volVectorField::Boundary & momentumBF()
Return non-const momentum density boundary field reference.