软件使用的基础知识
主要以carsim2016
为例,也有carsim8.02
,区别不大,道理相通。
查看par
文件:
查看初始和结束状况的配置par
文件:
整个仿真环境车辆模型的初开始参数都在这个par
文件,各个悬架,车辆,工况等配置都在这里面。
同理此处也可以查看运行后的par
文件:
运行设计的模型:
运行模型之后,即点击Run Math Model
之后,会生成相应的BIN
文件和ERD
文件,PAR
文件是设计的配置文件。
后处理:
Carsim
菜单栏中File
:
database
相关:
导出cpr
文件,并通过导出的cpr
文件新建database
:
导出:
通过导出的cpr
文件新建database
:
选择导入的cpr
文件,为了便于说明,注意到此处的路径就是上面导出的cpr
文件:
可以在当前窗口中查看选中的cpr
文件,也可以新建一个窗口,在另一个窗口中进行查看:(此处选择在另一窗口中查看)
因为是从已经存在的cpr
文件来导入新建一个Database
,所以在想要保存的路径中新建相应的文件,然后选中,确定。
注意:此时导出的是原carsim
中自带的一个database
:
原carsim
的database
:
新建的database
:
同理,在当前路径中新建一个database
:
同理,选择保存的路径:
打开一个存在的database
:
然后就可以得到:
dataset
相关:
新建一个空的dataset
:
可以看到里面的工况设置,车辆配置等都是空的:
删除dataset
:
方式一:
方式二:
复制当前的dataset
以新建dataset
:
注意区分两者之间的关系:
新建dataset
(并拷贝所有相关的dataset
),并按照时间命名:(不建议这样做)
批量删除dataset
:
切换锁的状态:
导出导入相应的文件:
导出相应的cpr
文件:
见前。
导出相应的notes
文件:
打开保存的文件可以看到:
导入cpr
文件:
找到要导入的par
文件:
一般选择不覆盖之前的数据,新建一个类。OK
之后会看到导入的内容。
Carsim
菜单栏中Edit
:
修改dataset
的类或者Title
:
将dataset
的Title
由HuangTL001
改为HuangTL003
:
Carsim
菜单栏中Dataset
:
里面是设置的各种仿真工况。
Carsim
菜单栏中Libraries
:
Batch
选项:
Batch Matrix
选项:(对工况设置不同的参数进行对比)
运行Model
:
对比结果:
Batch Runs
选项:(对工况设置不同的参数进行对比)
为了说明,选择一个带ABS
和不带ABS
的进行对比:
对比结果:
Calculator
选项:
Control
选项:
Generic
选项:
外部文件(par
文件):
Generic Group Data
:
其他:
Carsim
菜单栏中Go To
:
Carsim
菜单栏中View
:
调整窗口中的大小,界面的设置等
Carsim
菜单栏中Tools
:
Library Tool
选项:
可以用来同时导出多个par
文件。
这样在保存的文件中就有上面选中的5
个par
文件。
VS/ERD File Utility
选项:
转换文件格式,可以将ERD
文件转换为其他格式,比如说CSV
或者Matlab
文件等。
选择matlab
版本:
Preference
选项:
设置Math Model
仿真时间,求解器类型等。
Carsim
菜单栏中Help
:
比如想要查找 Export Expanded Parsfiles
相关的内容:
其他:
车辆参数建模
一般选择此类:
以B
级车为例:
一般而言,不要在里面直接改,否则相关的全部会改变。可以Copy and Link Dataset
。
这样改变其中的设置不会影响其他的设置。
Vehicle Body
车体设置:
刚性弹跳质心(Rigid sprung mass
)选项:
空气动力学Aerodynamic
选项:
动画设置Animator Data
:
设置车的外观形状:
设置风的声音Wind noise
:
改变车辆图片:
在图片框内左键可以直接从剪贴板中将车辆图片粘贴到框中。
系统Systems
:
Powertrain
相关:
engine model
发动机模型:
外部动力源输入扭矩和转速:
内部动力源:(除了数值其余都一样)
发动机模型:3D
图:
打开Excel
版本:
可以通过修改行列数来进行修改,可以在Excel中添加,选中所要修改的行或者列,复制粘贴进行修改。
扭矩变换器(torque converter
):
其他一般不变,如有需要可以查看相应的文档。
制动系统(Brake System
)相关:
第一种:Brakes:Four-Wheel System
:
对于时变的而言,我们可以根据自己的需要自行进行设置:
第二种:Brakes:Four-Wheel System with Boost and Thermal Effects
:
双击进入后:
第一种:E-Class,Sean w/Temp.and Boost
:
助力动态特性的曲线如下:
第二种:E-Class,Sean w/Type A Ctrl
:A
型
第三种:E-Class,Sean w/Type B Ctrl
:B
型
与A
型同理。
转向系统(Steering System
):
四轮转向:
悬架(Suspension
):
一些要注意的问题:
- 输出
cpar
文件的时候,要注意,路径要用英文,不要用中文,否则可能输出失败。 - 同时输出多个
cpar
文件: Ind_Ind
表示是独立悬架。