mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
HerschelBulkley: Changed the definition of the coefficients and stress to more commonly used forms.
This does not change the form of the function but the coefficients must be set appropriately.
This commit is contained in:
@ -52,10 +52,28 @@ Foam::viscosityModels::HerschelBulkley::calcNu() const
|
|||||||
{
|
{
|
||||||
dimensionedScalar tone("tone", dimTime, 1.0);
|
dimensionedScalar tone("tone", dimTime, 1.0);
|
||||||
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_)
|
|
||||||
- pow(tone*tau0_/nu0_,n_))) / (max(sr(), dimensionedScalar
|
// return
|
||||||
("VSMALL", dimless/dimTime, VSMALL)))));
|
// (
|
||||||
|
// min
|
||||||
|
// (
|
||||||
|
// nu0_,
|
||||||
|
// (tau0_ + k_*rtone*(pow(tone*sr(), n_) - pow(tone*tau0_/nu0_, n_)))
|
||||||
|
// /max(sr(), dimensionedScalar("VSMALL", dimless/dimTime, VSMALL))
|
||||||
|
// )
|
||||||
|
// );
|
||||||
|
|
||||||
|
return
|
||||||
|
(
|
||||||
|
min
|
||||||
|
(
|
||||||
|
nu0_,
|
||||||
|
(tau0_ + k_*rtone*pow(tone*sr(), n_))
|
||||||
|
/(max(sr(), dimensionedScalar ("VSMALL", dimless/dimTime, VSMALL)))
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -57,7 +57,7 @@ Foam::viscosityModel::viscosityModel
|
|||||||
|
|
||||||
Foam::tmp<Foam::volScalarField> Foam::viscosityModel::strainRate() const
|
Foam::tmp<Foam::volScalarField> Foam::viscosityModel::strainRate() const
|
||||||
{
|
{
|
||||||
return mag(symm(fvc::grad(U_)));
|
return sqrt(2.0)*mag(symm(fvc::grad(U_)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user