Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Inverse Square Law Force

Force proportional to the inverse square distance between two frame origins

Library

Forces and Torques

Description

This block represents a force pair that is inversely proportional to the square distance between the base and follower frame origins. The two forces in the pair have equal magnitude but opposite directions. One force acts on the base frame origin, along the vector connecting the follower to base frame origins. The other force acts on the follower frame origin, along the vector connecting base to follower frame origins.

The value of the force depends on a force constant that you specify. A positive force constant represents a repulsive force that pushes the two frame origins apart. A negative force constant represents an attractive force that pulls the two frame origins together.

C/C++ Code Generation

This block supports code generation for real-time simulation tasks. Certain blocks and block settings may be more suitable for simulation on a real-time device. For suggestions on how to improve real-time simulation performance, use the Simulink® Performance Advisor (Simulink). Suggestions include ways to reduce model complexity where helpful and to decrease numerical stiffness.

Select Analysis > Performance Tools > Performance Advisor in the Simulink menu bar to open the Performance Advisor. Set the Activity parameter to Execute real-time application to view suggestions specific to real-time simulation performance. Expand the Real-Time node in the tree view pane to select performance checks specific to Simscape™ products.

Parameters

Force Constant

Specify the proportionality constant of the inverse square law force. This constant is a lumped parameter that encodes the dependence of the force magnitude on the inverse square distance between the two frame origins. The default value is 1. Select or specify a physical unit.

Sense Force

Select the check box to sense the signed magnitude of the inverse square law force acting between the two frame origins. The block exposes an additional physical signal port to output the force signal. The output signal is a scalar value. This value is positive if the force is repulsive; it is negative if the force is attractive.

Ports

The block contains frame ports B and F, representing base and follower frames, respectively.

Selecting Sense Force in the block dialog box exposes an additional physical signal port, fm.

Introduced in R2012a

Was this topic helpful?