55 template<
class CloudType>
58 template<
class CloudType>
61 template<
class CloudType>
68 template<
class ParcelType>
71 public Cloud<ParcelType>,
78 const word cloudName_;
153 binaryCollisionModel_;
157 wallInteractionModel_;
161 inflowBoundaryModel_;
167 void buildConstProps();
170 void buildCellOccupancy();
173 void initialise(
const IOdictionary& dsmcInitialiseDict);
182 void calculateFields();
207 const word& cloudName,
263 inline const typename ParcelType::constantProperties&
273 inline volScalarField::Boundary&
qBF();
276 inline volVectorField::Boundary&
fDBF();
279 inline volScalarField::Boundary&
rhoNBF();
282 inline volScalarField::Boundary&
rhoMBF();
286 inline volScalarField::Boundary&
linearKEBF();
294 inline volScalarField::Boundary&
iDofBF();
297 inline volVectorField::Boundary&
momentumBF();
457 const label tetFacei,
const volVectorField & fD() const
Return force density at surface field.
void addNewParcel(const vector &position, const vector &U, const scalar Ei, const label celli, const label tetFacei, const label tetPtI, const label typeId)
Add new parcel.
virtual void autoMap(const mapPolyMesh &)
Remap the particles to the correct cells following mesh change.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const volVectorField & momentum() const
Return the momentum density field.
Templated inflow boundary model class.
volScalarField::Boundary & rhoMBF()
Return non-const mass density boundary field reference.
Templated DSMC particle collision class.
const List< word > & typeIdList() const
Return the idList.
const IOdictionary & particleProperties() const
Return particle properties dictionary.
volScalarField::Boundary & iDofBF()
Return non-const internal degree of freedom density boundary.
void dumpParticlePositions() const
Dump particle positions to .obj file.
const volScalarField & boundaryT() const
Return macroscopic temperature.
const InflowBoundaryModel< DSMCCloud< ParcelType > > & inflowBoundary() const
Return reference to wall interaction model.
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...
scalar maxwellianMostProbableSpeed(scalar temperature, scalar mass) const
Most probable speed.
const volScalarField & dsmcRhoN() const
Return the field of number of DSMC particles.
scalar massInSystem() const
Total mass in system.
const volScalarField & rhoN() const
Return the real particle number density field.
scalar linearKineticEnergyOfSystem() const
Total linear kinetic energy in the system.
const volScalarField & internalE() const
Return the internal energy density field.
A class for handling words, derived from string.
const volScalarField & q() const
Return heat flux at surface field.
Random & rndGen()
Return refernce to the random object.
volScalarField::Boundary & linearKEBF()
Return non-const linear kinetic energy density boundary.
const volScalarField & rhoM() const
Return the particle mass density field.
volVectorField::Boundary & fDBF()
Return non-const force density at boundary field reference.
scalar nParticle() const
Return the number of real particles represented by one.
volScalarField::Boundary & internalEBF()
Return non-const internal energy density boundary field.
Simple random number generator.
Base cloud calls templated on particle type.
scalar internalEnergyOfSystem() const
Total internal energy in the system.
scalar equipartitionInternalEnergy(scalar temperature, direction internalDegreesOfFreedom)
Generate a random internal energy, sampled from the.
const volScalarField & iDof() const
Return the average internal degrees of freedom field.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
void clear()
Clear the Cloud.
scalar maxwellianRMSSpeed(scalar temperature, scalar mass) const
RMS particle speed.
const List< typename ParcelType::constantProperties > & constProps() const
Return all of the constant properties.
virtual void readFields()
Read the field data for the cloud of particles. Dummy at.
const volScalarField & linearKE() const
Return the total linear kinetic energy (translational and.
virtual ~DSMCCloud()
Destructor.
const fvMesh & mesh() const
Return refernce to the mesh.
const List< DynamicList< ParcelType * > > & cellOccupancy() const
Return the cell occupancy addressing.
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & boundaryU() const
Return macroscopic velocity.
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)
const word & cloudName() const
Return the cloud type.
Virtual abstract base class for templated DSMCCloud.
volScalarField::Boundary & rhoNBF()
Return non-const number density boundary field reference.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
volScalarField & sigmaTcRMax()
Return the sigmaTcRMax field. non-const access to allow.
scalar maxwellianAverageSpeed(scalar temperature, scalar mass) const
Average particle speed.
Templated wall interaction model class.
vector linearMomentumOfSystem() const
Total linear momentum of the system.
const WallInteractionModel< DSMCCloud< ParcelType > > & wallInteraction() const
Return reference to wall interaction model.
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.
Templated base class for dsmc cloud.
void info() const
Print cloud information.
const BinaryCollisionModel< DSMCCloud< ParcelType > > & binaryCollision() const
Return reference to binary elastic collision model.
volVectorField::Boundary & momentumBF()
Return non-const momentum density boundary field reference.