assignemnt9
assignemnt9
ID: 22140511
ASSIGNMENT 9
This block defines the desired slip ratio (0.2 in this case) that the ABS controller tries to
maintain.
This block calculates the error between the desired slip and the actual slip.
3. Controller (ctrl)
This block processes the slip error and generates a control signal to adjust braking force.
Computes the force on the tire based on the mass and gravity.
Computes the wheel speed (Ww) and vehicle speed based on input torque.
Computes the relative slip based on vehicle speed and wheel speed.
Represents the output of the model, which includes wheel speed, vehicle speed, and stopping
distance.
- This block provides user-defined input signals such as Throttle and Brake.
- It simulates different driving scenarios and external inputs affecting vehicle behavior.
Engine Subsystem
- The Engine block calculates the engine speed (EngineRPM) based on throttle input.
Shift Logic
-This block determines the Gear selection based on Throttle position and Vehicle Speed.
Transmission System
- The Transmission block takes Ne (Engine Speed), Gear, and Nout (Output Speed) to generate
Output Torque.
Vehicle Dynamics
- This block simulates the vehicle's response to engine and transmission inputs.
It calculates Vehicle Speed and TransmissionRPM under different driving conditions.
PlotResults
- The output signals, such as Throttle Position, EngineRPM, and Vehicle Speed, are visualized
through this block.
Vehicle diagram
- FinalDriveRatio1 (Gain Block): Multiplies the input torque by a predefined ratio (Rfd) to adjust
for the final drive system.
- Summation Block: Computes the net torque acting on the vehicle wheels by combining drive
torque and resistive forces.
- VehicleInertia Block (1/Iv): Models the vehicle's resistance to acceleration, considering mass
and rotational inertia.
- WheelSpeedToLinearSpeed Block: Transforms angular wheel speed into linear vehicle speed
using wheel radius and other physical parameters.
- RoadLoad Function (f(u)): Models resistive forces acting on the vehicle, including
aerodynamic drag, rolling resistance, and road slope effects.
- Signed Load Computation: This block sums the vehicle’s motion dynamics with resistive
forces, providing a net force estimation.
- Multiplication Block (x): Multiplies the load effect by a factor to compute final resistive
influence on vehicle speed.
- BrakeTorque (Input 2): Represents the braking force applied to the system.
- Summation with Vehicle Inertia: Brake torque contributes to the reduction of wheel speed,
affecting overall vehicle deceleration.
Transmission
1. Engine Speed Input (Ne)
- Ne (Input 1): Represents the engine speed (RPM) provided as an input to the transmission
system.
- This input is crucial as it determines the rotational speed entering the transmission system.
2. Torque Converter
The TorqueConverter Block is responsible for:
- Converting engine torque into turbine torque.
- Providing smooth power delivery from the engine to the transmission by using fluid coupling.
- Allowing for torque multiplication, which improves vehicle acceleration at low speeds.
TurbineTorque Output: The converted torque is then passed into the transmission system.
5. Transmission Outputs
- Tout (Output 2): Represents the final output torque after gear ratio adjustments.
Shift logic
1. Gear State Transition (Top Section)
This section represents the gear selection mechanism in a vehicle.
Four Gear States:
First Gear (Gear = 1)
Second Gear (Gear = 2)
Third Gear (Gear = 3)
Fourth Gear (Gear = 4)
Gear Shifting Conditions:
UP Shift (Increasing Gear): Happens when the vehicle meets the upshift threshold (up_th).
DOWN Shift (Decreasing Gear): Happens when the vehicle meets the downshift threshold
(down_th).
Downshifting:
Occurs when VehicleSpeed < down_th.
The system prevents unnecessary shifts by introducing a delay (WAIT_Tick).
Engine
1. Inputs
- Ti (Torque Input): Represents the external torque (e.g., load or transmission resistance).
- Throttle (Throttle Input): Controls the amount of fuel/air mixture entering the engine, affecting
power output.
3. Torque Dynamics
Summation Block (∑):
- Computes the net torque acting on the engine by subtracting external torque Ti from engine-
generated torque.
EnginePlusImpellerInertia (1/Iei):
- Represents the combined inertia of the engine and impeller.
- Converts torque into angular acceleration (α = Torque / Inertia).
5. Output
Ne (Engine Speed in RPM):
- Represents the final engine rotational speed.
4. Outputs
-Tout (Torque Output to Drivetrain)
-Nin (Input Speed to Engine Side of Transmission)