AmesimKnowledge

Advanced examples > Response surface modeling

Creating a simple RSM

Procedure

  1. Go back to Sketch mode and add a GA00 component to the sketch as shown in the figure below:

Figure 27: Updated model

Note Simcenter Amesim Run users can get this system through Help > Get demo, from the Tutorials directory. The file is called scrdemo3.ame.

This block acts as a scaling coefficient for the input variable of the duty cycle submodel FXA01-1. We will study the influence of a gain variation on the maximum angular response of the system.

  1. In Parameter mode, select the FX00 component and set its expression in terms of the input x to abs (x).

  2. Open the Study Manager and drag the value of gain parameter of GA00-1 from the Contextual parameters view window and drop it onto the Input Parametersfield.

  3. Set the export name of this parameter to thetascale.

Figure 28: Input

  1. Drag the shaft angle variable of MECRL0A-1 from the Contextual variables view window and drop it onto the Simple Output Parameters tab of the Export Parameters Setup window.

  2. Set the export name of this parameter to outangle.

Figure 29: Simple output

  1. In the Compound Output Parameters field, create a new compound parameter called maxangle, and assign it the following expression: globMax(outangle)

Figure 30: Compound output

  1. Switch to the Studies tab. Select New > Monte Carlo to create a new study and give it a name (for example test1).

  2. Check thetascale is used in the Controls tab, setting a mean value of 1 and a standard deviation of 0.25. Set the sampling method to Optimized LH and the Number of runs to 50.

Figure 31: Controls

  1. Check maxangle is used in the Responses tab and click on OK.

Figure 32: Responses

  1. Open the Run Parameters dialog box and set the start time to 0.0 s, the final time to 1.0, the print interval to 0.01 s and click on OK.

Figure 33: Run parameters

  1. Start the analysis by clicking on the Start Run button in the Design Exploration window.

  2. When the analysis is complete, right-click on the test1 study and select Response Surface:

Figure 34: Run done

  1. In the Response Surfaces window, select Second Order.

Figure 35: Second order

  1. Click on the Save To File button to save the second order response surface as secondorder.rsm.

  2. Select More… in the Response Surface Order list, and enter 3 as the Response Surface Order.

Figure 36: Third order

  1. Save the third order response surface in a file named thirdorder.rsm.

The two RSM files are now available for post-processing with the scripts. These will be used to evaluate the RSM over a range of values of the input variable, and compare the output of the RSM with the corresponding simulation results.

Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Scripting/xid1136658 · retrieved 2026-07-17