WOLFRAM SYSTEM MODELER

Ball

PlanarMechanics body with eqations for potential and kinetic energy calculations

Wolfram Language

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

Information

Extension of the PlanarMechanics Body model. Contains equations for calculating the potential and kinetic energies of the bodies.

Parameters (8)

animate

Value: true

Type: Boolean

Description: = true, if animation shall be enabled

stateSelect

Value: StateSelect.default

Type: StateSelect

Description: Priority to use phi, w and a as states

m

Value:

Type: Mass (kg)

Description: Mass of the body

I

Value:

Type: Inertia (kg⋅m²)

Description: Inertia of the body with respect to the origin of frame_a along the z-axis of frame_a

zPosition

Value: planarWorld.defaultZPosition

Type: Length (m)

Description: Position z of the body

sphereDiameter

Value: planarWorld.defaultBodyDiameter

Type: Diameter (m)

Description: Diameter of sphere

enableGravity

Value: true

Type: Boolean

Description: = true, if gravity effects should be taken into account

yoffset

Value: 0.3

Type: Real

Description: Height offset for potential energy calculation

Inputs (2)

sphereColor

Default Value: Types.Defaults.BodyColor

Type: Color

Description: Color of sphere

specularCoefficient

Default Value: planarWorld.defaultSpecularCoefficient

Type: SpecularCoefficient

Description: Reflection of ambient light (= 0: light is completely absorbed)

Connectors (1)

frame_a

Type: Frame_a

Description: Coordinate system (2-dim.) fixed to the component with one cut-force and cut-torque (blue icon)

Components (2)

planarWorld

Type: PlanarWorld

Description: planar world model

sphere

Type: Shape

Description: Visualizing an elementary object with variable size; all data have to be set as modifiers (see info layer)

Used in Examples (1)

NewtonsCradleModel

EducationExamples.Physics.NewtonsCradle

Newton's cradle example setup using PlanarMechanics