mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/OpenFOAM-dev
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -195,10 +195,8 @@ void maxwellSlipUFvPatchVectorField::write(Ostream& os) const
|
||||
<< thermalCreep_ << token::END_STATEMENT << nl;
|
||||
os.writeKeyword("curvature") << curvature_ << token::END_STATEMENT << nl;
|
||||
|
||||
os.writeKeyword("refValue")
|
||||
<< refValue() << token::END_STATEMENT << nl;
|
||||
os.writeKeyword("valueFraction")
|
||||
<< valueFraction() << token::END_STATEMENT << nl;
|
||||
refValue().writeEntry("refValue", os);
|
||||
valueFraction().writeEntry("valueFraction", os);
|
||||
|
||||
writeEntry("value", os);
|
||||
}
|
||||
|
||||
@ -298,15 +298,22 @@ template<class Thermo, template<class> class Type>
|
||||
inline Foam::scalar
|
||||
Foam::species::thermo<Thermo, Type>::K(const scalar p, const scalar T) const
|
||||
{
|
||||
scalar arg = -this->nMoles()*this->g(p, T)/(this->RR*T);
|
||||
|
||||
if (arg < 600.0)
|
||||
if (equal(this->nMoles(), SMALL))
|
||||
{
|
||||
return ::exp(arg);
|
||||
return 1.0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return VGREAT;
|
||||
scalar arg = -this->nMoles()*this->g(p, T)/(this->RR*T);
|
||||
|
||||
if (arg < 600.0)
|
||||
{
|
||||
return exp(arg);
|
||||
}
|
||||
else
|
||||
{
|
||||
return VGREAT;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user