手把手建立Simulink四分之一车辆模型/Building a quarter car model step by step!

-----------------------------------------------------------------------------------------------------------------------

This article is originally created by Dr. Goddard. And re-edited by the author

It is greatly appreciated for Dr. Goddard's outstanding work! see the following

http://www.modeling-simulation-visualization.com/simulink-quarter-car-model.html#actuatormodel

-----------------------------------------------------------------------------------------------------------------------

 

In this section, a quarter car model built in simulink is introduced for future research on vehicle dynamics.

Topic 1: tyre model

    Standard Pacejk magic formula is used here; where λ is the wheel slip, and the coefficientsa,b andc change depending on the current road surface. This example assumes that the vehicle is being driven on dry asphalt and hence the coefficients area = 1.28,b = 23.99 andc = 0.52.

 

The implmentation for the tire model equations is shown in Figure 2.

Tire Model Subsystem.

Figure 2: Tire Model Subsystem.

 

Topic 2: quarter car model

It contains two continuous time states, and is described by the set of non-linear equations inEquation 2.  

NameDescriptionValue
ωAngular SpeedOutput Signal
νLongitudinal SpeedOutput Signal
JInertia1 Kg m2
RWheel Radius0.32 m
TbBrake TorqueInput Signal
FxLongitudinal ForceCalculated
λLongitudinal Wheel SlipCalculated
FzVertical ForceCalculated
μxRoad Friction CoefficientCalculated
mQuarter Vehicle Mass450 Kg
gGravitational Force9.81 ms-2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The implementation of quarter car equations is shown in Figure 3.

Quarter Car Model Subsystem.

Figure 3: Quarter Car Model Subsystem.

TOPIC 3: The Actuator Model

Actuator dynamics, and particular time delays, are often critical to the design of a sufficiently accurate control algorithm. This example uses a simple first order lag in series with a time delay to model the actuator. (In practice a second order model is almost always required, and often actuators have different responses when they are opening and closing, and hence need to be modeled in considerable more detail than is done here.)

The model for the actuator are given by Equation 3,

Actuator Equation. 

 
Equation 3: Actuator Equation.

subject to the constraint that 0 < Tb < Tb_sat.

The following table lists the definition of the notation used in Equation 3.

NameDescriptionValue
τTime Delay0.05 s
aFilter Pole Location70
Tb_satSaturation4000

 
 
 
 
 
 
 
Table 2: Notation for the Actuator Model.

The implementation of actuator equations is shown in Figure 4.

Actuator Model Subsystem.

Figure 4: Actuator Model Subsystem.

Note that the first order lag (transfer function) has been implemented using an integrator, gain and summation/negation block rather than aTransfer Funtion Block (from theContinuous library).This has been done as the Transfer Function block does not allow vector signals as an input, but the current implementation does. Hence the model being developed can more easily be expanded to allow for 4-channels, i.e. one for each wheel on a four wheeled vehicle. A Transfer Function Block would preclude that from happening (without replacing the block).

TOPIC 5: The Controller Model

There are many different potential implementations for the controller. Here a simple PI (proportional–integral) controller has been shown to be adequate.

The implementation of controller is shown in Figure 5.

The Controller Subsystem.

Figure 5: The Controller Subsystem.

Note that the subsystem has been made atomic, and given a discrete sample rate ofTs = 5ms.

Controller gains that have been determined to work reasonably well for the configuration chosen here areKp = 1200 andKi = 100000.

  • 1
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
在MATLAB下使用Simulink来搭建一个单轮四分之一车辆模型可以通过以下步骤进行。 首先,打开MATLAB并启动Simulink。选择一个新的模型,并将其命名为“四分之一车辆模型”。 然后,从Simulink库中选择“信号生成器”模块,将其拖动到模型中。这个模块可以用来生成车辆的输入信号,如加速度或制动力。 接着,选择“传递函数”模块,将其拖动到模型中。这个模块可以用来表示车辆的动力学特性。将所有的车辆参数,如质量、阻力和摩擦力等都输入到传递函数中。 然后,选择“积分器”模块,将其拖动到模型中。这个模块可以用来计算车辆的速度和位置。 接下来,选择“显示器”模块,并将其与传递函数模块和积分器模块连接起来。这个模块可以用来显示模型的输出结果,如速度和位置。 最后,连接信号生成器、传递函数、积分器和显示器之间的信号路径。确保每个模块的输入和输出正确连接。 完成上述步骤后,您可以开始对模型进行仿真。点击Simulink模型窗口的“运行”按钮,就可以得到车辆的输出结果了。 通过Simulink搭建的单轮四分之一车辆模型可以用来研究车辆在不同输入和参数条件下的动力学特性,例如加速度和制动距离等。此外,您还可以进一步扩展模型,添加其他车辆的组件和特性,以实现更加完整和准确的车辆模拟。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值