Fixed sign error in Herschel Bulkley model

This commit is contained in:
Dominik Christ 2014-06-09 12:48:39 +01:00
parent 99b0678ac2
commit 8a29671c1e

View file

@ -54,7 +54,7 @@ Foam::viscosityModels::HerschelBulkley::calcNu() const
dimensionedScalar rtone("rtone", dimless/dimTime, 1.0); dimensionedScalar rtone("rtone", dimless/dimTime, 1.0);
tmp<volScalarField> sr(strainRate()); tmp<volScalarField> sr(strainRate());
return (min(nu0_,(tau0_ + k_* rtone *( pow(tone * sr(), n_) return (min(nu0_,(tau0_ + k_* rtone *( pow(tone * sr(), n_)
+ pow(tone*tau0_/nu0_,n_))) / (max(sr(), dimensionedScalar - pow(tone*tau0_/nu0_,n_))) / (max(sr(), dimensionedScalar
("VSMALL", dimless/dimTime, VSMALL))))); ("VSMALL", dimless/dimTime, VSMALL)))));
} }