Calculates the driving power for a vehicle that corresponds to a given speed profile.
Model Description and References
The VehicleProfile block is designed to replicate the power demand of a vehicle considering a pre-determined drive cycle and vehicle parameters such as weight and frontal area. The generated power profile considers the needs to propel the vehicle plus the aerodynamic drag. The block allows the user to select if regenerative breaking is used or not.
The block enables the user to select from standard testing drive cycles including WLTC Class 1-3 and NEDC. The drive cycles are provided as .mat files in the library directory containing the block.
Governing Equations
der(x) = v;
der(v) = a;
F_drag = 0.5*C_D*rho_air*v^2*A_front;
F_accel = m*a;
F_roll = 0.02*m*9.81;
F_T = F_drag + F_accel + F_roll;
P = F_T*v;
| Quantity | Description |
m | mass of the vehicle |
V | Vehicle Speed |
v | Speed of the vehicle in m/s |
a | Vehicle acceleration |
F_accel | Vehicle acceleration force |
F_drag | Vehicle drag force |
F_roll | Vehicle rolling force |
F_T | Vehicle total force |
x | Position |
Parameters
| Name | Type | Unit | Default | Description |
VN | String | 1 | "Default" | Vehicle name |
m_user_defined | Modelica.Units.SI.Mass | kg | 1000 | Mass of vehicle if user-defined |
rho_air | Modelica.Units.SI.Density | kg/m3 | 1.2 | Volumic mass of the air |
A_front | Modelica.Units.SI.Area | m2 | 2.7 | Front area of the vehicle |
C_D | Modelica.Units.SI.CoefficientOfFriction | - | 0.26 | Drag coefficient |
D_tire | Modelica.Units.SI.Diameter | m | 0.4318 | Tire Diameter |
useRegenerativeBreaking | Boolean | 1 | true | If true, allows negative power duriing breaking. |
eff_brake | Modelica.Units.SI.Efficiency | 1 | 0.5 | Efficiency of the regenerative breaking |
Interfaces and Connections
| Name | Kind | Type | Unit | Description |
pin_p | Connection | Modelica.Electrical.Analog.Interfaces.PositivePin | V; A | Positive electrical terminal |
vehicleVelocity | Input signal | Modelica.Blocks.Interfaces.RealInput | - | |
pin_n | Connection | Modelica.Electrical.Analog.Interfaces.NegativePin | V; A | Negative electrical terminal |