AmesimKnowledge

The Simcenter Amesim Export module in detail > Piloting simulations from outside Simcenter Amesim

Set Input Parameters

You are able to set the Input Parameters (parameter that will be used to perform the simulation) using an ASCII file. This file name and format must obey basic rules which are described below.

File naming rules

The name of the file you must use to set the Input Parameter Input Parameter input file values is based on the name of the target model. If your model is named myModel then the input file name has to be myModel_.in. You can create this entirely yourself but there is an easier way of doing it. A file named myModel_.in.tpl is created. This contains the Input Parameters with their default values. Make a copy of this as myModel_.in and edit this.

Common format rules

Not all the Input Parameters have to be in the file, in other words, you may omit some parameters. The default value will be used for the missing Input Parameters.

There are no constraints regarding the order the Input Parameters appear in the file.

Real Input Parameters

In the input file, there must be one line for each real Input Parameter for which you want to set a value. Each line must start with the Export Name of the Input Parameter, followed by one or more spaces and the value you want to set to your value. You can use the format you want for the value.

Thus if one of the Input Parameter you want to set is named mainDampingRating and the value you want to set is 12000, one line of the input file has to be:

mainDampingRating 12000
or
mainDampingRating 12 000.000
or
mainDampingRating 1.2e4

In the case of a vector, add one line for each component of the vector. If the export name of the vector is internalNodePressure, then each line has to start with internalNodePressure[i] where i is the index of the vector component. So, if for instance if internalNodePressure is a vector of dimension of 3, you add the following 3 lines to the input file:

internalNodePressure[1] 1.0
internalNodePressure[2] 1.2
internalNodePressure[3] 1.4

Integer Input Parameters

In the same way, in the .in file, there must be one line for each integer Input Parameter for which you want to set a value. Each line must start with the export name of the Input Parameter, followed by one or more spaces and the value you want to set to your value. You can use the format you want for the value.

Thus if one of the Input Parameter you want to set is named indexOfFluid and the value you want to set is 2, one line of the input file has to be:

indexOfFluid 2
or
indexOfFluid 0.2e1

String list

String list Input Parameters are special in that you do not set directly the parameter value. Instead of that, you assign the index of the required string in the list of possible strings.

If you have defined an export Input Parameter whose type is String list, and whose name is fluidPropsFile, and if this parameter indicates the file containing the fluid properties to use, you must then set a list of possible values (which is a list of available files): waterProps.data; dieselProps.data; 15W40.data.

If you then want to perform a run using the diesel fluid properties, you must add the following line to the input file:

fluidPropsFile 2

Formatted string

Formatted strings should not appear in the input file. The value used for these parameters are built up using values of other Input Parameters.

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