Professional Documents
Culture Documents
DOC13014 - Adams - 2021 - Training - 745 - Workbook
DOC13014 - Adams - 2021 - Training - 745 - Workbook
DOC13014 - Adams - 2021 - Training - 745 - Workbook
ADM745 Workshops
Legal Information
MSC Software Corporation reserves the right to make changes in specifications and other information contained in this document without prior notice. The
concepts, methods, and examples presented in this text are for illustrative and educational purposes only, and are not intended to be exhaustive or to apply to any
particular engineering problem or design. MSC Software Corporation assumes no liability or responsibility to any person or company for direct or indirect damages
resulting from the use of any information contained herein.
Copyright © 2020 MSC Software Corporation. All Rights Reserved. This notice shall be marked on any reproduction of this documentation, in whole or in part. Any
reproduction or distribution of this document, in whole or in part, without the prior written consent of MSC Software Corporation is prohibited.
The MSC Software corporate logo, Actran, Adams, Cradle, Digimat, Dytran, Easy5, Fatigue, Marc, Mentat, MaterialCenter, MSC, MSC Apex, MSC CoSim, MSC
Nastran, Mvision, Patran, PICLS, SC/Tetra, scSTREAM, scSTREAM/HeatDesigner, SC/Tetra/scFLOW, scSTREAM/HeatDesigner, SC/Tetra/scFLOW,
SimDesigner, SimManager, SimXpert, Sofy, and VTD are trademarks or registered trademarks of the MSC Software Corporation and/or its affiliates in the United
States and/or other countries.
Hexagon and the Hexagon logo are trademarks or registered trademarks of Hexagon AB and/or its subsidiaries.
NASTRAN is a registered trademark of NASA. All other trademarks belong to their respective owners.
ADAM*V2021*Z*EV*Z*SM-ADM745-WBK
Contents
Workshop
• Simulate AWD
• 1 Choose Powertrain Subsystem: Adjust > Powertrain Configuration > AWD
1
• 2 Choose Front suspension Subsystem: Adjust > Driveline Activity > ON
• 2 Choose Rear suspension Subsystem: Adjust > Driveline Activity > ON
• 3 Select Simulate > Full Vehicle Analysis > Straight Line Events >
Acceleration
2 3
• Output prefix = AWD (use the dialogue box on right as a reference)
• End Time 2.5, Steps =50, Velocity=25km/h,
• Start time = 0, Final Throttle =100, Duration of step =0.5 > Apply
• Repeat the process for FWD
• 1 Choose Powertrain Subsystem: Adjust > Powertrain Configuration > FWD
• 2 Choose Front suspension Subsystem: Adjust > Driveline Activity > ON
• 2 Choose Rear suspension Subsystem: Adjust > Driveline Activity > OFF
• 3 Modify Output prefix to FWD > Apply
• Repeat the process for RWD
• 1 Choose Powertrain Subsystem: Adjust > Powertrain Configuration > RWD
• 2 Choose Front suspension Subsystem: Adjust > Driveline Activity > OFF
• 2 Choose Rear suspension Subsystem: Adjust > Driveline Activity > ON
• 3 Modify Output prefix to RWD > OK
6 | Introduction to Electric Vehicle Model © MSC Software Corporation
Step 4. Postprocessing
• Launch Postprocessor Review > PostProcessor Window and create a new plot 1 1
• Under Simulation select the two existing simulations (FWD and RWD), under Request select
vas_throttle_demand_data, under Component select value and click on Add Curves
• Add another plot, under Request select til/r_wheel_tire_forces under Component select normal_front/rear, Add
Curves
• Add another plot, under Request select chassis_accelerations under Component select longitudinal, Add Curves
• Add another plot, under Request select chassis_velocities under Component select longitudinal, Add Curves
• Observation
• Applied same throttle demand in both case
• But RWD car reaches a higher speed compared to FWD
• Reason
• As a result of body pitch during acceleration, weight
is transferred from front to rear wheels.
• Normal force for drive wheel is higher for RWD
• Since friction force is proportional to normal force, a RWD car
will take advantage as more weight is transferred to its
drive wheels.
• Results in higher speed and acceleration.
• Observation
• AWD is fastest overall
• Reason
• The AWD is the fastest because not only there are 4 wheels
traction, the fact that the front axle is continuously sending weight
to the rear and still applying traction, allows the rear to apply more
torque than RWD. Regardless to the fact that the front axle in the
AWD is showing lower torque than the FWD version
• The second peak in the AWD simulation (around 13s) is due to the
vehicle wobble to one side and then applying steering correction,
which can be tuned in the Event_Builder steering tab
• Continue using the MDI_Demo_Vehicle_EV from the acar_EVIA database, make sure that it the AWD is selected
• Select Simulate > Full-Vehicle Analysis > Straight-Line Events > Braking…
• In the Full-Vehicle-Analysis: Braking gui select:
• Output prefix: Regen_on
• End Time: 10s
• Analysis mode: Interactive
• Velocity 100km/h
• Start time 1.0
• Change Open-Loop Brake to Closed-Loop Brake
• Longitudinal Decel 0.5G
• Duration of step 5.0
• Apply to run simulation
• Observation
• Regen_on simulation brakes shows larger deceleration
from 1 to 2.5s which results in achieving shorter braking
times
• Reason
• The regen_torque in the Regen_off simulation is zero,
in the meantime the Regen_on simulation shows front
to rear axle differences, these are due to the rear to
front weight transfer.
• Also, the brake_demand in the Regen_off simulation
is clearly larger than the Regen_on simulation due to
the the Point-Torque Actuators
pts_f/r_motor_regen_torque activity
If the simulation fails, please make sure that the Corrector is set to “Modified”; Settings >
Solver; Category – Dynamics
3
7 6
• Observation
• The Regen_on simulation provides more torque on several
occasions
• Reason
• This is due to having two Point-Torque Actuator
pts_f/r_motor_regen_torque added to
pts_f/r_motor_torque
• The Regen_on simulation brake demand is lower, since the
regenerative torque is helping the vehicle to decelerate
• The Regen_mod regen_torque and brake_demand dropped
from 10s onwards. This is due to the Actuator modification, in
fact this really started from 7s but it is only noticeable while
braking
1
• The starting point for this workshop is the same assembly from
workshop 1
Note
• The subsystem contains an FMU (created in Adams View)
• The torque modelling in FMU follow exactly same logic as the spline-
based model.
• Our intention is to compare the results from FMU to original spline-
based model.
5 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Electric Motor Signal Flowchart
VAR throttle
Throttle demand VAR drive
Demand torque
6 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
1
3
4
Note:
In case there are any missing minor/major roles, follow steps in page 17-18 to solve those
7 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 4. Maintain Analysis & Postprocessing
8 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 5. Making Sense of the Results
• Observation
• the FMU motor rpm at sim start is correct although too
high for the first 8s
• Chassis velocity shows transient behavior at start of
simulation
• Reason
• The FMU motor torque starts from zero due to fact that
a co-simulation FMU is not part of the static analysis.
For the Quasi-static equilibrium operation to be
successful, the template is being designed in such a
way that it refer to the spline (not the FMU) during
statics. Although even after that, the simulation initial
dynamic output is still ‘zero’ and needs to quickly get
up to desired velocity hence the transient
• Solution
• Use a model exchange FMU instead. However, this
might not be very practical! since an eMotor might
require solving at finer step size. Solving the entire
model at this step size will slow down the simulation
9 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Mini Workshop 2b
Creating Control Systems using
Mechatronics
An Extract from Workday of an Adams User…
“You got an email from the Controls Engineer. He shared the control system model in Easy 5 for the new permanent
magnet motor as a co-simulation FMU. You would like to integrate this to Adams model.
FMU details
• Motor: Permanent Magnet Synchronous Motor
• Inputs: Throttle demand EM (0-100), Transmission output Omega (rad/s)
• Outputs: Torque (Nm), max torque EM (Nm), Electric power demand
You are very excited to try this out. But since the number of inputs and outputs are different from previous eMotor model
(mini workshop 2a), you cannot directly swap it. So, you decided to make a new control system. You also noted that all the
outputs required for the Adams driver are not included. But here the concept of ‘intelligent’ modelling comes to your help.
You can simply leave the other channels disconnected (max braking torque, regen torque). The state variable will fetch
value from the spline instead. You just need to make sure that these splines output values are identical to the electric
motor model in FMU”
11 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
1
Step 1. Create a New Template
13 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 3. Make Necessary Modification in Control Signal Editor
14 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 4. Create a New Subsystem and Add to the Assembly
1
• Open Adams car in standard interface
• 1 Create a new subsystem
• Minor role – front
• Save the subsystem
• 2 Replace the eMotor subsystem from the assembly in
workshop 2a with the newly created subsystem
• File – Manage – Assemblies – Replace subsystem
2
15 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 5. Check Signal Connection
16 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 6. Connecting Inputs and Outputs using Signal Manager
3
4
2
17 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 6b. Connect the Necessary Signal
1
18 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Step 7. Maintain Analysis and Postprocessing
19 | Integrating Electric Motor Control System using Adams Mechatronics © MSC Software Corporation
Thank You!
End of Chapter 2
Workshop 3
Simulating an EV Regenerative Braking Scenario using 3 EASY5
Control Systems
Workshop S3
Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems
• Getting started
• Control systems parameters setup
• Simulate a simple accel_brake_regeneration full vehicle scenario
• Evaluate the regeneration performance on the Imola 5km track
3 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Getting Started
acar_EVIA
acar_EVIA.cdb
4 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Getting Started (Cont.)
5 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Controls System Setup
• Click Cancel
• Check the rear motor (should be the same)
6 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Controls System Setup (Cont.)
• Click Cancel
7 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Accel_Brake_regeneration Full Vehicle Scenario: Execute
8 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Accel_Brake_regeneration Full Vehicle Scenario: Review
9 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Accel_Brake_regeneration Full Vehicle Scenario: Review the Electric Braking
The throttle demand to the electric motor is positive during the acceleration and negative during the deceleration
(regenerative phase)
When braking, the rear demand (blue curve) reaches the maximum possible from the electric system (-100%). At this
moment, the mechanical brake is activated at the rear wheel to supplement the required braking force.
10 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Evaluate the Regeneration Performance on the Imola Track: Regen ON
11 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Evaluate the Regeneration Performance on the Imola Track: Regen OFF
12 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Evaluate the Regeneration Performance on the Imola Track: Regen OFF (Cont.)
13 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Imola Track Regeneration Scenario: Review
14 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Imola Track Regeneration Scenario: Review (Cont.)
• Plot the battery state of charge during the course event (ECU_Battery.ECU_request.battery_SOC) for regen_ON and
regen_OFF
15 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Regenerative Braking Adams Car Workshop
Imola Track Regeneration Scenario: Review (Cont.)
• Plot the front LCA bushing force during the course event (bkl_lca_front.fm_front) for regen_ON and regen_OFF
Considering the regenerative braking force compute a more accurate force transfer in the suspension components, more
suitable for further durability simulations.
16 | Simulating an EV Regenerative Braking Scenario using 3 EASY5 Control Systems © MSC Software Corporation
Thank You!
End of Chapter 3
Workshop 4
Hybrid Vehicle Torque Vectoring Control
Hybrid Vehicle Torque Vectoring Control
Introduction
• Welcome to the Adams Car & EASY5 Hybrid Vehicle Torque Vectoring Control
• This workshop illustrates the effect of using a new power source (from an electric motor, for example) in an existing
Adams Car model. A front-wheel drive (FWD) model will be enhanced to include an e-motor model acting on the rear
wheels, allowing for left/right torque control on the rear wheels. This workshop focuses on:
• Verifying the connections for an FMU control system,
• Simulating the vehicle with/without the control system,
• Modifying the control system parameters for more aggressive behavior.
• Optionally building a new controller model in Easy5.
• This workshop assumes that you are comfortable with the Adams Mechatronics methods for hooking up a control
system. Refer to Section 2 & Workshop 2 for instructions on configuring Mechatronics signals.
• Adams Car workshops require Adams Car 2021, Adams Controls and Adams Mechatronics
• EASY5 section (optional) requires EASY5 2020 with per user setup set to the Intel Fortran Compiler
(Compatible Intel Fortran Compiler, Intel Parallel Studio 2017 for example)
acar_EVIA
acar_EVIA.cdb
• Note that the Mechatronics menu appears at the top of the window because this model contains these components.
• Inspect the items going into (Transducer Signals) and out of (Actuator Signals) the control system by using the menu
picks: Mechatronics Info Signals Ensure that there are 10 transducer and 6 actuator signals for this system,
like so:
Assembly: .subcompact_TV
---------------------------------------------------------------------
---------------------------------------------------------
Transducer Signals Actuator Signals
===================== =====================
Total Number :10 Total Number :6
Transducer Signal Subsystem Unit Type Actuator Signal Subsystem Unit Type
ues_cst_body_yaw_rate subcompact_body_TV user ues_csa_relative_slip torque_vectoring_control_system user
uel_cst_front_wheel_angular_velocity torque_vectoring_control_system ues_csa_percent_to_right torque_vectoring_control_system user
angular_velocity uel_csa_rear_wheel_vectoring_torque torque_vectoring_control_system
… torque
uer_cst_tire_long_slip_rear torque_vectoring_control_system angle uer_csa_rear_wheel_vectoring_torque torque_vectoring_control_system
torque
ues_cst_throttle_demand torque_vectoring_control_system user
…
• The model will first be simulated in a lane change event with the rear torque
controller active as a baseline.
Switch to Adams PostProcessor (F8) to inspect the results. First, we will overlay the animation for the two vehicles and
see what visual differences appear.
In PostProcessor:
• Load an animation, select the tvoff_sin results.
• Use the CTRL-f shortcut to fit the view to the vehicle (without ground)
• Go to the Overlay tab at the bottom of the window and select both (CTRL key) the tvoff_sin and tvon_sin results
• In the Camera tab use the Follow Object field to follow .subcompact_TV.subcompact_body_TV.ges_chassis.cm
• Animate the two results. The difference with/without the controller active is very subtle. We will soon change the
controller behavior to produce more of a response.
• Next, create a new page in PostProcessor and set it to be of type Plotting (upper left dropdown menu).
• Import (from the File menu or use the Import button: ) a Plot Config File and specify both previous analyses to
generate the plots on the following pages:
• The plot config file should have created a page named chassis_states - view this plot page.
• Torque vectoring should improve the vehicle's cornering responsiveness. Compare the chassis side slip angle and yaw
rate from the two simulations: the controller does not seem to have much effect on the vehicle response in these plots:
• Create a new plot page in PostProcessor and verify that controller is applying different torques on the rear sides by:
• Set Source to Requests and Filter on *torqueR*
• Plot the left and right torque signals that the control system applies. The torque should appear on the outer wheel
during a turn, so the lane change event shows a left/right distribution of torque as the vehicle changes lanes:
• Simulate the model with the changes to the yaw rate and torque
signals.
• Next, create a new page in PostProcessor and set it to be of type Plotting (upper left dropdown menu).
• Delete the old plot pages named chassis_states and wheel_states
• Import the Plot Config File again and specify all three analyses:
• Finally, re-create the wheel torques plot using the tvon_sin and tvon2x_sin analyses.
• Note how the wheel torque plot at the rear wheels is both higher (from the motor scaling) and wider (from the yaw rate
scaling) in the aggressive vs the original controller:
• The vehicle with the more aggressive settings should differ from the
FWD-only simulation.
• The model must be built (Build Create Executable) before an FMU is exported.
Ensure that the model builds without errors.
• Once the model has built without errors, export the FMU using:
• Build Export Model As Functional Mockup Unit
• Fixed Parameters are variables that are exposed with the FMU to the master code.
The Max_Engine_Torque, for example, is a parameter in the throttle demand
portion of the model. This value can be changed by the FMU master code before the
co-simulation starts. With Adams Mechatronics these variables automatically get
created in the property file.
• Use the Export/Close button to create the FMU. This will create a file named
ez5_slip_vectoring.fmu in the working directory.
• If an FMU has previously been integrated into the Adams Car model with the
exact same inputs & outputs, it is possible to import the new .fmu file into the
database and generate a new property file. To import a new .fmu and create a
new property file:
• Use the Import code and generate default property file button at the bottom
of this dialog box.
• In the Generate ESL Property File dialog box choose the previously-created
.fmu file. Give a new name for the Property File and select a small number for
the Communication Interval. This procedure will do two important tasks:
• Copies the new .fmu into the \external_system_libraries.tbl folder
• Creates a property file (*.esl) in this same folder that can be referenced.
The newly-created FMU can be used by simply referencing this new property
file.
26 | Hybrid Vehicle Torque Vectoring Control © MSC Software Corporation
Hybrid Torque Vectoring Workshop
Optional: Inspect Property File, Note Parameter Values
• The Generate ESL Property File dialog box does several important tasks:
1. Creates a property file for the control system in the database table named
acar_EVIA.cdb\external_system_libraries.tbl
2. Copies into this folder the necessary .fmu and .dll (/win64 subfolder) files
required to run the FMU,
3. Creates a Parameters section in the property file for all of the Fixed
Parameters from Easy5.
• Verify that the Fixed Parameters from Easy5 get created as Parameters in the
property file. To do this:
• Locate the \external_system_libraries.tbl folder in the acar_EVIA database,
• Open the property file (*.esl) that was created on the previous page and locate
the Parameters section. These should match with the Fixed Parameters from
Easy5.
3 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
Prerequisite
• The EASY5 workshop requires EASY5 2020 FP1 with per user setup set to the Intel Fortran Compiler
(Compatible Intel Fortran Compiler, Intel Parallel Studio 2017 for example)
4 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
Getting Started
• Go to the EASY5_sEV/simpleEM_sim directory
• Open the simpleEM_sim.0.ezmf EASY5 model by double-clicking on it
5 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
Explore the simpleEM Model
• The simple Electric motor model is connected to a simplified vehicle model (1D)
• The model is embedding the rotor rotational inertia and a flexible torsional shaft to be connected to the vehicle model
• It has some simple parameters for the Electric Motor performances such as:
• maxPower: power limitation in KW: above this limit, the torque is limited (at high speed)
• maxTorque: maximum output torque (N.m), rated at maximum throttle input
• maxRPM: the output power will cut off after this limit at high RPM speed.
• The input command is the throttle demand, normalized (-100 to 100), translated to a rotor Torque output.
• The model is able to run as motor or generator (negative torque) with a negative throttle input
6 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
Simulate the simpleEM_sim Model
• Execute the predefined simulation (10 sec) by clicking on
the RUN button
• The vehicle is accelerating to the maximum speed.
• The maximum torque is produced during the first
simulation phase, then the torque is limited by the
maximum power rating, and by the RPM speed limit cut
off.
7 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
How to Modify the EASY5 Motor Model and Generate a New ESL dll Library for ADAMS
• Open simpleEM_ESL.0.ezmf model
• This model is similar to the simpleEM_sim model, and could be modified before export to Adams Controls
• The 1D vehicle model is replaced by an AD block (ADAMS mechanism) defining the I/O signals from EASY5 to the
ADAMS vehile model
8 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
How to Modify the EASY5 Model and Generate a New ESL dll Library for ADAMS
1. Under the Build menu, Export Model As, ADAMS External System Library
2. Keep “Use Design Parameters” and “Use Display Outputs” as defined
3. Click Export/Close
3
9 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Regenerative Braking
Scenario
ECU Model and Regenerative Braking Strategy
• Open the model regenECU_ESL.0.ezmf in the regenECU_ESL directory
• Explore the Vehicle Control Unit user code block: double click and Edit Component
• The VCU is computing the proper electric and mechanical brake signals based on various information coming from the
vehicle and the electric motors (velocity, available electric torque, driver braking command …) and manage the energy
recovery or consumption back to the battery pack.
10 | Appendix 1 (Workshop): EASY5 Control System Files and Simulation for the Regenerative Braking Scenario © MSC Software Corporation
Appendix 2 (Workshop)
EASY5 Control System Files and Simulation
for the Induction Motor Scenario
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
What You Will Do
• During this workshop, you will
• Explore an EASY5 model of an Induction Motor and perform an acceleration scenario
• Generate an FMU from this model for the FMU induction motor A2 workshop in Adams Car
3 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Prerequisite
• The EASY5 workshop requires EASY5 2020 FP1 with per user setup set to the Intel Fortran Compiler
(Compatible Intel Fortran Compiler, Intel Parallel Studio 2017 for example)
4 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Getting Started
• Go to the EASY5_sEV/induction_motor_FMU directory
• Open the induction_motor_PWM_sim.0.ezmf EASY5 model by double-clicking on it
5 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Explore the Model
• This model is simulating an induction motor (EASY5 Electric System Library IM component) connected to a simplified
1D vehicle model.
• The Induction motor component from the Electric System library is powered by a simplified PWM power supply model ,
variable duty cycle, 10KHZ switching frequency.
• The input throttle demand is converted to a torque demand and simple PI controller is comparing the demand to the
resulting torque and computes a variable duty cycle to the PWM power supply.
• The motor control strategy is a simplified version of a classical variable Voltage/frequency command.
• The frequency command is variable,
and a frequency slip value is controlled and
Torque
maintained in the stable (normal) region of the
induction motor: maximum torque
6 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Simulate the Model
• Execute the predefined simulation (12 sec) by clicking on
the RUN button
• The model is simulating a ramp up throttle demand to the
maximum from 3 to 5 sec.
• The throttle demand is converted to a torque demand
(black).
• The resulting torque (blue) is matching the torque
demand and reach a 50 KW power limitation caused by
the power supply voltage limitation (+/- 260 V).
7 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
FMU Generation Procedure
• Go to the EASY5/induction_motor_FMU directory
• Open the induction_motor_PWM_FMU.0.ezmf EASY5 model by double-clicking on it
8 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Configure the FMU Export Process
• Configure the FMU export process
1. Open the FMU block by double-clicking on it
1
2. Make sure that Version 2 and Cosimulation option are selected for
FMU version and type
3. Then click on the Inputs tab
3
9 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Configure the FMU Export Process
1. Make sure the CommInterval is set to 100
2. Make sure the TimeIncrement is set to 1E-6
3. Click OK 1
10 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
EASY5 Control System Files and Simulation for the Induction Motor
Scenario
Generate the FMU Model for ADAMS
1. Under the Build menu, Export Model As > Functinal Mockup Unit
2. Keep “Use Design Parameters” as defined
3. Click Export/Close
1 3
11 | Appendix 2 (Workshop): EASY5 Control System Files and Simulation for the Induction Motor Scenario © MSC Software Corporation
Appendix 2 (Workshop)
Simulating an Induction Motor EV using an
EASY5 FMU
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
What You Will Do
• Getting started
• Replace the rear electric motor model by an FMU control system
• Simulate a simple acceleration full vehicle scenario
3 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Getting Started
• The 2 electric motor control systems are currently an ESL library control system (model exchange mode)
• The next operation will replace them by an EASY5 FMU model of an induction motor (co-simulation mode)
4 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Delete the ESL Rear Electric Motor
5 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Create the FMU Rear Electric Induction Motor
6 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Create the Front Induction Motor
7 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Acceleration Simulation
• From the File menu, Open Assembly …, the browse for the « simpleEV.asy »
assembly
• When prompted to use the existing template in memory, reply Yes
• From the Simulate menu, Full Vehicle Analysis , Straight-Line Events,
Acceleration 1
• Fill the dialog box as shown
1. Use a very large Number of Steps
2. Be sure to uncheck the Quasi-Static Straight option
2
• The CPU simulation time is longer, and the results file is huge (> 3Gb)
because of the high number of output steps
8 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Review
We can observe an unstable behavior of the rear motor, caused by an electronic regulation problem
9 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction Motor EV using an EASY5 FMU
Modify the Rear Motor Electronic Regulation
Tc_LA2 is the time constant for the feedback filter observing the rotor
velocity used for computing the power supply frequency command.
Modifying this parameter will improve the regulation
10 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Workshop A2: Simulating an Induction motor EV using an EASY5 FMU
Review the Improved Regulation Simulation
11 | Appendix 2 (Workshop): Simulating an Induction Motor EV using an EASY5 FMU © MSC Software Corporation
Thank You!