18 lines
414 B
C++
18 lines
414 B
C++
|
volScalarField yieldStress
|
||
|
(
|
||
|
const dimensionedScalar& yieldStressCoeff,
|
||
|
const dimensionedScalar& yieldStressExponent,
|
||
|
const dimensionedScalar& yieldStressOffset,
|
||
|
const volScalarField& alpha
|
||
|
)
|
||
|
{
|
||
|
return
|
||
|
(
|
||
|
yieldStressCoeff*
|
||
|
(
|
||
|
pow(10.0, yieldStressExponent*(alpha + yieldStressOffset))
|
||
|
- pow(10.0, yieldStressExponent*yieldStressOffset)
|
||
|
)
|
||
|
);
|
||
|
}
|