WOLFRAM SYSTEM MODELER

Golf

Golf with visualizers.

Diagram

Wolfram Language

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

Information

 

Golf Component

 

Golf Ball Model

The golf ball model consists of three visualizer arrows that show the Magnus force, drag force, and velocity vector. The golf component also contains a Modelica Standard Library MultiBody bodyShape component, a visualizer component containing different CAD shapes used in the animation, Magnus and drag forces, and a club model, represented by the golf bag.

Above is the diagram view of the ball component. The golf bag component is defined in the GolfBase component as replaceable. This model extends GolfBase and can be redeclared to change golf club.

 

Parameters (5)

ballMass

Value:

Type: Mass (kg)

Description: Mass of the ball

ballRadius

Value:

Type: Length (m)

Description: Radius of the ball

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 ball

Connectors (4)

frame_a

Type: Frame_a

Description: Frame that connects the ball with the prismatic and rotational joints

frame_b

Type: Frame_b

Description: Frame to connect the ball to the SoftSupportingPlane component

frame_transl

Type: Frame_a

Description: Frame connected to the prismatic joints

frame_world

Type: Frame_a

Description: Frame connected with the world frame

Components (8)

club

Type: GolfBag

ball

Type: BodyShape

golfVisualizers

Type: GolfVisualizers

Description: Component containing some visualizers for the animation

velArrow

Type: FixedArrow

Description: Visualizer arrow for the velocity vector

magnusVisualizer

Type: FixedArrow

Description: Visualizer arrow for the Magnus force

dragVisualizer

Type: FixedArrow

Description: Visualizer arrow for the drag force

dragForce

Type: DragForce

Description: Component where the drag force is calculated

magnusForce

Type: MagnusForce

Description: Component where the Magnus force is calculated

Used in Components (1)

Ball

EducationExamples.Physics.GolfAndSoccer.Components

Ball subject to magnus forces.