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

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