首页 理论教育ADAMS车辆工程案例仿真-系统单元创建状态变量

ADAMS车辆工程案例仿真-系统单元创建状态变量

【摘要】:单击Build >System Elements > State variable > New命令,弹出创建状态变量对话框,如图4-16所示;Name (状态变量名称):VAR_ENGINE_RPM;Definition:Run-Time Expression;F(time=0):ABS(wz(._my_engine.ges_crankshaft.jxs_joint_i_1,._my_engine

•单击Build >System Elements > State variable > New命令,弹出创建状态变量对话框,如图4-16所示;

•Name (状态变量名称):VAR_ENGINE_RPM;

•Definition:Run-Time Expression;

•F(time=0):ABS(wz(._my_engine.ges_crankshaft.jxs_joint_i_1,._my_engine.ges_engine_block.jxs_joint_j_1,._my_engine.ges_engine_block.jxs_joint_j_1)*60/(2*PI));状态变量函数的创建如图4-17所示,函数中所需的参数通过数据库Database Navigator在对应的部件下寻找,状态变量编写完成后单击Verify判定函数的正确性,如果正确单击OK完成函数编写,返回状态变量创建对话框;

图4-16 状态变量

图4-17 状态变量函数

•单击Apply,完成状态变量._my_engine.VAR_ENGINE_RPM的创建;

•Name (状态变量名称):VAR_ENGINE_OMEGA;

•Definition:Run-Time Expression;

•F(time=0):VARVAL(._my_engine.VAR_ENGINE_RPM)*PI/30;

•单击Apply,完成状态变量._my_engine.VAR_ENGINE_OMEGA的创建;

•Name (状态变量名称):VAR_max_driving_torque;

•Definition:Run-Time Expression;

•F(time=0):AKISPL(MAX(0,(._my_engine.convert_rpm)*VARVAL(._my_engine.ues_engine_torque.rpm_input)),1,._my_engine.ues_engine_torque.gss_spline);

•单击Apply,完成状态变量._my_engine.VAR_max_driving_torque的创建.

•Name(状态变量名称):VAR_ENGINE_RPM_SSE;

•Definition:Run-Time Expression;

•F(time=0):VARVAL(._my_engine.cis_transmission_output_omega_sse_adams_id)*._my_engine.cis_gear_ratio*30/PI;

•单击Apply,完成状态变量._my_engine.VAR_ENGINE_RPM_SSE的创建;

•Name(状态变量名称):VAR_max_braking_torque;

•Definition:Run-Time Expression;

•F(time=0):AKISPL(MAX(0,(._my_engine.convert_rpm)*VARVAL(._my_engine.ues_engine_torque.rpm_input)),0,._my_engine.ues_engine_torque.gss_spline);

•单击OK,完成状态变量._my_engine.VAR_max_braking_torque的创建。