WOLFRAM SYSTEM MODELER

Ball

Ball subject to magnus forces.

Diagram

Wolfram Language

In[1]:=
SystemModel["EducationExamples.Physics.GolfAndSoccer.Components.Ball"]
Out[1]:=

Information

 

Ball Component

 

Ball Component

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.

 

Changing Friction

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.

 

Parameters (6)

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

Connectors (1)

frame_a1

Type: Frame_a

Components (9)

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

Used in Components (1)

GolfAndSoccerBaseClass

EducationExamples.Physics.GolfAndSoccer.Components

Base class, used to both represent a soccer free kick and a golf swing.