VirtualFCS.Vehicles.VehicleProfile

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;
QuantityDescription
mmass of the vehicle
VVehicle Speed
vSpeed of the vehicle in m/s
aVehicle acceleration
F_accelVehicle acceleration force
F_dragVehicle drag force
F_rollVehicle rolling force
F_TVehicle total force
xPosition

Parameters

NameTypeUnitDefaultDescription
VNString1"Default"Vehicle name
m_user_definedModelica.Units.SI.Masskg1000Mass of vehicle if user-defined
rho_airModelica.Units.SI.Densitykg/m31.2Volumic mass of the air
A_frontModelica.Units.SI.Aream22.7Front area of the vehicle
C_DModelica.Units.SI.CoefficientOfFriction-0.26Drag coefficient
D_tireModelica.Units.SI.Diameterm0.4318Tire Diameter
useRegenerativeBreakingBoolean1trueIf true, allows negative power duriing breaking.
eff_brakeModelica.Units.SI.Efficiency10.5Efficiency of the regenerative breaking

Interfaces and Connections

NameKindTypeUnitDescription
pin_pConnectionModelica.Electrical.Analog.Interfaces.PositivePinV; APositive electrical terminal
vehicleVelocityInput signalModelica.Blocks.Interfaces.RealInput-
pin_nConnectionModelica.Electrical.Analog.Interfaces.NegativePinV; ANegative electrical terminal