yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23724
Re: [Question #692166]: Question about strain of triaxial compression simulation
Question #692166 on Yade changed:
https://answers.launchpad.net/yade/+question/692166
Status: Open => Answered
Jan Stránský proposed the following answer:
Hello,
> Do I misunderstand something?
yes, the signs :-)
###
from math import log,exp
L = 0.14
l = 0.12
eEng = (l-L)/L
eLog = log(1+eEng)
eEng2 = exp(eLog) - 1
eEng2wrong = exp(-eLog) - 1
print("eEng",eEng) # -0.143
print("eLog",eLog) # -0.154
print("eEng2",eEng2) # -0.143
print("eEng2wrong",eEng2wrong) # +0.166
###
cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.