OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

DsmcCloud< ParcelType > Class Template Reference

Templated base class for dsmc cloud. More...

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

List of all members.


Public Member Functions

 DsmcCloud (const word &cloudName, const volScalarField &T, const volVectorField &U)
 Construct given name and mesh, will read Parcels from file.
 DsmcCloud (const word &cloudName, const fvMesh &mesh)
 Construct given name and mesh. Used to initialise.
virtual ~DsmcCloud ()
 Destructor.
const word & cloudName () const
 Return the cloud type.
const fvMesh & mesh () const
 Return refernce to the mesh.
const IOdictionary & particleProperties () 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.
volScalarField & sigmaTcRMax ()
 Return the sigmaTcRMax field. non-const access to allow.
scalarField & collisionSelectionRemainder ()
 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.
Random & rndGen ()
 Return refernce to the random object.
void storeDeltaT ()
 Store (cache) the current value of deltaT.
scalar cachedDeltaT () const
 Return the cached value of deltaT.
const volScalarField & q () const
 Return heat flux at surface field.
volScalarField & q ()
 Return non-const heat flux at surface field.
const volVectorField & fD () const
 Return force density at surface field.
volVectorField & fD ()
 Return non-const force density at surface field.
const volScalarField & T () const
 Return macroscopic temperature.
const volVectorField & U () const
 Return macroscopic velocity.
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.
const tmp< volScalarField > rhoN () const
 Return the real particle number density field.
const tmp< volScalarField > rhoM () const
 Return the particle mass density field.
const tmp< volScalarField > dsmcRhoN () const
 Return the field of number of DSMC particles.
const tmp< volVectorField > momentum () const
 Return the momentum density field.
const tmp< volScalarField > linearKE () const
 Return the total linear kinetic energy (translational and.
const tmp< volScalarField > internalE () const
 Return the internal energy density field.
const tmp< volScalarField > iDof () const
 Return the average internal degrees of freedom field.
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.

Static Public Attributes

static scalar kb = 1.380650277e-23
 Boltzmann constant.

Detailed Description

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

Templated base class for dsmc cloud.

Source files

Definition at line 64 of file DsmcCloud.H.


Constructor & Destructor Documentation

DsmcCloud ( const word &  cloudName,
const volScalarField &  T,
const volVectorField &  U 
) [inline]

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

Definition at line 517 of file DsmcCloud.C.

DsmcCloud ( const word &  cloudName,
const fvMesh &  mesh 
) [inline]

Construct given name and mesh. Used to initialise.

Definition at line 629 of file DsmcCloud.C.

References Random::scalar01().

Here is the call graph for this function:

~DsmcCloud (  )  [inline, virtual]

Destructor.

Definition at line 763 of file DsmcCloud.C.


Member Function Documentation

const Foam::word & cloudName (  )  const [inline]

Return the cloud type.

Definition at line 21 of file DsmcCloudI.H.

const Foam::fvMesh & mesh (  )  const [inline]

Return refernce to the mesh.

Definition at line 28 of file DsmcCloudI.H.

Referenced by DsmcCloud< ParcelType >::cachedDeltaT().

Here is the caller graph for this function:

const Foam::IOdictionary & particleProperties (  )  const [inline]

Return particle properties dictionary.

Definition at line 36 of file DsmcCloudI.H.

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

Return the idList.

Definition at line 44 of file DsmcCloudI.H.

Foam::scalar nParticle (  )  const [inline]

Return the number of real particles represented by one.

parcel

Definition at line 51 of file DsmcCloudI.H.

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

Return the cell occupancy addressing.

Definition at line 59 of file DsmcCloudI.H.

Foam::volScalarField & sigmaTcRMax (  )  [inline]

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

updating.

Definition at line 66 of file DsmcCloudI.H.

Foam::scalarField & collisionSelectionRemainder (  )  [inline]

Return the collision selection remainder field. non-const.

access to allow updating.

Definition at line 74 of file DsmcCloudI.H.

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

Return all of the constant properties.

Definition at line 82 of file DsmcCloudI.H.

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

Return the constant properties of the given typeId.

Definition at line 91 of file DsmcCloudI.H.

Foam::Random & rndGen (  )  [inline]

Return refernce to the random object.

Definition at line 108 of file DsmcCloudI.H.

void storeDeltaT (  )  [inline]

Store (cache) the current value of deltaT.

Definition at line 115 of file DsmcCloudI.H.

Foam::scalar cachedDeltaT (  )  const [inline]

Return the cached value of deltaT.

Definition at line 122 of file DsmcCloudI.H.

References TimeState::deltaT(), DsmcCloud< ParcelType >::mesh(), and fvMesh::time().

Here is the call graph for this function:

const Foam::volScalarField & q (  )  const [inline]

Return heat flux at surface field.

Definition at line 129 of file DsmcCloudI.H.

Foam::volScalarField & q (  )  [inline]

Return non-const heat flux at surface field.

Definition at line 136 of file DsmcCloudI.H.

const Foam::volVectorField & fD (  )  const [inline]

Return force density at surface field.

Definition at line 143 of file DsmcCloudI.H.

Foam::volVectorField & fD (  )  [inline]

Return non-const force density at surface field.

Definition at line 150 of file DsmcCloudI.H.

const Foam::volScalarField & T (  )  const [inline]

Return macroscopic temperature.

Definition at line 157 of file DsmcCloudI.H.

const Foam::volVectorField & U (  )  const [inline]

Return macroscopic velocity.

Definition at line 164 of file DsmcCloudI.H.

Foam::vector equipartitionLinearVelocity ( scalar  temperature,
scalar  mass 
) [inline]

Generate a random velocity sampled from the Maxwellian speed.

distribution

Definition at line 841 of file DsmcCloud.C.

Foam::scalar equipartitionInternalEnergy ( scalar  temperature,
scalar  internalDegreesOfFreedom 
) [inline]

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 859 of file DsmcCloud.C.

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

Average particle speed.

Definition at line 301 of file DsmcCloudI.H.

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

Definition at line 312 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, Foam::mathematicalConstant::pi, and Foam::sqrt().

Here is the call graph for this function:

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

RMS particle speed.

Definition at line 323 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, Foam::mathematicalConstant::pi, and Foam::sqrt().

Here is the call graph for this function:

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

Definition at line 334 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, and Foam::sqrt().

Here is the call graph for this function:

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

Most probable speed.

Definition at line 346 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, and Foam::sqrt().

Here is the call graph for this function:

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

Definition at line 358 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, and Foam::sqrt().

Here is the call graph for this function:

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

Return reference to binary elastic collision model.

Definition at line 172 of file DsmcCloudI.H.

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

Return non-const reference to binary elastic collision model.

Definition at line 180 of file DsmcCloudI.H.

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

Return reference to wall interaction model.

Definition at line 188 of file DsmcCloudI.H.

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

Return non-const reference to wall interaction model.

Definition at line 196 of file DsmcCloudI.H.

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

Return reference to wall interaction model.

Definition at line 204 of file DsmcCloudI.H.

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

Return non-const reference to wall interaction model.

Definition at line 212 of file DsmcCloudI.H.

scalar massInjected (  )  const [inline]

Total mass injected.

Foam::scalar massInSystem (  )  const [inline]

Total mass in system.

Definition at line 219 of file DsmcCloudI.H.

Foam::vector linearMomentumOfSystem (  )  const [inline]

Total linear momentum of the system.

Definition at line 240 of file DsmcCloudI.H.

Foam::scalar linearKineticEnergyOfSystem (  )  const [inline]

Total linear kinetic energy in the system.

Definition at line 262 of file DsmcCloudI.H.

Foam::scalar internalEnergyOfSystem (  )  const [inline]

Total internal energy in the system.

Definition at line 284 of file DsmcCloudI.H.

void info (  )  const [inline]

Print cloud information.

Reimplemented from IOobject.

Definition at line 797 of file DsmcCloud.C.

void dumpParticlePositions (  )  const [inline]

Dump particle positions to .obj file.

Definition at line 899 of file DsmcCloud.C.

const Foam::tmp< Foam::volScalarField > rhoN (  )  const [inline]

Return the real particle number density field.

Definition at line 369 of file DsmcCloudI.H.

References DsmcCloud< ParcelType >::kb, and Foam::sqrt().

Here is the call graph for this function:

const Foam::tmp< Foam::volScalarField > rhoM (  )  const [inline]

Return the particle mass density field.

Definition at line 406 of file DsmcCloudI.H.

const Foam::tmp< Foam::volScalarField > dsmcRhoN (  )  const [inline]

Return the field of number of DSMC particles.

Definition at line 443 of file DsmcCloudI.H.

const Foam::tmp< Foam::volVectorField > momentum (  )  const [inline]

Return the momentum density field.

Definition at line 478 of file DsmcCloudI.H.

const Foam::tmp< Foam::volScalarField > linearKE (  )  const [inline]

Return the total linear kinetic energy (translational and.

thermal density field

Definition at line 520 of file DsmcCloudI.H.

const Foam::tmp< Foam::volScalarField > internalE (  )  const [inline]

Return the internal energy density field.

Definition at line 557 of file DsmcCloudI.H.

const Foam::tmp< Foam::volScalarField > iDof (  )  const [inline]

Return the average internal degrees of freedom field.

Definition at line 594 of file DsmcCloudI.H.

void addNewParcel ( const vector &  position,
const vector &  U,
const scalar  Ei,
const label  cellId,
const label  typeId 
) [inline]

Add new parcel.

Definition at line 491 of file DsmcCloud.C.

void evolve (  )  [inline]

Evolve the cloud (move, collide).

Definition at line 770 of file DsmcCloud.C.

void clear (  )  [inline]

Clear the Cloud.

Reimplemented from Cloud< ParcelType >.

Definition at line 631 of file DsmcCloudI.H.


Member Data Documentation


The documentation for this class was generated from the following files:
  • src/lagrangian/dsmc/clouds/Templates/DsmcCloud/DsmcCloud.H
  • src/lagrangian/dsmc/clouds/Templates/DsmcCloud/DsmcCloud.C
  • src/lagrangian/dsmc/clouds/Templates/DsmcCloud/DsmcCloudI.H
Copyright © 2000-2009 OpenCFD Ltd