Skip to content

Commit 5530497

Browse files
committed
Use frame transformation function for constraint
1 parent 8808322 commit 5530497

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modelica/Mechanics/MultiBody/Joints/Constraints/Universal.mo

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ equation
2727
w_rel = Frames.angularVelocity1(R_rel);
2828

2929
// Constraint equations concerning rotations
30-
frame_a.t*n_a=0;
31-
frame_b.t*n_b=0;
32-
n_b*R_rel.T*n_a=0;
30+
frame_a.t * n_a = 0;
31+
frame_b.t * n_b = 0;
32+
n_b * Frames.resolve2(R_rel, n_a) = 0; // Constraint: R_rel shall assure orthogonality of n_a and n_b
3333
assert(abs(n_a*n_b) < Modelica.Constants.eps, "The two axes that constitute the Constraints.Universal joint must be different");
3434

3535
annotation (

0 commit comments

Comments
 (0)