メインコンテンツ

Gravitational Field

Model gravitational field

  • Gravitational Field block

Libraries:
Simscape / Multibody / Forces and Torques

Description

The Gravitational Field block models a gravitational field centered at the base frame of the block. The field applies a gravitational force at the center of mass (COM) of each rigid body in the connected mechanism. The block applies force to each rigid body COM, even when bodies connect through a Weld Joint block.

Model the gravitational field with either the point mass gravity model or the spherical harmonic gravity model.

Point Mass Model

Set Gravity Type to Point Mass to model gravity from a single point source. The gravitational force follows Newton’s law of universal gravitation

Fg=GMmRBF2,

where:

  • Fg is the gravitational force on the rigid body.

  • G is the universal gravitational constant, 6.67384 × 10-11 m3kg-1s-2.

  • M is the mass of the point source that generates the gravitational field.

  • m is the mass of the rigid body, which can be either positive or negative.

  • RBF is the distance between the source mass and the COM of the rigid body.

The figure below shows these variables and the inverse-square relationship between force and distance.

The plot shows the inverse square dependence between the gravitational force and distance.

Spherical Harmonic Model

Set Gravity Type to Spherical Harmonic to model spherical harmonic gravitational fields. The Spherical Harmonic model requires an Aerospace Toolbox license.

Limitations

The block does not apply gravitational forces to flexible bodies within the connected mechanism.

Ports

Frame

expand all

Base frame in which the gravitational field is centered.

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

gravitational field to model. Use Point Mass to model gravity from a single point source. Use Spherical Harmonic to model gravitational fields using spherical harmonic expansion. To use the Spherical Harmonic parameter setting, you must have an Aerospace Toolbox license.

Mass of the point source that generates the gravitational field. This value can be positive or negative.

Dependencies

To enable this parameter, set Gravity Type to Point Mass.

The product of the universal gravitational constant and the mass that generates the gravitational field.

Dependencies

To enable this parameter, set Gravity Type to Spherical Harmonic.

Equatorial radius of the central body.

Dependencies

To enable this parameter, set Gravity Type to Spherical Harmonic.

Normalized spherical harmonic coefficient matrix for the cosine terms. Specified this parameter as an (n+1)-by-(n+1) matrix, where n is the value of the Degree parameter.

Dependencies

To enable this parameter, set Gravity Type to Spherical Harmonic.

Normalized spherical harmonic coefficient matrix for the sine terms. Specified this parameter as an (n+1)-by-(n+1) matrix, where n is the value of the Degree parameter.

Dependencies

To enable this parameter, set Gravity Type to Spherical Harmonic.

Maximum degree of the spherical harmonic expansion used in gravity computation.

Dependencies

To enable this parameter, set Gravity Type to Spherical Harmonic.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2014a

expand all