Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

b2RigidPlasticJoint moment and force are not correct for additional mass #15

Open
1 of 4 tasks
simo-11 opened this issue Oct 15, 2018 · 1 comment
Open
1 of 4 tasks
Assignees

Comments

@simo-11
Copy link
Owner

simo-11 commented Oct 15, 2018

  • test without warm starting
  • modify joint so that contacts are taken into account without warm starting
  • handle initial rotational velocity in some other way
  • figure out other options if needed

adding directly above beam's center of gravity (x=10), gives correct result.
e.g. 500 000 kg causes additional force of 5 MN and 5 MNm so that total force 8 MN and moment 81.2 MNm
for x=9 total force is 9 MN and moment 91 MNm
for x=8 total force is 11 MN and moment 101 MNm
for x=11 total force is 7 MN and moment 71 MNm
for x=12 total force is 5 MN and moment 61 MNm
for x=13 total force is 3 MN and moment 51 MNm but system is drifting #16 fixed drifting
for x=16 total force is ~ 0 MN and moment 24 MNm
fro x=19 total force is -5 MN (negative) and moment -6-10 MNm (correct moment is 126 MNm)

Impulse from additional mass is handled as if there was joint at center of gravity.

for x=8
with rp
image

with ep using 10Hz
image

simo-11 added a commit that referenced this issue Oct 15, 2018
bo::reset() added to avoid multiple edits in future.
mouse position is shown in bottom.
Mass can be added using coordinate input.
@simo-11 simo-11 self-assigned this Oct 16, 2018
@simo-11
Copy link
Owner Author

simo-11 commented Oct 16, 2018

contactSolver.WarmStart causes too large velocity/impulse which is normally corrected during iteration but not in rigidPlastic processing.

x vy va
10 -0.42 0
19 -0.35 -0.049

RigidPlastic does not currently work at all with contacts if warm start is not active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant