mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
BUG: Fix to powerLaw model to use nu0 from thermo
This commit is contained in:
@ -60,7 +60,6 @@ Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::powerLaw
|
||||
:
|
||||
generalizedNewtonianViscosityModel(viscosityProperties),
|
||||
powerLawCoeffs_(viscosityProperties.optionalSubDict(typeName + "Coeffs")),
|
||||
k_("k", dimViscosity, powerLawCoeffs_),
|
||||
n_("n", dimless, powerLawCoeffs_),
|
||||
nuMin_("nuMin", dimViscosity, powerLawCoeffs_),
|
||||
nuMax_("nuMax", dimViscosity, powerLawCoeffs_)
|
||||
@ -80,7 +79,6 @@ bool Foam::laminarModels::generalizedNewtonianViscosityModels::powerLaw::read
|
||||
|
||||
powerLawCoeffs_ = viscosityProperties.optionalSubDict(typeName + "Coeffs");
|
||||
|
||||
powerLawCoeffs_.readEntry("k", k_);
|
||||
powerLawCoeffs_.readEntry("n", n_);
|
||||
powerLawCoeffs_.readEntry("nuMin", nuMin_);
|
||||
powerLawCoeffs_.readEntry("nuMax", nuMax_);
|
||||
@ -103,7 +101,7 @@ nu
|
||||
min
|
||||
(
|
||||
nuMax_,
|
||||
k_*pow
|
||||
nu0*pow
|
||||
(
|
||||
max
|
||||
(
|
||||
|
||||
@ -62,7 +62,6 @@ class powerLaw
|
||||
|
||||
dictionary powerLawCoeffs_;
|
||||
|
||||
dimensionedScalar k_;
|
||||
dimensionedScalar n_;
|
||||
dimensionedScalar nuMin_;
|
||||
dimensionedScalar nuMax_;
|
||||
|
||||
Reference in New Issue
Block a user