WOLFRAM SYSTEM MODELER

SquaretimesSign

Output the squared input and retain the same sign of it

Wolfram Language

In[1]:=
SystemModel["PlanarMechanics.Utilities.Blocks.SquaretimesSign"]
Out[1]:=

Information

This block outputs squared input real signal whereby the sign of the output is the same as input. The size of input u and output y are defined by a parameter blockSize, thus

for i in 1:blockSize loop
  y[i] = sign(u[i]) * u[i]^2;
end for;

Parameters (3)

nin

Value: blockSize

Type: Integer

Description: Number of inputs

nout

Value: blockSize

Type: Integer

Description: Number of outputs

blockSize

Value:

Type: Integer

Connectors (2)

u

Type: RealInput[nin]

Description: Connector of Real input signals

y

Type: RealOutput[nout]

Description: Connector of Real output signals

Used in Components (1)

QuadraticSpeedDependentForce

PlanarMechanics.Sources

External force and torque acting at frame_b, defined by 3 input signals and resolved in world frame