Slope2Deviation

Model ElementSlope2Deviation

Class Name

Slope2Deviation

Description

Slope2Deviation computes the following value:(1)
ans= ( 1 m m target ) 2 MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyyaiaad6 gacaWGZbGaeyypa0ZaaeWaaeaacaaIXaGaeyOeI0YaaSaaaeaacaWG TbaabaGaamyBamaaBaaaleaaciGG0bGaaiyyaiaackhacaGGNbGaai yzaiaacshaaeqaaaaaaOGaayjkaiaawMcaamaaCaaaleqabaGaaGOm aaaaaaa@45B3@

where:

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@ . 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@ . m target MathType@MTEF@5@5@+= feaagKart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLn hiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYbItLDharqqtubsr 4rNCHbGeaGqiVu0Je9sqqrpepC0xbbL8F4rqqrFfpeea0xe9Lq=Jc9 vqaqpepm0xbba9pwe9Q8fs0=yqaqpepae9pg0FirpepeKkFr0xfr=x fr=xb9adbaqaaeGaciGaaiaabeqaamaabaabaaGcbaGaamyBamaaBa aaleaacaqG0bGaaeyyaiaabkhacaqGNbGaaeyzaiaabshaaeqaaaaa @3CAE@ is the target value of slope.

Attribute Summary

Name Property Modifiable by Command? Designable
label Str ()    
numerator Function ()   Yes
denominator Function ()   Yes
time Double ()    
delta Double ()    
interval Double ()    
targetValue Double ()    
scale Double (1)    

Usage

# Slope2Deviation computes the square of the difference of slope wrt to a targetvalue
Slope2Deviation(numerator=’DZ(1,2)’, denominator=’DY(1,2)’, time=5, delta=0.1, 
        targetValue=targetValue)

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.
targetValue
Double
Desired value of the slope.
Optional attribute
label
String
Specifies the name of the Slope2Deviation object.
This attribute is optional. When not specified, MotionSolve creates a label for you.
scale
Double
Specifies the scale factor to scale the Slope2Deviation value. If not specified, it defaults to 1.0.
This attribute is optional.

Example

# Compute the deviation of the slope of TOE vs. DZ curve at design position (T=5) 
# from a desired value of -4° 
slope2 = Slope2 (
   label = "TOE/DZ ",  
   numerator = "1000*YAW(30701025,30701024)*RTOD",
   denominator = "DZ(30701024,30701025,10701021)",
   time = 5.0,
   delta = 0.1,
   targetValue = -4,
   )