Variables & Declarations

Use the Variables & Declarations dialog box under Modelica Model Editor to add, edit, or remove language-specific variables.

Related Topics

Adding a Variable

Editing a Variable

Removing a Variable

Adding a Variable

  1. Click Modelica Model Editor > Variables & Declarations to open the Edit Model dialog box.
  2. Click to add a row. The Edit Variable dialog box opens.
  1. Click OK.
  2. To add this variable to the model text, click Modelica Model Editor > Update Text from Diagram.

Editing a Variable

Click in the Edit column on the Equation panel to edit a variable. Make your changes in the Variable dialog box and click OK.

Removing a Variable

Highlight a variable row in the Equation panel and click to remove it.

In addition to the above, you can also use variables & declarations to edit equations and initial equations.

Variables & declarations also shows extended base class parameters, if any exist. You can change and modify these parameters.

Related Topics

Creating a Variable by Editing the Component Parameter Properties

Creating a Variable by Dragging a Type Object

Diagram Editor

Using the Diagram Editor