mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
Added better clipping and removed x-permissions.
This commit is contained in:
0
src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.C
Executable file → Normal file
0
src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.C
Executable file → Normal file
0
src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H
Executable file → Normal file
0
src/transportModels/incompressible/viscosityModels/HerschelBulkley/HerschelBulkley.H
Executable file → Normal file
28
src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.C
Executable file → Normal file
28
src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.C
Executable file → Normal file
@ -51,9 +51,23 @@ namespace viscosityModels
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::viscosityModels::powerLaw::calcNu() const
|
||||
{
|
||||
dimensionedScalar tone("tone", dimTime, 1.0);
|
||||
return (max(numin_, min(numax_, k_
|
||||
* pow(tone * strainRate(), n_.value()- scalar(1.0)))));
|
||||
return max
|
||||
(
|
||||
nuMin_,
|
||||
min
|
||||
(
|
||||
nuMax_,
|
||||
k_*pow
|
||||
(
|
||||
max
|
||||
(
|
||||
dimensionedScalar("one", dimTime, 1.0)*strainRate(),
|
||||
dimensionedScalar("VSMALL", dimless, VSMALL)
|
||||
),
|
||||
n_.value() - scalar(1.0)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -71,8 +85,8 @@ Foam::viscosityModels::powerLaw::powerLaw
|
||||
powerLawCoeffs_(viscosityProperties.subDict(typeName + "Coeffs")),
|
||||
k_(powerLawCoeffs_.lookup("k")),
|
||||
n_(powerLawCoeffs_.lookup("n")),
|
||||
numin_(powerLawCoeffs_.lookup("numin")),
|
||||
numax_(powerLawCoeffs_.lookup("numax")),
|
||||
nuMin_(powerLawCoeffs_.lookup("nuMin")),
|
||||
nuMax_(powerLawCoeffs_.lookup("nuMax")),
|
||||
nu_
|
||||
(
|
||||
IOobject
|
||||
@ -101,8 +115,8 @@ bool Foam::viscosityModels::powerLaw::read
|
||||
|
||||
powerLawCoeffs_.lookup("k") >> k_;
|
||||
powerLawCoeffs_.lookup("n") >> n_;
|
||||
powerLawCoeffs_.lookup("numin") >> numin_;
|
||||
powerLawCoeffs_.lookup("numax") >> numax_;
|
||||
powerLawCoeffs_.lookup("nuMin") >> nuMin_;
|
||||
powerLawCoeffs_.lookup("nuMax") >> nuMax_;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
4
src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H
Executable file → Normal file
4
src/transportModels/incompressible/viscosityModels/powerLaw/powerLaw.H
Executable file → Normal file
@ -61,8 +61,8 @@ class powerLaw
|
||||
|
||||
dimensionedScalar k_;
|
||||
dimensionedScalar n_;
|
||||
dimensionedScalar numin_;
|
||||
dimensionedScalar numax_;
|
||||
dimensionedScalar nuMin_;
|
||||
dimensionedScalar nuMax_;
|
||||
|
||||
volScalarField nu_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user