WOLFRAM SYSTEM MODELER
BallBall subject to magnus forces. |
![]() |
SystemModel["EducationExamples.Physics.GolfAndSoccer.Components.Ball"]
The ball component consists of three prismatic joints and one spherical rotation joint connected to both a golf ball component and a soccer ball component. Depending on the Boolean variable modelInUse, either the soccer model or the golf model will be active. That means that the other model will not exist.
Above is the diagram view of the ball component. The two ball models are so-called conditional components and will only exist if some condition is true. In this case, if modelInUse is equal to one or two.
To change the friction coefficients of the ground, click the component called softSupportingPlane. Under the General tab, you can change the static and dynamic friction coefficient values, here denoted mu_static and mu_dynamic.
ballMass |
Value: 999 Type: Mass (kg) Description: Mass of the ball |
---|---|
ballRadius |
Value: 999 Type: Length (m) Description: Radius of the ball |
modelInUse |
Value: 2 Type: Integer |
initVel |
Value: Type: Velocity[3] (m/s) Description: Starting velocity of the ball |
initAngVel |
Value: Type: AngularVelocity[3] (rad/s) Description: Starting angular velocity of the ball |
initPos |
Value: Type: Position[3] (m) Description: Starting position of the ball |
![]() |
frame_a1 |
Type: Frame_a |
---|
![]() |
prismaticX |
Type: Prismatic |
---|---|---|
![]() |
prismaticY |
Type: Prismatic |
![]() |
prismaticZ |
Type: Prismatic |
![]() |
rotationJoint |
Type: Spherical |
![]() |
fixed |
Type: Fixed |
![]() |
softSupportingPlane |
Type: SoftSupportingPlane |
![]() |
soccer |
Type: Soccer |
![]() |
cameraPoint |
Type: FixedTranslation |
![]() |
golf |
Type: Golf |
EducationExamples.Physics.GolfAndSoccer.Components Base class, used to both represent a soccer free kick and a golf swing. |