Slope2

Model ElementSlope2

Class Name

Slope2

Description

Slope2 computes the following value:(1)
m= y t 2 y t 1 x t 2 x t 1 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBaiabg2 da9maalaaabaGaamyEamaaBaaaleaacaWG0bWaaSbaaWqaaiaaikda aeqaaaWcbeaakiabgkHiTiaadMhadaWgaaWcbaGaamiDamaaBaaame aacaaIXaaabeaaaSqabaaakeaacaWG4bWaaSbaaSqaaiaadshadaWg aaadbaGaaGOmaaqabaaaleqaaOGaeyOeI0IaamiEamaaBaaaleaaca WG0bWaaSbaaWqaaiaaigdaaeqaaaWcbeaaaaaaaa@464E@

where:

y(numerator) and x(denominator) are defined by a valid MotionSolve expression and calculated at time t 1 , t 2 MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiDamaaBa aaleaacaaIXaaabeaakiaacYcacaWG0bWaaSbaaSqaaiaaikdaaeqa aaaa@3A72@ , where t 2 = t i m e + d e l t a MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiDamaaBa aaleaacaaIYaaabeaakiabg2da9iaadshacaWGPbGaamyBaiaadwga cqGHRaWkcaWGKbGaamyzaiaadYgacaWG0bGaamyyaaaa@422F@ and t 1 = t i m e d e l t a MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamiDamaaBa aaleaacaaIXaaabeaakiabg2da9iaadshacaWGPbGaamyBaiaadwga cqGHsislcaWGKbGaamyzaiaadYgacaWG0bGaamyyaaaa@423A@ .

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,
   )