Name | Description |
---|---|
Interfaces | Interface base classes for powertrains |
SimplePowerTrain | |
Differential | Differential gear box |
Name | Default | Description |
---|---|---|
k | 1 | Gain factor from accelerator angle to drive troque apply [Nm/rad] |
model SimplePowerTrain extends Interfaces.PowerTrain2WInterface; parameter Real k=1 "Gain factor from accelerator angle to drive troque apply [Nm/rad]"; Differential differential; Modelica.Mechanics.Rotational.Torque torque; Modelica.Mechanics.Rotational.Sensors.AngleSensor angleSensor; Modelica.Blocks.Math.Gain gain(k={k}); equation connect(torque.flange_b, differential.flange_engine); connect(gain.inPort, angleSensor.outPort); connect(gain.outPort, torque.inPort); connect(angleSensor.flange_a, flange_Long); connect(differential.flange_left, flange_1); connect(differential.flange_right, flange_2); end SimplePowerTrain;
The differential gear box is an ideal gear without inertia, splitting the driving torque of an engine into equal parts for two driven output flanges which usually drive the wheels of a vehicle. An optional gear ratio is supported (ratio > 1 means that the output flanges rotate slower than the engine flange). If inertia has to be considered, the gear inertias have to be added to the wheel shafts. If an efficiency factor should be considered, attach model Modelica.Mechanics.Rotational.GearEfficiency at flange_engine.
Release Notes:
Name | Default | Description |
---|---|---|
ratio | 1 | gear ratio |
model Differential "Differential gear box" parameter Real ratio=1 "gear ratio"; Modelica.Mechanics.Rotational.Interfaces.Flange_a flange_engine "Flange of engine"; Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_left "Left (wheel) flange"; Modelica.Mechanics.Rotational.Interfaces.Flange_b flange_right "right (wheel) flange"; equation flange_engine.phi = (flange_left.phi + flange_right.phi)*ratio/2; flange_left.tau = flange_right.tau; -ratio*flange_engine.tau = flange_left.tau + flange_right.tau; end Differential;