Model CenterKernel Commands

Introduction | Class Browser | Class Window | Graphical Views | Modelica Text View | Component Browser | Variable Views | Reliability View | Messages View | Kernel Command View | Documentation Center | Functional Mock-up Interface | Keyboard Shortcuts | Kernel Commands

These kernel commands that can be used in the Kernel Command view of Model Center.

Model handling

Variables and evaluation

The Kernel Command view can also be used as a Modelica expression evaluator. This is an example of a session, showing evaluation of expressions, functions, and assignment of variables. Inputs are shown in bold:

1 + 2
3
Modelica.Math.sin(0.1)
0.09983341664682815
a := 2
2
b := Modelica.Constants.pi / 2
1.570796326794897
a + Modelica.Math.sin(b)
3.0
ndims({{1, 2}, {3, 4}})
2
size({{1, 2}, {3, 4}})
{2,2}

These commands can be used to handle variables defined in the kernel session:

Introduction | Class Browser | Class Window | Graphical Views | Modelica Text View | Component Browser | Variable Views | Reliability View | Messages View | Kernel Command View | Documentation Center | Functional Mock-up Interface | Keyboard Shortcuts | Kernel Commands