WOLFRAM SYSTEM MODELER

Soccer

Soccer model with visualizers.

Diagram

Wolfram Language

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

Information

The soccer 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, some visualizer components with different CAD shapes used in the animation, and Magnus and drag forces.

Parameters (6)

ballMass

Value: 999

Type: Mass (kg)

Description: Mass of the ball

ballRadius

Value: 999

Type: Length (m)

Description: Radius of the ball

temp

Value: 293.15

Type: Real

Description: Temperature of the air

initVel

Value: {15, 5, 2}

Type: Velocity[3] (m/s)

initAngVel

Value: {0, 50, 10}

Type: AngularVelocity[3] (rad/s)

initPos

Value: {-45, 0, -50}

Type: Position[3] (m)

Description: Starting position of ball

Connectors (4)

frame_a1

Type: Frame_a

Description: Coordinate system fixed to the component with one cut-force and cut-torque (filled rectangular icon)

frame_b

Type: Frame_b

Description: Coordinate system fixed to the component with one cut-force and cut-torque (non-filled rectangular icon)

frame_world

Type: Frame_a

Description: Coordinate system fixed to the component with one cut-force and cut-torque (filled rectangular icon)

frame_transl

Type: Frame_a

Description: Coordinate system fixed to the component with one cut-force and cut-torque (filled rectangular icon)

Components (13)

ball

Type: BodyShape

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

magnusForce

Type: MagnusForce

Description: Component calculating the magnus force

dragForce

Type: DragForce

Description: Component calculating the magnus force

visualizerSoccer

Type: FixedShape

Description: Visualizing an elementary shape with dynamically varying shape attributes (has one frame connector)

visSoccerField

Type: FixedShape

Description: Visualizing an elementary shape with dynamically varying shape attributes (has one frame connector)

fixedTranslation

Type: FixedTranslation

Description: Fixed translation of frame_b with respect to frame_a

goalTag2Pos

Type: FixedTranslation

Description: Fixed translation of frame_b with respect to frame_a

goalTag1Pos

Type: FixedTranslation

Description: Fixed translation of frame_b with respect to frame_a

visualizergoal1Tag

Type: FixedShape

Description: Visualizing an elementary shape with dynamically varying shape attributes (has one frame connector)

visualizergoal2Tag

Type: FixedShape

Description: Visualizing an elementary shape with dynamically varying shape attributes (has one frame connector)

velArrow

Type: FixedArrow

Description: Visualizing an arrow with dynamically varying size in frame_a

magnusVisualizer

Type: FixedArrow

Description: Visualizing an arrow with dynamically varying size in frame_a

dragVisualizer

Type: FixedArrow

Description: Visualizing an arrow with dynamically varying size in frame_a

Used in Components (1)

Ball

EducationExamples.Physics.GolfAndSoccer.Components

Ball subject to magnus forces.