SysML Plugin TWRT Documentation
On this page
SysML Parametric Diagrams provide a way to integrate engineering analysis models described in mathematical equations and constraints, with design models describing the structural and behavioral aspects of systems. Parametric diagrams include usages of constraint blocks to constrain the properties of another block. A constraint property is a property of any block that is typed by a constraint block. To empower the constraint expression to perform calculations, you have to specify what system parameters should be consumed as variables of that constraint.
See the figure below, as example of SysML Parametric Diagram wherein all elements are highlighted: Value Properties, Constraint Block, Constraint Property, Constraint expression, Constraint Parameter, Binding Connector.
This section explains how to model system constraints in the SysML Parametric Diagram. Parametric constraints are formulas, and parameters are variables that can be bound to value properties later. Variables can be inputs and outputs of the formula. In general, you must perform the following steps to model your system constraints. However, some actions may already be done in the model creation process, so you may skip these steps and use existing model data. The following procedure provides the main workflow of modeling parametric constraints manually and automatically.
There are two ways to model parametric constraints:
To create parametric constraints manually
Connect Value Properties with Constraint Parameters in one of the following way:
- Select the Value Property shape, from smart manipulator toolbar click and connect it to a Constraint Property shape. From the Select Parameter menu list, select an appropriate parameter. As example, see the figure below where power Value Property is binding by selecting a supplierPower parameter from the suggested list.
- Display Constraint Parameters on Constraint Property shape by clicking smart manipulator toolbar. Select Value Property/Constraint Parameter shape, click and connect it to Constraint Parameter/Value Property. As shown in the figure elow, the efficiency Value Property is binding with an efficiency parameter.
The Constraint Parameter are connected with Value Properties using Binding Connector. Now you can run the simulation of parametric data in one of the following way:
- Right-click the Block that owns the Parametric diagram and select Simulation > Run.
- From the Parametric Diagram toolbar, click .
In the Variables tab, type values and click . Learn more about parameters simulation >
You can create an equation system by creating bindings between parameters between separate Constraint Properties. E.g. The BoilerEnergy and BoilerWaterTemperature Constraint Properties are connected through the dQb parameter because the BoilerEnergy constraint expression provides a value for the BoilerWaterTemperature constraint expression.
To create parametric constraints automatically
Related pages
Sample model
The model used in the figures of this page is the InvertedPendulum sample model that comes with SysML. To open this sample do one of the following: