You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Representing a body with 3 translational and 3 rotational degrees-of-freedom.
213
213
214
214
This component has a single frame, `frame_a`. To represent bodies with more than one frame, see [`BodyShape`](@ref), [`BodyCylinder`](@ref), [`BodyBox`](@ref).
215
215
216
+
# Performance optimization
217
+
- `sparse_I`: If `true`, the zero elements of the inerita matrix are considered "structurally zero", and this fact is used to optimize performance. When this option is enabled, the elements of the inertia matrix that were zero when the component was created cannot changed without reinstantiating the component. This performance optimization may be useful, e.g., when the inertia matrix is known to be diagonal.
218
+
216
219
# Parameters
217
220
- `m`: Mass
218
221
- `r_cm`: Vector from `frame_a` to center of mass, resolved in `frame_a`
@@ -221,7 +224,6 @@ This component has a single frame, `frame_a`. To represent bodies with more than
221
224
- `phi0`: Initial orientation, only applicable if `isroot = true` and `quat = false`
222
225
- `phid0`: Initial angular velocity
223
226
224
-
225
227
# Variables
226
228
- `r_0`: Position vector from origin of world frame to origin of `frame_a`
227
229
- `v_0`: Absolute velocity of `frame_a`, resolved in world frame (= D(r_0))
@@ -239,6 +241,7 @@ This component has a single frame, `frame_a`. To represent bodies with more than
239
241
I_21 =0,
240
242
I_31 =0,
241
243
I_32 =0,
244
+
sparse_I =false,
242
245
isroot =false,
243
246
state =false,
244
247
sequence = [1,2,3],
@@ -295,6 +298,10 @@ This component has a single frame, `frame_a`. To represent bodies with more than
295
298
@parameters render = render [description ="Render the component in animations"]
0 commit comments