This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/multiphase/settlingFoam/yieldStress.H

18 lines
414 B
C++
Raw Normal View History

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)
)
);
}