← Back to team overview

yade-users team mailing list archive

Re: [Question #685643]: Sign convention for incremental shear displacement(Scalar/ Magnitude)

 

Question #685643 on Yade changed:
https://answers.launchpad.net/yade/+question/685643

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Chanaka,

it all depends on how you define sign for a 3d vector (as you noticed, it is somehow artificial).
One way is to dot-product the vector with a unit "plus minus vector", e.g. a unit x vector (1,0,0)

delta_us_scalar = delta_us.dot(plusMinusUnitVector) # python, it would
be similar in C++

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.