Calculates particle Brownian motion force. More...
Public Member Functions | |
TypeName ("BrownianMotion") | |
Runtime type information. More... | |
BrownianMotionForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh. More... | |
BrownianMotionForce (const BrownianMotionForce &bmf) | |
Construct copy. More... | |
virtual autoPtr< ParticleForce< CloudType > > | clone () const |
Construct and return a clone. More... | |
virtual | ~BrownianMotionForce () |
Destructor. More... | |
scalar | lambda () const |
Return const access to the molecular free path length [m]. More... | |
bool | turbulence () const |
Return const access to the turbulence flag. More... | |
virtual void | cacheFields (const bool store) |
Cache fields. More... | |
virtual forceSuSp | calcCoupled (const typename CloudType::parcelType &p, const scalar dt, const scalar mass, const scalar Re, const scalar muc) const |
Calculate the non-coupled force. More... | |
![]() | |
TypeName ("particleForce") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, ParticleForce, dictionary,(CloudType &owner, const fvMesh &mesh, const dictionary &dict),(owner, mesh, dict)) | |
Declare runtime constructor selection table. More... | |
ParticleForce (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType, const bool readCoeffs) | |
Construct from mesh. More... | |
ParticleForce (const ParticleForce &pf) | |
Construct copy. More... | |
virtual | ~ParticleForce () |
Destructor. More... | |
const CloudType & | owner () const |
Return const access to the cloud owner. More... | |
CloudType & | owner () |
Return refernce to the cloud owner. More... | |
const fvMesh & | mesh () const |
Return the mesh database. More... | |
const dictionary & | coeffs () const |
Return the force coefficients dictionary. More... | |
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. More... | |
virtual scalar | massAdd (const typename CloudType::parcelType &p, const scalar mass) const |
Return the added mass. More... | |
Private Member Functions | |
scalar | erfInv (const scalar y) const |
Inverse erf for Gaussian distribution. More... | |
tmp< volScalarField > | kModel () const |
Return the k field from the turbulence model. More... | |
Private Attributes | |
cachedRandom & | rndGen_ |
Reference to the cloud random number generator. More... | |
const scalar | lambda_ |
Molecular free path length [m]. More... | |
bool | turbulence_ |
Turbulence flag. More... | |
const volScalarField * | kPtr_ |
Pointer to the turbulence kinetic energy field. More... | |
bool | ownK_ |
Flag that indicates ownership of turbulence k field. More... | |
Additional Inherited Members | |
![]() | |
typedef VectorSpace< Vector< vector >, vector, 2 > | returnType |
Convenience typedef for return type. More... | |
![]() | |
static autoPtr< ParticleForce< CloudType > > | New (CloudType &owner, const fvMesh &mesh, const dictionary &dict, const word &forceType) |
Selector. More... | |
Calculates particle Brownian motion force.
Definition at line 51 of file BrownianMotionForce.H.
BrownianMotionForce | ( | CloudType & | owner, |
const fvMesh & | mesh, | ||
const dictionary & | dict | ||
) |
Construct from mesh.
Definition at line 88 of file BrownianMotionForce.C.
BrownianMotionForce | ( | const BrownianMotionForce< CloudType > & | bmf | ) |
Construct copy.
Definition at line 105 of file BrownianMotionForce.C.
|
virtual |
Destructor.
Definition at line 121 of file BrownianMotionForce.C.
|
private |
Inverse erf for Gaussian distribution.
Definition at line 36 of file BrownianMotionForce.C.
References Foam::constant::universal::h, k, Foam::log(), Foam::constant::mathematical::pi(), Foam::sqrt(), x, and y.
|
private |
Return the k field from the turbulence model.
Definition at line 56 of file BrownianMotionForce.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, objectRegistry::foundObject(), Foam::constant::atomic::group, IOobject::groupName(), turbulenceModel::k(), objectRegistry::lookupObject(), Foam::nl, turbulenceModel::propertiesName, HashTable::sortedToc(), and U.
TypeName | ( | "BrownianMotion" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Reimplemented from ParticleForce< CloudType >.
Definition at line 102 of file BrownianMotionForce.H.
|
inline |
Return const access to the molecular free path length [m].
Definition at line 29 of file BrownianMotionForceI.H.
|
inline |
Return const access to the turbulence flag.
Definition at line 36 of file BrownianMotionForceI.H.
|
virtual |
Cache fields.
Reimplemented from ParticleForce< CloudType >.
Definition at line 128 of file BrownianMotionForce.C.
References Foam::deleteDemandDrivenData(), tmp::isTmp(), and tmp::ptr().
|
virtual |
Calculate the non-coupled force.
Reimplemented from ParticleForce< CloudType >.
Definition at line 160 of file BrownianMotionForce.C.
References Foam::constant::atomic::alpha, Foam::exp(), f(), k, p, Foam::constant::mathematical::pi(), Foam::pow5(), Foam::constant::physicoChemical::sigma, Foam::sqr(), Foam::sqrt(), forceSuSp::Su(), dimensioned::value(), x, and Vector< scalar >::zero.
|
private |
Reference to the cloud random number generator.
Definition at line 58 of file BrownianMotionForce.H.
|
private |
Molecular free path length [m].
Definition at line 61 of file BrownianMotionForce.H.
|
private |
Turbulence flag.
Definition at line 64 of file BrownianMotionForce.H.
|
private |
Pointer to the turbulence kinetic energy field.
Definition at line 67 of file BrownianMotionForce.H.
|
private |
Flag that indicates ownership of turbulence k field.
Definition at line 70 of file BrownianMotionForce.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.