mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Moving Tref from Cloud to models, to be read from coeffDict
This commit is contained in:
@ -34,9 +34,6 @@ License
|
|||||||
template<class ParcelType>
|
template<class ParcelType>
|
||||||
Foam::scalar Foam::DsmcCloud<ParcelType>::kb = 1.380650277e-23;
|
Foam::scalar Foam::DsmcCloud<ParcelType>::kb = 1.380650277e-23;
|
||||||
|
|
||||||
template<class ParcelType>
|
|
||||||
Foam::scalar Foam::DsmcCloud<ParcelType>::Tref = 273;
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -172,9 +172,6 @@ public:
|
|||||||
//- Boltzmann constant
|
//- Boltzmann constant
|
||||||
static scalar kb;
|
static scalar kb;
|
||||||
|
|
||||||
//- Reference temperature for all models
|
|
||||||
static scalar Tref;
|
|
||||||
|
|
||||||
|
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
|||||||
@ -97,6 +97,7 @@ Foam::LarsenBorgnakkeVariableHardSphere<CloudType>::LarsenBorgnakkeVariableHardS
|
|||||||
)
|
)
|
||||||
:
|
:
|
||||||
BinaryCollisionModel<CloudType>(dict, cloud, typeName),
|
BinaryCollisionModel<CloudType>(dict, cloud, typeName),
|
||||||
|
Tref_(readScalar(this->coeffDict().lookup("Tref"))),
|
||||||
relaxationCollisionNumber_
|
relaxationCollisionNumber_
|
||||||
(
|
(
|
||||||
readScalar(this->coeffDict().lookup("relaxationCollisionNumber"))
|
readScalar(this->coeffDict().lookup("relaxationCollisionNumber"))
|
||||||
@ -156,7 +157,7 @@ Foam::scalar Foam::LarsenBorgnakkeVariableHardSphere<CloudType>::sigmaTcR
|
|||||||
// calculating cross section = pi*dPQ^2, where dPQ is from Bird, eq. 4.79
|
// calculating cross section = pi*dPQ^2, where dPQ is from Bird, eq. 4.79
|
||||||
scalar sigmaTPQ =
|
scalar sigmaTPQ =
|
||||||
mathematicalConstant::pi*dPQ*dPQ
|
mathematicalConstant::pi*dPQ*dPQ
|
||||||
*pow(2.0*CloudType::kb*CloudType::Tref/(mR*cR*cR), omegaPQ - 0.5)
|
*pow(2.0*CloudType::kb*Tref_/(mR*cR*cR), omegaPQ - 0.5)
|
||||||
/exp(Foam::lgamma(2.5 - omegaPQ));
|
/exp(Foam::lgamma(2.5 - omegaPQ));
|
||||||
|
|
||||||
return sigmaTPQ*cR;
|
return sigmaTPQ*cR;
|
||||||
|
|||||||
@ -50,6 +50,9 @@ class LarsenBorgnakkeVariableHardSphere
|
|||||||
{
|
{
|
||||||
// Private data
|
// Private data
|
||||||
|
|
||||||
|
//- Reference temperature
|
||||||
|
const scalar Tref_;
|
||||||
|
|
||||||
//- Relaxation collision number
|
//- Relaxation collision number
|
||||||
const scalar relaxationCollisionNumber_;
|
const scalar relaxationCollisionNumber_;
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,8 @@ Foam::VariableHardSphere<CloudType>::VariableHardSphere
|
|||||||
CloudType& cloud
|
CloudType& cloud
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
BinaryCollisionModel<CloudType>(dict, cloud, typeName)
|
BinaryCollisionModel<CloudType>(dict, cloud, typeName),
|
||||||
|
Tref_(readScalar(this->coeffDict().lookup("Tref")))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -90,7 +91,7 @@ Foam::scalar Foam::VariableHardSphere<CloudType>::sigmaTcR
|
|||||||
// calculating cross section = pi*dPQ^2, where dPQ is from Bird, eq. 4.79
|
// calculating cross section = pi*dPQ^2, where dPQ is from Bird, eq. 4.79
|
||||||
scalar sigmaTPQ =
|
scalar sigmaTPQ =
|
||||||
mathematicalConstant::pi*dPQ*dPQ
|
mathematicalConstant::pi*dPQ*dPQ
|
||||||
*pow(2.0*CloudType::kb*CloudType::Tref/(mR*cR*cR), omegaPQ - 0.5)
|
*pow(2.0*CloudType::kb*Tref_/(mR*cR*cR), omegaPQ - 0.5)
|
||||||
/exp(Foam::lgamma(2.5 - omegaPQ));
|
/exp(Foam::lgamma(2.5 - omegaPQ));
|
||||||
|
|
||||||
return sigmaTPQ*cR;
|
return sigmaTPQ*cR;
|
||||||
|
|||||||
@ -47,6 +47,12 @@ class VariableHardSphere
|
|||||||
:
|
:
|
||||||
public BinaryCollisionModel<CloudType>
|
public BinaryCollisionModel<CloudType>
|
||||||
{
|
{
|
||||||
|
// Private data
|
||||||
|
|
||||||
|
//- Reference temperature
|
||||||
|
const scalar Tref_;
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
|||||||
Reference in New Issue
Block a user