Add a replaceable submodel to a Model Type
- Last UpdatedJun 12, 2025
- 2 minute read
You must use a parameter with a Type of Model Type to add a replaceable submodel to your Model Type. When you add a model instance of this Model Type to the Canvas, you can then change the value of this parameter to switch between different replaceable submodels. This is especially useful when you need to change the parameters, variables, or equations in a Model Type based on the physical or chemical configuration of the process equipment. For example, you can include a replaceable reaction submodel in a Model Type to change the reaction kinetics of the model instance based on the components and reactions that you want to use in the model instance.
After you add the parameter for the replaceable submodel, you can then use the variables, parameters, and submodels from that replaceable submodel in the connections and equations in your Model Type. You can reference these variables, parameter, and submodels by using the name of the parameter. For example, if you add the Internals parameter to the Model Type, you can use the Internals.T variable to access the T variable from the replaceable submodel.
Add a replaceable submodel to a Model Type
-
Open the Model Editor for the Model Type.
-
Expand the Parameters section.
-
Select the
icon.
-
Change the Name of the parameter.
-
In the Type list, select Model Type.
-
In the Default list, select the replaceable submodel that you want to use for all new model instances of this Model Type.
Only Model Types that are configured as replaceable submodels appear in this list. See Configure a Model Type as a replaceable submodel for more information on how to add Model Types to this list.
-
Enter a Description of the parameter.