FreeFOAM The Cross-Platform CFD Toolkit
DsmcCloud< ParcelType > Class Template Reference

Templated base class for dsmc cloud. More...

#include <dsmc/DsmcCloud_.H>


Detailed Description

template<class ParcelType>
class Foam::DsmcCloud< ParcelType >

Templated base class for dsmc cloud.

Source files

Definition at line 69 of file DsmcCloud_.H.

+ Inheritance diagram for DsmcCloud< ParcelType >:
+ Collaboration diagram for DsmcCloud< ParcelType >:

List of all members.

Public Member Functions

 DsmcCloud (const word &cloudName, const fvMesh &mesh, bool readFields=true)
 Construct given name and mesh, will read Parcels and fields from.
 DsmcCloud (const word &cloudName, const fvMesh &mesh, const IOdictionary &dsmcInitialiseDict)
 Construct given name, mesh and initialisation dictionary.
virtual ~DsmcCloud ()
 Destructor.
const wordcloudName () const
 Return the cloud type.
const fvMeshmesh () const
 Return refernce to the mesh.
const IOdictionaryparticleProperties () const
 Return particle properties dictionary.
const List< word > & typeIdList () const
 Return the idList.
scalar nParticle () const
 Return the number of real particles represented by one.
const List< DynamicList
< ParcelType * > > & 
cellOccupancy () const
 Return the cell occupancy addressing.
volScalarFieldsigmaTcRMax ()
 Return the sigmaTcRMax field. non-const access to allow.
scalarFieldcollisionSelectionRemainder ()
 Return the collision selection remainder field. non-const.
const List< typename
ParcelType::constantProperties > & 
constProps () const
 Return all of the constant properties.
const
ParcelType::constantProperties & 
constProps (label typeId) const
 Return the constant properties of the given typeId.
RandomrndGen ()
 Return refernce to the random object.
volScalarField::GeometricBoundaryField & qBF ()
 Return non-const heat flux boundary field reference.
volVectorField::GeometricBoundaryField & fDBF ()
 Return non-const force density at boundary field reference.
volScalarField::GeometricBoundaryField & rhoNBF ()
 Return non-const number density boundary field reference.
volScalarField::GeometricBoundaryField & rhoMBF ()
 Return non-const mass density boundary field reference.
volScalarField::GeometricBoundaryField & linearKEBF ()
 Return non-const linear kinetic energy density boundary.
volScalarField::GeometricBoundaryField & internalEBF ()
 Return non-const internal energy density boundary field.
volScalarField::GeometricBoundaryField & iDofBF ()
 Return non-const internal degree of freedom density boundary.
volVectorField::GeometricBoundaryField & momentumBF ()
 Return non-const momentum density boundary field reference.
const volScalarFieldboundaryT () const
 Return macroscopic temperature.
const volVectorFieldboundaryU () const
 Return macroscopic velocity.
const volScalarFieldq () const
 Return heat flux at surface field.
const volVectorFieldfD () const
 Return force density at surface field.
const volScalarFieldrhoN () const
 Return the real particle number density field.
const volScalarFieldrhoM () const
 Return the particle mass density field.
const volScalarFielddsmcRhoN () const
 Return the field of number of DSMC particles.
const volScalarFieldlinearKE () const
 Return the total linear kinetic energy (translational and.
const volScalarFieldinternalE () const
 Return the internal energy density field.
const volScalarFieldiDof () const
 Return the average internal degrees of freedom field.
const volVectorFieldmomentum () const
 Return the momentum density field.
vector equipartitionLinearVelocity (scalar temperature, scalar mass)
 Generate a random velocity sampled from the Maxwellian speed.
scalar equipartitionInternalEnergy (scalar temperature, scalar internalDegreesOfFreedom)
 Generate a random internal energy, sampled from the.
scalar maxwellianAverageSpeed (scalar temperature, scalar mass) const
 Average particle speed.
scalarField maxwellianAverageSpeed (scalarField temperature, scalar mass) const
scalar maxwellianRMSSpeed (scalar temperature, scalar mass) const
 RMS particle speed.
scalarField maxwellianRMSSpeed (scalarField temperature, scalar mass) const
scalar maxwellianMostProbableSpeed (scalar temperature, scalar mass) const
 Most probable speed.
scalarField maxwellianMostProbableSpeed (scalarField temperature, scalar mass) const
const BinaryCollisionModel
< DsmcCloud< ParcelType > > & 
binaryCollision () const
 Return reference to binary elastic collision model.
BinaryCollisionModel
< DsmcCloud< ParcelType > > & 
binaryCollision ()
 Return non-const reference to binary elastic collision model.
const WallInteractionModel
< DsmcCloud< ParcelType > > & 
wallInteraction () const
 Return reference to wall interaction model.
WallInteractionModel
< DsmcCloud< ParcelType > > & 
wallInteraction ()
 Return non-const reference to wall interaction model.
const InflowBoundaryModel
< DsmcCloud< ParcelType > > & 
inflowBoundary () const
 Return reference to wall interaction model.
InflowBoundaryModel< DsmcCloud
< ParcelType > > & 
inflowBoundary ()
 Return non-const reference to wall interaction model.
scalar massInjected () const
 Total mass injected.
scalar massInSystem () const
 Total mass in system.
vector linearMomentumOfSystem () const
 Total linear momentum of the system.
scalar linearKineticEnergyOfSystem () const
 Total linear kinetic energy in the system.
scalar internalEnergyOfSystem () const
 Total internal energy in the system.
void info () const
 Print cloud information.
void dumpParticlePositions () const
 Dump particle positions to .obj file.
void addNewParcel (const vector &position, const vector &U, const scalar Ei, const label cellId, const label typeId)
 Add new parcel.
void evolve ()
 Evolve the cloud (move, collide)
void clear ()
 Clear the Cloud.
- Public Member Functions inherited from Cloud< ParcelType >
 TypeName ("Cloud")
 Runtime type information.
 Cloud (const polyMesh &mesh, const IDLList< ParcelType > &particles)
 Construct from mesh and a list of particles.
 Cloud (const polyMesh &mesh, const word &cloudName, const IDLList< ParcelType > &particles)
 Construct from mesh, cloud name, and a list of particles.
 Cloud (const polyMesh &mesh, const bool checkClass=true)
 Construct from mesh by reading from file.
 Cloud (const polyMesh &pMesh, const word &cloudName, const bool checkClass=true)
 Construct from mesh by reading from file with given cloud instance.
const polyMeshpMesh () const
 Return the polyMesh reference.
bool internalFace (const label facei) const
 Is this global face an internal face?
bool boundaryFace (const label facei) const
 Is this global face a boundary face?
label facePatch (const label facei) const
 Which patch is this global face on.
label patchFace (const label patchi, const label facei) const
 Which face of this patch is this global face.
label size () const
 Return number of elements in table.
const const_iterator begin () const
 const_iterator set to the beginning of the HashTable
iterator begin ()
 iterator set to the begining of the HashTable
const const_iterator cbegin () const
 const_iterator set to the beginning of the HashTable
const const_iterator end () const
 const_iterator set to beyond the end of the HashTable
iterator end ()
 iterator set to beyond the end of the HashTable
const const_iterator cend () const
 const_iterator set to beyond the end of the HashTable
label getNewParticleID () const
 Get unique particle creation id.
void addParticle (ParcelType *pPtr)
 Transfer particle to cloud.
void deleteParticle (ParcelType &)
 Remove particle from cloud and delete.
void move (TrackingData &td)
 Move the particles.
virtual void autoMap (const mapPolyMesh &)
 Remap the cells of particles corresponding to the.
IOobject fieldIOobject (const word &fieldName, const IOobject::readOption r) const
 Helper to construct IOobject for field and current time.
void checkFieldIOobject (const Cloud< ParcelType > &c, const IOField< DataType > &data) const
 Check lagrangian data field.
virtual void readFields ()
 Read the field data for the cloud of particles. Dummy at.
virtual void writeFields () const
 Write the field data for the cloud of particles Dummy at.
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write using given format, version and compression.
void writePositions () const
 Write positions to <cloudName>_positions.obj file.
- Public Member Functions inherited from cloud
 TypeName ("cloud")
 Runtime type information.
 cloud (const objectRegistry &, const word &cloudName="")
 Construct for the given objectRegistry and named cloud instance.
virtual ~cloud ()
 Destructor.
- Public Member Functions inherited from objectRegistry
 TypeName ("objectRegistry")
 Declare type name for this IOobject.
 objectRegistry (const Time &db, const label nIoObjects=128)
 Construct the time objectRegistry given an initial estimate.
 objectRegistry (const IOobject &io, const label nIoObjects=128)
 Construct a sub-registry given an IObject to describe the registry.
virtual ~objectRegistry ()
const Timetime () const
 Return time.
const objectRegistryparent () const
 Return the parent objectRegistry.
virtual const fileNamedbDir () const
 Local directory path of this objectRegistry relative to the time.
wordList names () const
 Return the list of names of the IOobjects.
wordList names (const word &className) const
 Return the list of names of the IOobjects of given class name.
template<class Type >
wordList names () const
 Return the list of names of the IOobjects of given type.
const objectRegistrysubRegistry (const word &name) const
 Lookup and return a const sub-objectRegistry.
template<class Type >
HashTable< const Type * > lookupClass () const
 Lookup and return all the object of the given Type.
template<class Type >
bool foundObject (const word &name) const
 Is the named Type.
template<class Type >
const Type & lookupObject (const word &name) const
 Lookup and return the object of the given Type.
label getEvent () const
 Return new event number.
virtual void rename (const word &newName)
 Rename.
bool checkIn (regIOobject &) const
 Add an regIOobject to registry.
bool checkOut (regIOobject &) const
 Remove an regIOobject from registry.
virtual bool modified () const
 Return true if any of the object's files have been modified.
void readModifiedObjects ()
 Read the objects that have been modified.
virtual bool readIfModified ()
 Read object if modified.
virtual bool writeData (Ostream &) const
 writeData function required by regIOobject but not used
- Public Member Functions inherited from regIOobject
 TypeName ("regIOobject")
 Runtime type information.
 regIOobject (const IOobject &, const bool isTime=false)
 Construct from IOobject. Optional flag for if IOobject is the.
 regIOobject (const regIOobject &)
 Construct as copy.
 regIOobject (const regIOobject &, bool registerCopy)
 Construct as copy, and transferring registry registration to copy.
virtual ~regIOobject ()
bool checkIn ()
 Add object to registry.
bool checkOut ()
 Remove object from registry.
bool ownedByRegistry () const
 Is this object owned by the registry?
void store ()
 Transfer ownership of this object to its registry.
void release ()
 Release ownership of this object from its registry.
label eventNo () const
 Event number at last update.
label & eventNo ()
 Event number at last update.
bool upToDate (const word &) const
 Am I uptodate with respect to other regIOobjects.
bool upToDate (const word &, const word &) const
bool upToDate (const word &, const word &, const word &) const
bool upToDate (const word &, const word &, const word &, const word &) const
void setUpToDate ()
 Flag me as up to date.
IstreamreadStream (const word &)
 Return Istream and check object type against that given.
void close ()
 Close Istream.
virtual bool readData (Istream &)
 Virtual readData function.
virtual bool read ()
 Read object.
virtual bool write () const
 Write using setting from DB.
void operator= (const IOobject &)
- Public Member Functions inherited from IOobject
 TypeName ("IOobject")
 Runtime type information.
 IOobject (const word &name, const fileName &instance, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from name, instance, registry, io options.
 IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from name, instance, local, registry, io options.
 IOobject (const fileName &path, const objectRegistry &registry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
 Construct from path, registry, io options.
Foam::autoPtr< IOobjectclone () const
 Clone.
virtual ~IOobject ()
const objectRegistrydb () const
 Return the local objectRegistry.
const wordname () const
 Return name.
const wordheaderClassName () const
 Return name of the class name read from header.
stringnote ()
 Return non-constant access to the optional note.
const stringnote () const
 Return the optional note.
bool registerObject () const
 Register object created from this IOobject with registry if true.
readOption readOpt () const
readOptionreadOpt ()
writeOption writeOpt () const
writeOptionwriteOpt ()
const fileNamerootPath () const
const fileNamecaseName () const
const fileNameinstance () const
fileNameinstance ()
const fileNamelocal () const
fileName path () const
 Return complete path.
fileName path (const word &instance, const fileName &local="") const
 Return complete path with alternative instance and local.
fileName objectPath () const
 Return complete path + object name.
fileName filePath () const
 Return complete path + object name if the file exists.
bool readHeader (Istream &)
 Read header.
bool headerOk ()
 Read and check header info.
bool writeHeader (Ostream &) const
 Write header.
bool good () const
bool bad () const
- Public Member Functions inherited from HashTable< regIOobject * >
bool set (const word &, const regIOobject *&newElmt)
 Assign a new hashedEntry, overwriting existing entries.
 HashTable (const label size=128)
 Construct given initial table size.
 HashTable (Istream &, const label size=128)
 Construct from Istream.
 HashTable (const HashTable< regIOobject *, word, string::hash > &)
 Construct as copy.
 HashTable (const Xfer< HashTable< regIOobject *, word, string::hash > > &)
 Construct by transferring the parameter contents.
 ~HashTable ()
bool empty () const
 Return true if the hash table is empty.
bool found (const word &) const
 Return true if hashedEntry is found in table.
iterator find (const word &)
 Find and return an iterator set at the hashedEntry.
const_iterator find (const word &) const
 Find and return an const_iterator set at the hashedEntry.
List< wordtoc () const
 Return the table of contents.
List< wordsortedToc () const
 Return the table of contents as a sorted list.
OstreamprintInfo (Ostream &) const
 Print information.
bool insert (const word &, const regIOobject *&newElmt)
 Insert a new hashedEntry.
bool erase (const iterator &)
 Erase an hashedEntry specified by given iterator.
bool erase (const word &)
 Erase an hashedEntry specified by given key if in table.
label erase (const UList< word > &)
 Remove entries given by the listed keys from this HashTable.
label erase (const HashTable< AnyType, word, AnyHash > &)
 Remove entries given by the given keys from this HashTable.
void resize (const label newSize)
 Resize the hash table for efficiency.
void clearStorage ()
 Clear the table entries and the table itself.
void transfer (HashTable< regIOobject *, word, string::hash > &)
 Transfer the contents of the argument table into this table.
Xfer< HashTable< regIOobject
*, word, string::hash > > 
xfer ()
 Transfer contents to the Xfer container.
regIOobject *& operator[] (const word &)
 Find and return an hashedEntry.
const regIOobject *& operator[] (const word &) const
 Find and return an hashedEntry.
regIOobject *& operator() (const word &)
 Find and return an hashedEntry, create it null if not present.
void operator= (const HashTable< regIOobject *, word, string::hash > &)
 Assignment.
bool operator== (const HashTable< regIOobject *, word, string::hash > &) const
 Equality. Two hash tables are equal if all contents of first are.
bool operator!= (const HashTable< regIOobject *, word, string::hash > &) const
 The opposite of the equality operation. Takes linear time.
- Public Member Functions inherited from IDLList< ParcelType >
 IDLList ()
 Null construct.
 IDLList (const ParcelType &a)
 Construct given initial T.
 IDLList (Istream &is, const INew &inewt)
 Construct from Istream using given Istream constructor class.
 IDLList (Istream &is)
 Construct from Istream.
 IDLList (const IDLList< ParcelType > &idll, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone.
- Public Member Functions inherited from ILList< DLListBase, ParcelType >
 ILList ()
 Null construct.
 ILList (ParcelType *a)
 Construct given initial T.
 ILList (Istream &)
 Construct from Istream.
 ILList (const ILList< DLListBase, ParcelType > &)
 Construct as copy.
 ILList (const ILList< DLListBase, ParcelType > &lst, const CloneArg &cloneArg)
 Copy constructor with additional argument for clone.
 ILList (Istream &, const INew &)
 Construct from Istream using given Istream constructor class.
 ~ILList ()
bool eraseHead ()
 Remove the head element specified from the list and delete it.
bool erase (ParcelType *p)
 Remove the specified element from the list and delete it.
void transfer (ILList< DLListBase, ParcelType > &)
 Transfer the contents of the argument into this List.
void operator= (const ILList< DLListBase, ParcelType > &)
- Public Member Functions inherited from UILList< DLListBase, ParcelType >
 UILList ()
 Null construct.
 UILList (ParcelType *a)
 Construct given initial T.
 UILList (const UILList< DLListBase, ParcelType > &)
 Construct as copy.
ParcelType * first ()
 Return the first entry.
const ParcelType * first () const
 Return the first entry.
ParcelType * last ()
 Return the last entry.
const ParcelType * last () const
 Return the last entry.
ParcelType * removeHead ()
 Remove and return head.
ParcelType * remove (ParcelType *p)
 Remove and return element.
ParcelType * remove (iterator &it)
 Remove and return specified by iterator.
void operator= (const UILList< DLListBase, ParcelType > &)
bool operator== (const UILList< DLListBase, ParcelType > &) const
 Equality operation on ULists of the same type.
bool operator!= (const UILList< DLListBase, ParcelType > &) const
 The opposite of the equality operation. Takes linear time.
- Public Member Functions inherited from DLListBase
 DLListBase ()
 Null construct.
 DLListBase (link *)
 Construct given initial entry.
 ~DLListBase ()
bool empty () const
 Return true if the list is empty.
void insert (link *)
 Add at head of list.
void append (link *)
 Add at tail of list.
bool swapUp (link *)
 Swap this element with the one above unless it is at the top.
bool swapDown (link *)
 Swap this element with the one below unless it is at the bottom.
linkremove (link *)
 Remove and return element.
linkreplace (link *oldLink, link *newLink)
 Replace oldLink with newLink and return element.
linkreplace (iterator &oldIter, link *newLink)
 Replace oldIter with newLink and return element.
void transfer (DLListBase &)
 Transfer the contents of the argument into this List.
- Public Member Functions inherited from DsmcBaseCloud
 TypeName ("DsmcBaseCloud")
 Runtime type information.
 DsmcBaseCloud ()
 Null constructor.
virtual ~DsmcBaseCloud ()
 Destructor.

Static Public Attributes

static scalar kb = 1.380650277e-23
 Boltzmann constant.
- Static Public Attributes inherited from Cloud< ParcelType >
static word cloudPropertiesName
 Name of cloud properties dictionary.
- Static Public Attributes inherited from cloud
static const word prefix
 The prefix to local: lagrangian.
static word defaultName
 The default cloud name: defaultCloud.

Additional Inherited Members

- Public Types inherited from Cloud< ParcelType >
typedef ParcelType particleType
typedef IDLList< ParcelType >
::iterator 
iterator
typedef IDLList< ParcelType >
::const_iterator 
const_iterator

Constructor & Destructor Documentation

DsmcCloud ( const word cloudName,
const fvMesh mesh,
bool  readFields = true 
)

Construct given name and mesh, will read Parcels and fields from.

file

Definition at line 601 of file DsmcCloud_.C.

References forAll, and Foam::readFields().

DsmcCloud ( const word cloudName,
const fvMesh mesh,
const IOdictionary dsmcInitialiseDict 
)

Construct given name, mesh and initialisation dictionary.

Definition at line 823 of file DsmcCloud_.C.

References clear().

~DsmcCloud ( )
virtual

Destructor.

Definition at line 1043 of file DsmcCloud_.C.


Member Function Documentation

const Foam::word & cloudName ( ) const
inline

Return the cloud type.

Definition at line 29 of file DsmcCloudI_.H.

const Foam::fvMesh & mesh ( ) const
inline

Return refernce to the mesh.

Definition at line 36 of file DsmcCloudI_.H.

const Foam::IOdictionary & particleProperties ( ) const
inline

Return particle properties dictionary.

Definition at line 44 of file DsmcCloudI_.H.

const Foam::List< Foam::word > & typeIdList ( ) const
inline

Return the idList.

Definition at line 52 of file DsmcCloudI_.H.

Foam::scalar nParticle ( ) const
inline

Return the number of real particles represented by one.

parcel

Definition at line 59 of file DsmcCloudI_.H.

const Foam::List< Foam::DynamicList< ParcelType * > > & cellOccupancy ( ) const
inline

Return the cell occupancy addressing.

Definition at line 67 of file DsmcCloudI_.H.

Foam::volScalarField & sigmaTcRMax ( )
inline

Return the sigmaTcRMax field. non-const access to allow.

updating.

Definition at line 74 of file DsmcCloudI_.H.

Foam::scalarField & collisionSelectionRemainder ( )
inline

Return the collision selection remainder field. non-const.

access to allow updating.

Definition at line 82 of file DsmcCloudI_.H.

const Foam::List< typename ParcelType::constantProperties > & constProps ( ) const
inline

Return all of the constant properties.

Definition at line 90 of file DsmcCloudI_.H.

const ParcelType::constantProperties & constProps ( label  typeId) const
inline

Return the constant properties of the given typeId.

Definition at line 99 of file DsmcCloudI_.H.

References Foam::abort(), Foam::FatalError, FatalErrorIn, and Foam::nl.

Foam::Random & rndGen ( )
inline

Return refernce to the random object.

Definition at line 116 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & qBF ( )
inline

Return non-const heat flux boundary field reference.

Definition at line 124 of file DsmcCloudI_.H.

Foam::volVectorField::GeometricBoundaryField & fDBF ( )
inline

Return non-const force density at boundary field reference.

Definition at line 132 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & rhoNBF ( )
inline

Return non-const number density boundary field reference.

Definition at line 140 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & rhoMBF ( )
inline

Return non-const mass density boundary field reference.

Definition at line 148 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & linearKEBF ( )
inline

Return non-const linear kinetic energy density boundary.

field reference

Definition at line 156 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & internalEBF ( )
inline

Return non-const internal energy density boundary field.

reference

Definition at line 164 of file DsmcCloudI_.H.

Foam::volScalarField::GeometricBoundaryField & iDofBF ( )
inline

Return non-const internal degree of freedom density boundary.

field reference

Definition at line 172 of file DsmcCloudI_.H.

Foam::volVectorField::GeometricBoundaryField & momentumBF ( )
inline

Return non-const momentum density boundary field reference.

Definition at line 180 of file DsmcCloudI_.H.

const Foam::volScalarField & boundaryT ( ) const
inline

Return macroscopic temperature.

Definition at line 188 of file DsmcCloudI_.H.

const Foam::volVectorField & boundaryU ( ) const
inline

Return macroscopic velocity.

Definition at line 196 of file DsmcCloudI_.H.

const Foam::volScalarField & q ( ) const
inline

Return heat flux at surface field.

Definition at line 402 of file DsmcCloudI_.H.

const Foam::volVectorField & fD ( ) const
inline

Return force density at surface field.

Definition at line 409 of file DsmcCloudI_.H.

const Foam::volScalarField & rhoN ( ) const
inline

Return the real particle number density field.

Definition at line 417 of file DsmcCloudI_.H.

const Foam::volScalarField & rhoM ( ) const
inline

Return the particle mass density field.

Definition at line 424 of file DsmcCloudI_.H.

const Foam::volScalarField & dsmcRhoN ( ) const
inline

Return the field of number of DSMC particles.

Definition at line 432 of file DsmcCloudI_.H.

const Foam::volScalarField & linearKE ( ) const
inline

Return the total linear kinetic energy (translational and.

thermal density field

Definition at line 440 of file DsmcCloudI_.H.

const Foam::volScalarField & internalE ( ) const
inline

Return the internal energy density field.

Definition at line 448 of file DsmcCloudI_.H.

const Foam::volScalarField & iDof ( ) const
inline

Return the average internal degrees of freedom field.

Definition at line 456 of file DsmcCloudI_.H.

const Foam::volVectorField & momentum ( ) const
inline

Return the momentum density field.

Definition at line 463 of file DsmcCloudI_.H.

Foam::vector equipartitionLinearVelocity ( scalar  temperature,
scalar  mass 
)

Generate a random velocity sampled from the Maxwellian speed.

distribution

Definition at line 1121 of file DsmcCloud_.C.

References Foam::sqrt().

Foam::scalar equipartitionInternalEnergy ( scalar  temperature,
scalar  internalDegreesOfFreedom 
)

Generate a random internal energy, sampled from the.

equilibrium distribution (Bird eqn 11.22 and 11.23 and adapting code from DSMC3.FOR)

Definition at line 1139 of file DsmcCloud_.C.

References Foam::exp(), Foam::log(), and Foam::pow().

Foam::scalar maxwellianAverageSpeed ( scalar  temperature,
scalar  mass 
) const
inline

Average particle speed.

Definition at line 333 of file DsmcCloudI_.H.

References Foam::mathematicalConstant::pi(), and Foam::sqrt().

Foam::scalarField maxwellianAverageSpeed ( scalarField  temperature,
scalar  mass 
) const
inline

Definition at line 345 of file DsmcCloudI_.H.

References Foam::mathematicalConstant::pi(), and Foam::sqrt().

Foam::scalar maxwellianRMSSpeed ( scalar  temperature,
scalar  mass 
) const
inline

RMS particle speed.

Definition at line 357 of file DsmcCloudI_.H.

References Foam::sqrt().

Foam::scalarField maxwellianRMSSpeed ( scalarField  temperature,
scalar  mass 
) const
inline

Definition at line 368 of file DsmcCloudI_.H.

References Foam::sqrt().

Foam::scalar maxwellianMostProbableSpeed ( scalar  temperature,
scalar  mass 
) const
inline

Most probable speed.

Definition at line 380 of file DsmcCloudI_.H.

References Foam::sqrt().

Foam::scalarField maxwellianMostProbableSpeed ( scalarField  temperature,
scalar  mass 
) const
inline

Definition at line 392 of file DsmcCloudI_.H.

References Foam::sqrt().

const Foam::BinaryCollisionModel< Foam::DsmcCloud< ParcelType > > & binaryCollision ( ) const
inline

Return reference to binary elastic collision model.

Definition at line 204 of file DsmcCloudI_.H.

Foam::BinaryCollisionModel< Foam::DsmcCloud< ParcelType > > & binaryCollision ( )
inline

Return non-const reference to binary elastic collision model.

Definition at line 212 of file DsmcCloudI_.H.

const Foam::WallInteractionModel< Foam::DsmcCloud< ParcelType > > & wallInteraction ( ) const
inline

Return reference to wall interaction model.

Definition at line 220 of file DsmcCloudI_.H.

Foam::WallInteractionModel< Foam::DsmcCloud< ParcelType > > & wallInteraction ( )
inline

Return non-const reference to wall interaction model.

Definition at line 228 of file DsmcCloudI_.H.

const Foam::InflowBoundaryModel< Foam::DsmcCloud< ParcelType > > & inflowBoundary ( ) const
inline

Return reference to wall interaction model.

Definition at line 236 of file DsmcCloudI_.H.

Foam::InflowBoundaryModel< Foam::DsmcCloud< ParcelType > > & inflowBoundary ( )
inline

Return non-const reference to wall interaction model.

Definition at line 244 of file DsmcCloudI_.H.

scalar massInjected ( ) const
inline

Total mass injected.

Foam::scalar massInSystem ( ) const
inline

Total mass in system.

Definition at line 251 of file DsmcCloudI_.H.

References forAllConstIter, and p.

Foam::vector linearMomentumOfSystem ( ) const
inline

Total linear momentum of the system.

Definition at line 272 of file DsmcCloudI_.H.

References forAllConstIter, and p.

Foam::scalar linearKineticEnergyOfSystem ( ) const
inline

Total linear kinetic energy in the system.

Definition at line 294 of file DsmcCloudI_.H.

References forAllConstIter, and p.

Foam::scalar internalEnergyOfSystem ( ) const
inline

Total internal energy in the system.

Definition at line 316 of file DsmcCloudI_.H.

References forAllConstIter, and p.

void info ( ) const

Print cloud information.

Reimplemented from IOobject.

Definition at line 1077 of file DsmcCloud_.C.

References Foam::endl(), Foam::Info, Foam::mag(), name(), Foam::nl, reduce(), and Foam::returnReduce().

void dumpParticlePositions ( ) const

Dump particle positions to .obj file.

Definition at line 1179 of file DsmcCloud_.C.

References OSstream::flush(), forAllConstIter, name(), Foam::nl, and timeName.

void addNewParcel ( const vector position,
const vector U,
const scalar  Ei,
const label  cellId,
const label  typeId 
)

Add new parcel.

Definition at line 575 of file DsmcCloud_.C.

void evolve ( )

Evolve the cloud (move, collide)

Definition at line 1050 of file DsmcCloud_.C.

void clear ( )
inline

Clear the Cloud.

Reimplemented from Cloud< ParcelType >.

Definition at line 470 of file DsmcCloudI_.H.

References clear().


Member Data Documentation

Foam::scalar kb = 1.380650277e-23
static

Boltzmann constant.

Definition at line 196 of file DsmcCloud_.H.

Referenced by dsmcFields::write().


The documentation for this class was generated from the following files: