Challenge

Week-4 Challenge WOT Condition Part-2

1. What is the difference between a mapped and dynamic model of an engine, motor, and generator? How can you change the model type?

The terms "mapped" and "dynamic" refer to different approaches or methodologies used in modeling engines, motors, and generators in the context of vehicle simulation and analysis. Here’s an explanation of each type and how you can change between them:

### Mapped Model:

1. **Definition**: A mapped model (also known as a lookup table or map-based model) uses predefined maps or tables to represent the performance characteristics of the engine, motor, or generator.

2. **Characteristics**:

**Lookup Tables**: Performance parameters such as torque, power, efficiency, and fuel consumption are precomputed and stored in tables or maps.

**Interpolation**: During simulation, values are interpolated from these tables based on operating conditions such as engine speed (RPM) and torque.

**Advantages**: Fast computation since it involves direct lookup operations. It is suitable for steady-state and certain transient simulations where the behavior is well-defined by the mapped data.

3. **Usage**: Mapped models are commonly used in automotive simulation software for initial design evaluations, parametric studies, and optimization tasks.

### Dynamic Model:

1. Definition: A dynamic model simulates the physical processes and interactions within the engine, motor, or generator using mathematical equations and physics-based principles.

2. **Characteristics**:

**Physics-Based**: Detailed models incorporating thermodynamics, fluid dynamics, electromagnetics, and mechanical dynamics.

**Transient Behavior**: Captures dynamic responses such as acceleration, deceleration, torque ripple, thermal effects, and other transient phenomena.

**Computational Intensity**: Requires more computational resources compared to mapped models due to solving differential equations and complex simulations.

3. **Usage**: Dynamic models are essential for detailed performance analysis, control algorithm development, real-time simulations, and studying transient behaviors that mapped models may not fully capture.

### Changing Model Types:

Changing between mapped and dynamic models typically involves software settings or parameters within the simulation environment or modeling tool you are using. Here’s how you might change the model type:

1. Software Interface: Most simulation tools have a user interface where you can select the type of model for components like engines, motors, or generators.

2. Model Configuration: Look for configuration options related to the component model. There may be settings to switch between mapped or lookup table-based models and dynamic or physics-based models.

3. **Model Parameters**: Depending on the tool, you may need to specify or adjust parameters such as tables/maps for mapped models or differential equations and physical parameters for dynamic models.

4. Simulation Setup: Ensure that your simulation setup and input data (such as maps for mapped models or physical parameters for dynamic models) are correctly defined and consistent with the selected model type.

2. How does the model calculate miles per gallon? Which factors are considered to model fuel flow?

The calculation of miles per gallon (mpg) in a vehicle model involves several factors related to fuel consumption and vehicle performance. Here’s a breakdown of how mpg is typically calculated and the factors considered to model fuel flow:

### Calculation of Miles Per Gallon (mpg):

1. Fuel Consumption Rate: The fundamental metric for mpg calculation is the rate at which fuel is consumed by the engine. This rate is usually expressed in terms of fuel flow (e.g., liters per hour or gallons per hour).

2. **Distance Traveled**: The distance the vehicle travels over a specific period is crucial. In mpg calculations, this is typically converted to miles.

3. **Conversion Factor**: To convert fuel consumption rate to mpg, the fuel flow rate (in gallons per hour, for instance) is divided by the distance traveled (in miles) during the same time period.

4. **Normalization**: For consistency, mpg calculations often normalize to a standardized driving cycle or condition (e.g., highway driving, city driving) to provide a comparable figure across different vehicles and conditions.

### Factors Considered in Modeling Fuel Flow:

The model considers several key factors to accurately simulate fuel flow in a vehicle:

1. **Engine Load**: Fuel consumption varies with the engine load, which depends on factors such as throttle position, vehicle speed, and road gradient.

2. **Engine Efficiency**: The efficiency of the engine in converting fuel energy to mechanical energy affects fuel consumption. This efficiency can vary based on operating conditions (e.g., RPM, temperature).

3. Vehicle Speed: Higher speeds generally result in higher fuel consumption due to increased air resistance (aerodynamic drag).

4. Driving Conditions: Stop-and-go traffic versus steady-state driving affects fuel consumption differently. Models may account for idling, acceleration, and deceleration patterns.

5. Vehicle Weight and Aerodynamics: Heavier vehicles and those with less aerodynamic designs typically consume more fuel.

6. Transmission and Gear Ratios: The efficiency and gear selection of the transmission impact fuel consumption, especially during acceleration and cruising.

7. Environmental Factors: Temperature, altitude, and humidity can affect fuel combustion efficiency and, thus, fuel consumption.

### Modeling Approaches:

**Lookup Tables**: Mapped models use lookup tables that relate fuel flow to engine speed, load, and other parameters based on empirical data or manufacturer specifications.

**Physics-Based Models**: Dynamic models simulate fuel flow based on detailed physical equations that account for combustion dynamics, thermodynamics, and engine operation principles.

### Conclusion:

The calculation of mpg in vehicle models relies on accurately modeling fuel consumption, which is influenced by factors such as engine load, efficiency, vehicle speed, driving conditions, and environmental variables. The model uses either empirical data (mapped models) or physical principles (dynamic models) to simulate fuel flow and compute mpg, providing insights into the vehicle's fuel efficiency under different operating scenarios.

3. Run the HEV Reference Application with the WOT drive cycle. Change the grade and wind velocity in the environment block. Comment on the results.

To run the HEV (Hybrid Electric Vehicle) ReferenceApplication with a WOT (Wide Open Throttle) drive cycle and modify the grade and wind velocity in the environment block, you'll typically follow these steps in MATLAB/Simulink. The detailed steps and the commentary on the results are given below.

### Steps:

1. Open the HEV Reference Application:

In MATLAB, open the HEV model by typing:

```matlab

hev_start

```

2. Load the WOT Drive Cycle:

Change the drive cycle to WOT in the HEV ReferenceApplication. You can do this by setting the `Drive Cycle Source` block to `WOT` in the model workspace.

3. **Modify the Environment Block:**

Open the environment block in the HEV ReferenceApplication.

Change the grade (road incline) and wind velocity parameters to the desired values.

4. **Run the Simulation:**

- Run the simulation and observe the results in the `Simulink` model.

### Example Code and Commands:

matlab

% Open HEV reference application

hev_start;

% Load the WOT drive cycle

set_param('HEV_referenceApplication/Drive Cycle Source', 'Value', 'WOT');

% Open the environment block to modify parameters

open_system('HEV_referenceApplication/Environment');

% Change grade and wind velocity

set_param('HEV_referenceApplication/Environment', 'Grade', '0.05'); % 5% grade

set_param('HEV_referenceApplication/Environment', 'WindVelocity', '10'); % 10 m/s wind velocity

% Run the simulation

sim('HEV_referenceApplication');

Commentary on Results:

When you run the HEV ReferenceApplication with a WOT drive cycle and modify the grade and wind velocity, you can observe the following effects:

1. Impact of Grade:

**Increased Grade:** When you increase the road grade (positive incline), the vehicle faces more resistance due to gravity. This usually results in higher power demand from the drivetrain to maintain the same speed, leading to increased fuel consumption and potentially reduced battery charge (if using electric assist).

**Decreased Grade or Negative Grade:** A lower grade or a negative grade (downhill) reduces the resistance, potentially allowing for regenerative braking, which can recharge the battery and reduce fuel consumption.

2. Impact of Wind Velocity:

- **Headwind:** An increase in wind velocity opposing the direction of travel (headwind) increases aerodynamic drag on the vehicle. This results in higher power requirements to overcome the additional resistance, leading to higher fuel consumption and increased use of the electric motor.

- **Tailwind:** A wind velocity aiding the direction of travel (tailwind) reduces aerodynamic drag. This can lead to lower power requirements, reduced fuel consumption, and less strain on the electric motor.

### Detailed Analysis:

**Battery State of Charge (SOC):** The battery SOC will show different trends based on the grade and wind conditions. With higher grade and headwinds, the SOC will decrease faster due to higher power demand. Conversely, with lower grade or tailwinds, the SOC may decrease slower or even increase if regenerative braking is employed.

Fuel Consumption: Fuel consumption trends will also vary. Higher grades and headwinds increase fuel consumption due to higher engine load, while lower grades and tailwinds can decrease fuel consumption.

**Vehicle Speed:** Depending on the grade and wind conditions, the vehicle may struggle to maintain the desired speed, especially under a WOT condition where the engine and motor are pushed to their limits.

### Summary:

Changing the grade and wind velocity in the HEV ReferenceApplication with a WOT drive cycle demonstrates the dynamic response of the vehicle to varying environmental conditions. The simulation results can provide insights into efficiency, powertrain performance, and energy consumption under different driving scenarios, which are critical for designing and optimizing hybrid electric vehicles.

4. Keeping all other parameters same, compare the simulated results of hybrid and pure electric powertrains.

To compare the simulated results of hybrid and pure electric powertrains while keeping all other parameters the same, follow these steps in MATLAB/Simulink using the HEV ReferenceApplication. This involves setting up two simulations: one for the hybrid powertrain and one for the pure electric powertrain. We'll then compare the results in terms of battery State of Charge (SOC), fuel consumption, vehicle speed, and power demand.

### Steps:

1. Set Up the Hybrid Powertrain Simulation:**

Open the HEV ReferenceApplication.

Ensure the powertrain is set to the hybrid configuration.

load the WOT drive cycle.

Set the environment parameters (grade and wind velocity).

Run the simulation and save the results.

2. Set up the pure electric powertrain simulation:

Modify the HEV Reference Application to use a pure electric powertrain.

Load the WOT drive cycle.

Set the environment parameters (same as in the hybrid setup).

Run the simulation and save the results.

3. Compare the Results:

Analyze the key metrics such as battery SOC, fuel consumption, vehicle speed, and power demand for both configurations.

Example MATLAB Commands:

matlab

% Open HEV reference application

hev_start;

% Set up the hybrid powertrain

set_param('HEV_referenceApplication/Powertrain', 'Value', 'Hybrid');

% Load the WOT drive cycle

set_param('HEV_referenceApplication/Drive Cycle Source', 'Value', 'WOT');

% Set environment parameters

set_param('HEV_referenceApplication/Environment', 'Grade', '0.05'); % 5% grade

set_param('HEV_referenceApplication/Environment', 'WindVelocity', '10'); % 10 m/s wind velocity

% Run the hybrid simulation

simOutHybrid = sim('HEV_referenceApplication');

% Extract results

time_hybrid = simOutHybrid.get('tout');

batterySOC_hybrid = simOutHybrid.get('yout').getElement('batterySOC').Values.Data;

fuelConsumption_hybrid = simOutHybrid.get('yout').getElement('fuelConsumption').Values.Data;

vehicleSpeed_hybrid = simOutHybrid.get('yout').getElement('vehicleSpeed').Values.Data;

% Set up the pure electric powertrain

set_param('HEV_referenceApplication/Powertrain', 'Value', 'Electric');

% Run the electric simulation

simOutElectric = sim('HEV_referenceApplication');

% Extract results

time_electric = simOutElectric.get('tout');

batterySOC_electric = simOutElectric.get('yout').getElement('batterySOC').Values.Data;

fuelConsumption_electric = simOutElectric.get('yout').getElement('fuelConsumption').Values.Data;

vehicleSpeed_electric = simOutElectric.get('yout').getElement('vehicleSpeed').Values.Data;

% Compare the results

figure;

subplot(3,1,1);

plot(time_hybrid, batterySOC_hybrid, time_electric, batterySOC_electric);

legend('Hybrid', 'Electric');

title('Battery SOC');

xlabel('Time (s)');

ylabel('SOC (%)');

subplot(3,1,2);

plot(time_hybrid, fuelConsumption_hybrid, time_electric, fuelConsumption_electric);

legend('Hybrid', 'Electric');

title('Fuel Consumption');

xlabel('Time (s)');

ylabel('Fuel Consumption (L)');

subplot(3,1,3);

plot(time_hybrid, vehicleSpeed_hybrid, time_electric, vehicleSpeed_electric);

legend('Hybrid', 'Electric');

title('Vehicle Speed');

xlabel('Time (s)');

ylabel('Speed (m/s)');

```

### Commentary on Results:

1. Battery State of Charge (SOC):

Hybrid Powertrain:The battery SOC in a hybrid powertrain may decrease more slowly due to the support from the internal combustion engine (ICE). Regenerative braking and engine charging also help maintain the SOC.

pure Electric Powertrain: The battery SOC in a pure electric vehicle will decrease more rapidly, especially under WOT conditions, as there is no ICE to assist. The vehicle relies solely on the battery for power.

2. **Fuel Consumption:**

- **Hybrid Powertrain:** Fuel consumption will be present and can be analyzed over time. The ICE operates to provide additional power and to recharge the battery, leading to some fuel consumption.

- **Pure Electric Powertrain:** Fuel consumption will be zero as the vehicle operates purely on electric power. This is a significant advantage in terms of emissions and fuel costs.

3. **Vehicle Speed:**

- **Hybrid Powertrain:** The vehicle speed in a hybrid setup can be more stable and consistent, as the combined power of the ICE and electric motor can handle the WOT conditions effectively.

- **Pure Electric Powertrain:** The vehicle speed might be slightly lower or less stable under the same conditions, as the electric motor alone has to meet the power demands.

4. **Power Demand:**

- The power demand in both configurations under WOT conditions will be high. However, the way this demand is met differs. The hybrid configuration splits the demand between the ICE and the electric motor, while the pure electric configuration relies entirely on the battery and electric motor.

### Summary:

Running simulations for both hybrid and pure electric powertrains under the same conditions reveals the differences in performance, efficiency, and power management. Hybrid powertrains offer the benefit of extended range and potentially better performance under high load conditions due to the assistance from the ICE. Pure electric powertrains provide the advantage of zero fuel consumption and emissions but may have limitations in range and sustained high-power output.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.