Model ElementSlope2
Description
Slope2 computes the following value:
(1)
where:
y(numerator) and
x(denominator) are defined by a valid
MotionSolve expression and calculated at time
, where
and
.
Attribute Summary
Name |
Property |
Modifiable by
Command? |
Designable |
label |
Str () |
|
|
numerator |
Function () |
|
Yes |
denominator |
Function () |
|
Yes |
time |
Double () |
|
|
delta |
Double () |
|
|
interval |
Double () |
|
|
scale |
Double (1) |
|
|
Usage
# Slope 2 computes the slope of two signals at different instants:
# m = (numerator@t2 - numerator@t1) / (denominator@t2 - denominator@t1)
Slope2 (numerator=’DZ(1,2)’, denominator=’DY(1,2)’, time=5, delta=0.1)
Attributes
Mandatory attributes.
- numerator
- Function
- Valid MotionSolve expression defining the numerator.
- It will be calculated at t1 and
t2 before computing the slope, where
t1 = time – delta and
t2 = time + delta.
- denominator
- Function
- Valid MotionSolve expression defining the
denominator.
- It will be calculated at t1 and
t2 before computing the slope, where
t1 = time – delta and
t2 = time + delta.
- time
- Double
- Instant at which the slope is calculated.
- The numerator and denominator will be
calculated at t1 and
t2 to compute the variation, where
t1 = time – delta and
t2 = time + delta.
- delta
- Double
- The perturbation step for the variation of numerator and
denominator.
- The numerator and denominator will be
calculated at t1 and
t2 to compute the variation, where
t1 = time – delta and
t2 = time + delta.
Optional attributes.
- label
- String
- Specifies the name of the Slope2 object.
- This attribute is optional. When not specified, MotionSolve creates a label for you.
- interval
- Double
- Interval between which the numerator and denominator is averaged.
- The numerator and denominator are evaluated at
t1 and
t2 in order to compute the slope.
The signal is averaged between t1/t2 –
interval and t1/t2 +
interval for evaluation. The
interval would be
delta/100 by default.
- scale
- Double
- Specifies the scale factor to scale the Slope2 value.
If not specified, it defaults to 1.0.
- This attribute is optional.
Example
# Compute the slope of TOE vs. DZ curve at design position (T=5)
slope2 = Slope2 (
label = "TOE vs DZ",
numerator = "1000*YAW(30701025,30701024)*RTOD",
denominator = "DZ(30701024,30701025,10701021)",
time = 5.0,
delta = 0.1,
)