WOLFRAM SYSTEM MODELER
SoccerSoccer model with visualizers. |
![]() |
SystemModel["EducationExamples.Physics.GolfAndSoccer.Components.Soccer"]
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.
Above is the diagram view of the soccer ball component. The aerodynamic forces are calculated in the MagnusForce and DragForce components.
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 |
![]() |
ball |
Type: BodyShape |
---|---|---|
![]() |
magnusForce |
Type: MagnusForce |
![]() |
dragForce |
Type: DragForce |
![]() |
visualizerSoccer |
Type: FixedShape |
![]() |
visSoccerField |
Type: FixedShape |
![]() |
fixedTranslation |
Type: FixedTranslation |
![]() |
goalTag2Pos |
Type: FixedTranslation |
![]() |
goalTag1Pos |
Type: FixedTranslation |
![]() |
visualizergoal1Tag |
Type: FixedShape |
![]() |
visualizergoal2Tag |
Type: FixedShape |
![]() |
velArrow |
Type: FixedArrow |
![]() |
magnusVisualizer |
Type: FixedArrow |
![]() |
dragVisualizer |
Type: FixedArrow |
![]() |
EducationExamples.Physics.GolfAndSoccer.Components Ball subject to magnus forces. |