1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577
| Option Explicit On
Option Strict On
Imports System.Math
Namespace chassis 'Chassis tab of the setup form
Public Class result 'Match to the outputs of the chassis tab on the setut spread sheet
#Region "Usual function & constant"
Public Const g As Double = 9.81
Public Function deg(ByVal angle As Double) As Double
Return angle * 180 / PI
End Function
Public Function rad(ByVal angle As Double) As Double
Return angle * PI / 180
End Function
#End Region
Dim car As New chassis.setup
#Region "Properties"
#Region "NSM"
Public ReadOnly Property NSMWeightDistribution As Double
Get
Return CalculateNSMWeightDistribution(car.NSM_LF, car.NSM_RF, car.NSM_LR, car.NSM_RR)
End Get
End Property
#End Region
#Region "SM"
Public ReadOnly Property SM As Double
Get
Return CalculateSM(car.TotalMass, car.NSM_LF, car.NSM_RF, car.NSM_LR, car.NSM_RR)
End Get
End Property
Public ReadOnly Property SMCenterOfGravityHeight As Double
Get
Return CalculateSMCenterOfgravityHeight(SM, car.TotalMass, car.NSM_LF, car.NSM_RF, car.NSM_LR, car.NSM_RR,
car.NSMCenterOfGravityHeight_LF, car.NSMCenterOfGravityHeight_RF,
car.NSMCenterOfGravityHeight_LR, car.NSMCenterOfGravityHeight_RR,
car.TotalMassCenterOfGravityHeight)
End Get
End Property
Public ReadOnly Property SMWeightDistribution As Double
Get
Return CalculateSMWeightDistribution(car.TotalMass, car.TotalMassWeightDistribution,
car.NSM_LF, car.NSM_RF, car.NSM_LR, car.NSM_RR,
NSMWeightDistribution, SM)
End Get
End Property
#End Region
#Region "Moment arm in Roll"
Public ReadOnly Property MomentArmInRoll_Front As Double
Get
Return CalculateMomentArmInRollPerAxle(SMCenterOfGravityHeight, car.RollCenterHeight_Front)
End Get
End Property
Public ReadOnly Property MomentArmInRoll_Rear As Double
Get
Return CalculateMomentArmInRollPerAxle(SMCenterOfGravityHeight, car.RollCenterHeight_Rear)
End Get
End Property
Public ReadOnly Property MomentArmInRoll_Average As Double
Get
Return CalculateMomentArmInRollAverage(car.WheelBase_Right, car.WheelBase_Left, SMWeightDistribution,
car.RollCenterHeight_Front, car.RollCenterHeight_Rear, SMCenterOfGravityHeight)
End Get
End Property
#End Region
#Region "Moment arm in Pitch"
Public ReadOnly Property MomentArmInPitch_Left As Double
Get
Return CalculateMomentArmInPitchPerAxle(SMCenterOfGravityHeight, car.PitchCenterHeight_Left)
End Get
End Property
Public ReadOnly Property MomentArmInPitch_Right As Double
Get
Return CalculateMomentArmInPitchPerAxle(SMCenterOfGravityHeight, car.PitchCenterHeight_Right)
End Get
End Property
Public ReadOnly Property MomentArmInPitch_Average As Double
Get
Return CalculateMomentArmInPitchAverage(SMCenterOfGravityHeight, car.PitchCenterHeight_Average)
End Get
End Property
#End Region
#Region "Frequency"
Public ReadOnly Property NSMFrequency_LF As Double
Get
Return CalculateNSMFrequency(car.TireStiffness_LF, car.NSM_LF)
End Get
End Property
Public ReadOnly Property NSMFrequency_RF As Double
Get
Return CalculateNSMFrequency(car.TireStiffness_RF, car.NSM_RF)
End Get
End Property
Public ReadOnly Property NSMFrequency_LR As Double
Get
Return CalculateNSMFrequency(car.TireStiffness_LR, car.NSM_LR)
End Get
End Property
Public ReadOnly Property NSMFrequency_RR As Double
Get
Return CalculateNSMFrequency(car.TireStiffness_RR, car.NSM_RR)
End Get
End Property
Public ReadOnly Property NSMCriticalDamping_LF As Double
Get
Return CalculateNSMCriticalDamping(car.TireStiffness_LF, car.NSM_LF)
End Get
End Property
Public ReadOnly Property NSMCriticalDamping_RF As Double
Get
Return CalculateNSMCriticalDamping(car.TireStiffness_RF, car.NSM_RF)
End Get
End Property
Public ReadOnly Property NSMCriticalDamping_LR As Double
Get
Return CalculateNSMCriticalDamping(car.TireStiffness_LR, car.NSM_LR)
End Get
End Property
Public ReadOnly Property NSMCriticalDamping_RR As Double
Get
Return CalculateNSMCriticalDamping(car.TireStiffness_RR, car.NSM_RR)
End Get
End Property
Public ReadOnly Property SMFrequency_LF As Double
Get
Return CalculateSMFrequency(car.TireStiffness_LF, car.SpringStiffness_LF,
car.SpringMotionRatio_LF, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMFrequency_RF As Double
Get
Return CalculateSMFrequency(car.TireStiffness_RF, car.SpringStiffness_RF,
car.SpringMotionRatio_RF, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMFrequency_LR As Double
Get
Return CalculateSMFrequency(car.TireStiffness_LR, car.SpringStiffness_LR,
car.SpringMotionRatio_LR, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMFrequency_RR As Double
Get
Return CalculateSMFrequency(car.TireStiffness_RR, car.SpringStiffness_RR,
car.SpringMotionRatio_RR, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMCriticalDamping_LF As Double
Get
Return CalculateSMCriticalDamping(car.TireStiffness_LF, car.SpringStiffness_LF,
car.SpringMotionRatio_LF, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMCriticalDamping_RF As Double
Get
Return CalculateSMCriticalDamping(car.TireStiffness_RF, car.SpringStiffness_RF,
car.SpringMotionRatio_RF, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMCriticalDamping_LR As Double
Get
Return CalculateSMCriticalDamping(car.TireStiffness_LR, car.SpringStiffness_LR,
car.SpringMotionRatio_LR, SM, SMWeightDistribution)
End Get
End Property
Public ReadOnly Property SMCriticalDamping_RR As Double
Get
Return CalculateSMCriticalDamping(car.TireStiffness_RR, car.SpringStiffness_RR,
car.SpringMotionRatio_RR, SM, SMWeightDistribution)
End Get
End Property
#End Region
#Region "Wheel rate"
Public ReadOnly Property WheelRate_LF As Double
Get
Return CalculateWheelRate(car.SpringStiffness_LF, car.SpringMotionRatio_LF, car.TireStiffness_LF)
End Get
End Property
Public ReadOnly Property WheelRate_RF As Double
Get
Return CalculateWheelRate(car.SpringStiffness_RF, car.SpringMotionRatio_RF, car.TireStiffness_RF)
End Get
End Property
Public ReadOnly Property WheelRate_LR As Double
Get
Return CalculateWheelRate(car.SpringStiffness_LR, car.SpringMotionRatio_LR, car.TireStiffness_LR)
End Get
End Property
Public ReadOnly Property WheelRate_RR As Double
Get
Return CalculateWheelRate(car.SpringStiffness_RR, car.SpringMotionRatio_RR, car.TireStiffness_RR)
End Get
End Property
#End Region
#Region "Roll moment for 1 g "
Public ReadOnly Property RollMoment_Front As Double
Get
Return CalculateRollMomentPerAxle(SM, SMWeightDistribution, MomentArmInRoll_Front)
End Get
End Property
Public ReadOnly Property RollMoment_Rear As Double
Get
Return CalculateRollMomentPerAxle(SM, (1 - SMWeightDistribution), MomentArmInRoll_Rear)
End Get
End Property
Public ReadOnly Property RollMoment_Average As Double
Get
Return CalculateRollMomentAverage(SM, MomentArmInRoll_Average)
End Get
End Property
#End Region
#Region "Pitch moment for 1 g"
Public ReadOnly Property PitchMoment_Right As Double
Get
Return CalculatePitchMomentPerSide(SM, MomentArmInPitch_Right)
End Get
End Property
Public ReadOnly Property PitchMoment_Left As Double
Get
Return CalculatePitchMomentPerSide(SM, MomentArmInPitch_Left)
End Get
End Property
Public ReadOnly Property PitchMoment_Average As Double
Get
Return CalculatePitchMomentAverage(SM, MomentArmInPitch_Average)
End Get
End Property
#End Region
#Region "Anti roll torque"
Public ReadOnly Property AntiRollTorqueFromSpring_Front As Double
Get
Return CalculateAntiRollTorqueFromSpring(WheelRate_LF, WheelRate_RF, car.HalfTrack_LF, car.HalfTrack_RF, MomentArmInRoll_Front)
End Get
End Property
Public ReadOnly Property AntiRollTorqueFromSpring_Rear As Double
Get
Return CalculateAntiRollTorqueFromSpring(WheelRate_LR, WheelRate_RR, car.HalfTrack_LR, car.HalfTrack_RR, MomentArmInRoll_Rear)
End Get
End Property
Public ReadOnly Property AntiRollTorqueFromARB_Front As Double
Get
Return CalculateAntiRollTorqueFromARB(car.ARBStiffness_Front, car.ARBMotionRatio_Front)
End Get
End Property
Public ReadOnly Property AntiRollTorqueFromARB_Rear As Double
Get
Return CalculateAntiRollTorqueFromARB(car.ARBStiffness_Rear, car.ARBMotionRatio_Rear)
End Get
End Property
Public ReadOnly Property AntiRollTorqueTotal_Front As Double
Get
Return AntiRollTorqueFromSpring_Front + AntiRollTorqueFromARB_Front
End Get
End Property
Public ReadOnly Property AntiRollTorqueTotal_Rear As Double
Get
Return AntiRollTorqueFromSpring_Rear + AntiRollTorqueFromARB_Rear
End Get
End Property
Public ReadOnly Property AntiRollTorque_Average As Double
Get
Return AntiRollTorqueTotal_Front + AntiRollTorqueTotal_Rear
End Get
End Property
#End Region
#Region "Elastic weight transfer in roll for 1 lat g"
Public ReadOnly Property SMElasticWeightTransferInRoll_Front As Double
Get
Return CalculateElasticWeightTransferInRoll(SM, MomentArmInRoll_Front, RollMoment_Front, RollMoment_Average, car.HalfTrack_LF, car.HalfTrack_RF)
End Get
End Property
Public ReadOnly Property SMElasticWeightTransferInRoll_Rear As Double
Get
Return CalculateElasticWeightTransferInRoll(SM, MomentArmInRoll_Rear, RollMoment_Rear, RollMoment_Average, car.HalfTrack_LR, car.HalfTrack_RR)
End Get
End Property
#End Region
#Region "Anti pitch torque"
Public ReadOnly Property AntiPitchTorque_Right As Double
Get
Return CalculateAntiPitchTorque(car.WheelBase_Right, car.PitchCenterLongitudinalPosition_Right, WheelRate_RF, WheelRate_RR)
End Get
End Property
Public ReadOnly Property AntiPitchTorque_Left As Double
Get
Return CalculateAntiPitchTorque(car.WheelBase_Left, car.PitchCenterLongitudinalPosition_Left, WheelRate_LF, WheelRate_LR)
End Get
End Property
Public ReadOnly Property AntiPitchTorque_Average As Double
Get
Return AntiPitchTorque_Left + AntiPitchTorque_Right
End Get
End Property
#End Region
#Region "Elastic weight transfer in pitch for 1 long g"
Public ReadOnly Property SMElasticWeightTransferInPitch_Right As Double
Get
Return CalculateElasticWeighttransferInPitch(SM, MomentArmInPitch_Right, PitchMoment_Right, PitchMoment_Average, car.WheelBase_Right)
End Get
End Property
Public ReadOnly Property SMElasticWeightTransferInPitch_Left As Double
Get
Return CalculateElasticWeighttransferInPitch(SM, MomentArmInPitch_Left, PitchMoment_Left, PitchMoment_Average, car.WheelBase_Left)
End Get
End Property
#End Region
#End Region
#Region "Methods"
#Region "NSM distribution [ratio] 0<X<1"
Private Function CalculateNSMWeightDistribution(ByVal p_NSM_LF As Double, ByVal p_NSM_RF As Double,
ByVal p_NSM_LR As Double, ByVal p_NSM_RR As Double) As Double
Return (p_NSM_LF + p_NSM_RF) / (p_NSM_LF + p_NSM_RF + p_NSM_LR + p_NSM_RR)
End Function
#End Region
#Region "Wheel Rate"
Private Function CalculateWheelRate(ByVal p_SpringStiffness As Double, ByVal p_SpringMotionRatio As Double, ByVal p_TireStiffness As Double) As Double '[N/mm]
Return ((p_SpringStiffness / p_SpringMotionRatio ^ 2) * p_TireStiffness) / ((p_SpringStiffness / p_SpringMotionRatio ^ 2) + p_TireStiffness)
End Function
#End Region
#Region "Frequency"
Private Function CalculateSMCriticalDamping(ByVal p_TireStiffness As Double, ByVal p_SpringStiffness As Double, ByVal p_SpringMotionRatio As Double,
ByVal p_SM As Double, ByVal p_SMWeightDistribution As Double) As Double
If p_TireStiffness = car.TireStiffness_LF Or p_TireStiffness = car.TireStiffness_RF Then 'This condition is to choose (1-weight distribution) instead of (weight distribution)
Return 2 * Sqrt(((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) * p_TireStiffness * 1000) /
((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) + p_TireStiffness * 1000) * (p_SM * p_SMWeightDistribution / 100) / 2)
Else
Return 2 * Sqrt(((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) * p_TireStiffness * 1000) /
((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) + p_TireStiffness * 1000) * (p_SM * (1 - p_SMWeightDistribution) / 100) / 2)
End If
End Function
Private Function CalculateSMFrequency(ByVal p_TireStiffness As Double, ByVal p_SpringStiffness As Double, ByVal p_SpringMotionRatio As Double,
ByVal p_SM As Double, ByVal p_SMWeightDistribution As Double) As Double
If p_TireStiffness = car.TireStiffness_LF Or p_TireStiffness = car.TireStiffness_LF Then 'This condition is to choose (1-weight distribution) instead of (weight distribution)
Return 1 / (2 * PI) * Sqrt(((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) * p_TireStiffness * 1000) /
((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) + p_TireStiffness * 1000) / ((p_SM * p_SMWeightDistribution / 100) / 2))
Else
Return 1 / (2 * PI) * Sqrt(((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) * p_TireStiffness * 1000) /
((p_SpringStiffness * 1000 / p_SpringMotionRatio ^ 2) + p_TireStiffness * 1000) / ((p_SM * (1 - p_SMWeightDistribution) / 100) / 2))
End If
End Function
Private Function CalculateNSMCriticalDamping(ByVal p_TireStiffness As Double, ByVal p_NSM As Double) As Double
Return 2 * Sqrt(p_TireStiffness * 1000 * p_NSM)
End Function
Private Function CalculateNSMFrequency(ByVal p_TireStiffness As Double, ByVal p_NSM As Double) As Double
Return 1 / (2 * PI) * (Sqrt(p_TireStiffness * 1000) / p_NSM)
End Function
#End Region
#Region "Suspended mass"
'Private Function CalculateSM(ByVal p_TotalMass As Double, ByVal p_NSM_LF As Double, ByVal p_NSM_RF As Double,
' ByVal p_NSM_LR As Double, ByVal p_NSM_RR As Double) As Double
' Return p_TotalMass - (p_NSM_LF + p_NSM_RF + p_NSM_LR + p_NSM_RR)
'End Function
Private Function CalculateSM(ByVal p_TotalMass As Double, ByVal p_NSM_LF As Double, ByVal p_NSM_RF As Double,
ByVal p_NSM_LR As Double, ByVal p_NSM_RR As Double) As Double
Return car.TotalMass - (car.NSM_LF + car.NSM_RF + car.NSM_LR + car.NSM_RR)
End Function
Private Function CalculateSMWeightDistribution(ByVal p_TotalMass As Double, ByVal p_TotalMassWeightDistribution As Double, ByVal p_NSM_LF As Double, ByVal p_NSM_RF As Double,
ByVal p_NSM_LR As Double, ByVal p_NSM_RR As Double, ByVal p_NSMWeightDistribution As Double, ByVal p_SM As Double) As Double
Return (p_TotalMass * p_NSMWeightDistribution - (p_NSM_LF + p_NSM_LR + p_NSM_RF + p_NSM_RR) * p_NSMWeightDistribution) / p_SM
End Function
Private Function CalculateSMCenterOfgravityHeight(ByVal p_SM As Double, ByVal p_TotalMass As Double, ByVal p_NSM_LF As Double,
ByVal p_NSM_RF As Double, ByVal p_NSM_LR As Double, ByVal p_NSM_RR As Double,
ByVal p_NSMCenterOfGravityHeight_LF As Double, ByVal p_NSMCenterOfGravityHeight_LR As Double,
ByVal p_NSMCenterOfGravityHeight_RF As Double, ByVal p_NSMCenterOfGravityHeight_RR As Double,
ByVal p_TotalMassCenterOfGravityHeight As Double) As Double
Return ((p_TotalMass * p_TotalMassCenterOfGravityHeight) - (p_NSM_LF * p_NSMCenterOfGravityHeight_LF +
p_NSM_RF * p_NSMCenterOfGravityHeight_RF +
p_NSM_LR * p_NSMCenterOfGravityHeight_LR +
p_NSM_RR * p_NSMCenterOfGravityHeight_RR)) / p_SM
End Function
#End Region
#Region "Moment arm in roll"
Private Function CalculateMomentArmInRollPerAxle(ByVal p_SMCenterOfGravityHeight As Double, ByVal p_RollCenterHeight As Double) As Double
Return p_SMCenterOfGravityHeight - p_RollCenterHeight
End Function
Private Function CalculateMomentArmInRollAverage(ByVal p_WheelBase_Right As Double, ByVal p_WheelBase_Left As Double,
ByVal p_SMWeightDistribution As Double, ByVal p_RollCenterHeight_Front As Double,
ByVal p_RollCenterHeight_Rear As Double, ByVal p_SMCenterOfGravityHeight As Double) As Double
Return p_SMCenterOfGravityHeight - ((p_RollCenterHeight_Rear - p_RollCenterHeight_Front) /
((p_WheelBase_Left + p_WheelBase_Right) / 2) * (1 - p_SMWeightDistribution)) +
p_RollCenterHeight_Front
End Function
#End Region
#Region "Roll moment"
Private Function CalculateRollMomentPerAxle(ByVal p_SM As Double, ByVal p_SMWeightDistribution As Double, ByVal p_MomentArmPerAxle As Double) As Double
Return p_SM * p_SMWeightDistribution * g * p_MomentArmPerAxle
End Function
Private Function CalculateRollMomentAverage(ByVal p_SM As Double, ByVal p_MomentArmAverage As Double) As Double
Return p_SM * g * p_MomentArmAverage
End Function
#End Region
#Region "Anti roll torque"
Private Function CalculateAntiRollTorqueFromSpring(ByVal p_WheelRate_1 As Double, ByVal p_WheelRate_2 As Double, ByVal p_HalfTrack_1 As Double,
ByVal p_HalfTrack_2 As Double, ByVal p_MomentArmPerAxle As Double) As Double
Return ((p_HalfTrack_1 / 1000) ^ 2 * Tan(rad(1)) * p_WheelRate_1 * 1000) +
((p_HalfTrack_2 / 1000) ^ 2 * Tan(rad(1)) * p_WheelRate_2 * 1000) '[N.m/deg or roll]
End Function
Private Function CalculateAntiRollTorqueFromARB(ByVal p_ARBStiffness As Double, ByVal p_ARBMotionRatio As Double) As Double
Return p_ARBStiffness / p_ARBMotionRatio ^ 2
End Function
#End Region
#Region "Elastic weight transfer in roll"
Private Function CalculateElasticWeightTransferInRoll(ByVal p_SM As Double, ByVal p_MomentArmPerAxle As Double, ByVal p_RollMomentPerAxle As Double,
ByVal p_RollMomentTotal As Double, ByVal p_HalfTrack_1 As Double, ByVal p_HalfTrack_2 As Double) As Double
Return (p_SM * p_MomentArmPerAxle * (p_RollMomentPerAxle / p_RollMomentTotal)) / (p_HalfTrack_1 + p_HalfTrack_2)
End Function
#End Region
#Region "Moment arm in pitch"
Private Function CalculateMomentArmInPitchPerAxle(ByVal p_SMCenterOfgravityHeight As Double, ByVal p_PitchCenterHeightPerSide As Double) As Double
Return p_PitchCenterHeightPerSide - p_SMCenterOfgravityHeight
End Function
Private Function CalculateMomentArmInPitchAverage(ByVal p_SMCenterOfgravityHeight As Double, ByVal p_PitchCenterHeightAverage As Double) As Double
Return p_PitchCenterHeightAverage - p_SMCenterOfgravityHeight
End Function
#End Region
#Region "Pitch moment"
Private Function CalculatePitchMomentPerSide(ByVal p_SM As Double, ByVal p_MomentArmPerSide As Double) As Double
Return p_SM / 2 * g * p_MomentArmPerSide
End Function
Private Function CalculatePitchMomentAverage(ByVal p_SM As Double, ByVal p_MomentArmAverage As Double) As Double
Return p_SM * g * p_MomentArmAverage
End Function
#End Region
#Region "Anti pitch torque"
Private Function CalculateAntiPitchTorque(ByVal p_WheelBasePerSide As Double, ByVal p_PitchCenterLongitudinalPositionPerSide As Double,
ByVal p_WheelRate_Front As Double, ByVal p_WheelRate_Rear As Double) As Double 'Anti pitch torque (per side) per deg
Return (p_PitchCenterLongitudinalPositionPerSide / 1000 * Tan(rad(1)) * p_WheelRate_Front * 1000 * p_PitchCenterLongitudinalPositionPerSide) +
((p_WheelBasePerSide - p_PitchCenterLongitudinalPositionPerSide) * Tan(rad(1)) * p_WheelRate_Rear * 1000 * (p_WheelBasePerSide - p_PitchCenterLongitudinalPositionPerSide))
End Function
#End Region
#Region "Elastic weight transfer in pitch"
Private Function CalculateElasticWeighttransferInPitch(ByVal p_SM As Double, ByVal p_MomentArmInPitchPerSide As Double, ByVal p_PitchMomentPerSide As Double,
ByVal p_PitchMomentAverage As Double, ByVal p_WheelBasePerSide As Double) As Double
Return (p_SM * p_MomentArmInPitchPerSide * (p_PitchMomentPerSide / p_PitchMomentAverage)) / (p_WheelBasePerSide)
End Function
#End Region
#End Region
End Class
End Namespace |
Partager