20-sim webhelp > Library > Iconic Diagrams > Mechanical > Translation > 2DSmallRotation > twodpositionsensor


twodpositionsensor

Navigation:  Library > Iconic Diagrams > Mechanical > Translation > 2DSmallRotation >

twodpositionsensor

Previous pageReturn to chapter overviewNext page

Library

Iconic Diagrams\Mechanical\Translation\2DSmallAngles

Use

Domains: Continuous. Size: 1-D/2-D. Kind: Iconic Diagrams (1D Translation,1D Rotation, 2D Planar).

Description

This model is used to find the absolute position of a TwoDBody model. It has a port P which can be connected to the body and it has three output signals that denotes the x- and y-position and the angle of the body. The model has a force out causality. The equations are:

 

P.F = 0;

x = int (P.v[1]);

y = int (P.v[2]);

theta = int (P.v[3]);

Interface

Ports

Description

P[3]

Port with three degrees of freedom (x, y, q).

Causality

 

fixed force out P

 

Output

 

x

Absolute position [m].

y

Absolute position [m].

theta

Absolute angle [rad].

Initial Values

 

x_initial

Initial position [m]

y_initial

Initial position [m]

theta_initial

Initial angle [m]