WOLFRAM SYSTEM MODELER

Golf

Golf with visualizers.

Diagram

Wolfram Language

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

Information

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.

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

Description: Parameters for golf club.

ball

Type: BodyShape

Description: Rigid body with mass, inertia tensor, different shapes for animation, and two frame connectors (12 potential states)

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.