← Back to team overview

yade-users team mailing list archive

Re: [Question #693455]: addForce didnt work for facet

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

1) please provide a MWE [1], W=working, reproducing your problem (but still keeping it M=minimal). Here, addForces is never called, so you do not apply the force actually and that is the reason why "it just doesnt work"...
There can be many reasons, hard even to guess without actual code:
- addForces / O.forces.addF is never used / is misused
- preStress is 0 (not defined in the provided code)
- it just works, just you wrongly interpret it (typically it is not "visible in GUI" but observable according to numerical results)
- ...

2) yes [2], in python it would be
normal = (v1-v0).cross(v2-v1).normalized() # vertices are v0,v1,v2
so the normal is "right-hand-ruled by v0,v1,v2"

cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask
[2] https://gitlab.com/yade-dev/trunk/-/blob/master/pkg/common/Facet.cpp#L36

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