Skip to content

Commit e125c29

Browse files
authored
Merge pull request #489 from llnl/JohnsonCookBugFix
Fixed a logical typo in the Johnson Cook strength model
2 parents 6184aa1 + 979fd2e commit e125c29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SolidMaterial/JohnsonCookStrength.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ yieldStrength(Field<Dimension, Scalar>& yieldStrength,
9595
const auto n = yieldStrength.numInternalElements();
9696
#pragma omp for
9797
for (auto i = 0u; i < n; ++i) {
98-
const auto Tstar = std::max(0.0, std::min(1.0, T(i) - mTroom)/(mTmelt - mTroom));
98+
const auto Tstar = std::max(0.0, std::min(1.0, ((T(i) - mTroom)/(mTmelt - mTroom))));
9999
const auto fmelt = std::max(0.0, std::min(1.0, 1.0 - pow(Tstar, mm)));
100100
yieldStrength(i) =
101101
((mA + mB*pow(plasticStrain(i), mnhard))*

0 commit comments

Comments
 (0)