main content

multiple simulations panel: simulate for different values of stiffness for a vehicle dynamics system -凯发k8网页登录

this example shows how to use the multiple simulations panel in the simulink® editor to run multiple simulations with varying values of stiffness of the suspension for a road profile that has a sinusoidal shape.

open the model

the model simulates the vehicle dynamics based on the road-suspension interaction for different road profiles. the road profile data for the left and right tires is imported into the signal editor block as a sinusoidal shape. the road-suspension interaction subsystem calculates the suspension forces on the vehicle at the four tire locations based on the road data and the current vehicle state. in the body dynamics subsystem, these forces and the resulting pitch and roll movements are used to determine the vehicle motion in three degrees of freedom: vertical displacement, roll, and pitch. the model is simulated using different values of stiffness of the suspension to determine if the design meets desired performance goals.

open_system('ex_multisim_sldemo_suspn_3dof');

set up simulations

to configure and set up simulations, use the multiple simulations panel. to open the multiple simulations panel, go to the prepare section on the simulink toolstrip. in the inputs & parameter tuning section, click multiple simulations. in the panel, click to create a new design study.

a new design study object is added to the panel. the name of this design study is automatically populated. double-click the design study to change the name. use this design study to specify the parameters for the simulations. in this design study, we set up the values for the variable k which represents stiffness. by running multiple simulations, we want to see how the amplitude at which the car oscillates is affected by different values of stiffness.

to add variable to this design study, click on the specification tab of the details:design study section. once you add the variable, double-click to label the variable as suspension stiffness. specify the variable name as k, which is the stiffness of the suspension. run simulations for multiple values of the stiffness, k. simulate for values ranging from 2e4 to 8e4, with one hundred separate points. add linspace(2e4,8e4,100) as the values of the variable k.

run multiple simulations

now that you have set up the values for our simulations, select the design study. the run button in the simulation section of the simulink toolstrip changes to run all, to indicate that you have setup multiple simulations. click the run all button to start the simulations. you can open simulation manager by clicking open simulation manager on the simulink status bar at the bottom of the canvas.

view the results in simulation manager

inspect how the amplitude at which the car oscillates is affected by different values of stiffness. to see the plot, in plot properties, select yout from the list for data for the y-axis. yout represents the resulting amplitude of oscillations. the road pattern for this simulation is a sine wave with fixed frequency. by varying the stiffness values, you vary the natural frequency of the system. based on the stiffness values, you start below the natural frequency. as you increase the values of the stiffness, you cross the natural frequency, thus entering resonance. as you increase the stiffness values above the natural frequency, the amplitude starts to decrease again.

by configuring and specifying values through the multiple simulations panel, you can easily run many simulations with different values for parameter sweep and monte-carlo simulations directly through the simulink editor.

save the design study and the plot

click in the multiple simulations panel to save the design study that you have set up. the design study is saved in mldatx format. to reuse the design study, open the multiple simulations panel, click , and select the design study file from the file browser.

you can also save the simulation manager session information, which includes simulation data all the plot configurations. the simulation manager allows you to reuse the plot configuration when you want to run similar simulations with different sets of values. to reuse the plot configuration, click on the simulation manager toolstrip. to reopen the saved session, navigate to the location where the file is saved and double-click the .mldatx file.

see also

| |

related topics

    网站地图