yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #13898
Re: [Question #407652]: negative or positive prescription of forceN
Question #407652 on Yade changed:
https://answers.launchpad.net/yade/+question/407652
Status: Open => Answered
Jan Stránský proposed the following answer:
Hi Liu,
see the source code of VTKReorder [1] and CpmPhys [2], the implementation
differs by the sign. In Cpm, positive force is tension, so in Paraview
output, positive force is compression (you can do a simple 2 particles test
where you know the result in advance). You can use Paraview Calculator
filter to swap the behavior.
Cheers
Jan
[1] https://github.com/yade/trunk/blob/master/pkg/dem/VTKRecorder.cpp#L470
[2] https://github.com/yade/trunk/blob/master/pkg/dem/ConcretePM.cpp#L431
--
You received this question notification because your team yade-users is
an answer contact for Yade.