2 # Model configuration
\r
4 Apros 6.05 contains a new module `Apros/Legacy` for manipulating the model configuration
\r
5 with commands that are familiar to Apros 5 developers. Idea of the module is that
\r
6 all Apros entities are referred by their names in the Apros solver.
\r
8 ## Updating model configuration
\r
10 ::value[Apros/Legacy/aadd, Apros/Legacy/aaddNonvisual, Apros/Legacy/amodi, Apros/Legacy/aconnect, Apros/Legacy/aconnectWithName]
\r
11 ::value[Apros/Legacy/ainclude, Apros/Legacy/aexclude, Apros/Legacy/arename]
\r
15 The following commands build a point-pipe-point configuration to subprocess MYDIAGRAM.
\r
17 import "Apros/Legacy"
\r
18 aadd "MYDIAGRAM" "Point" "PO01" (50, 50)
\r
19 amodi "PO01" "PO11_PRESSURE" 0.2
\r
22 aadd "MYDIAGRAM" "Point" "PO02" (100, 50)
\r
23 amodi "PO02" "PO11_PRESSURE" 0.1
\r
26 aadd "MYDIAGRAM" "Pipe" "PIP01" (75, 50)
\r
27 amodi "PIP01" "PI12_CONNECT_POINT_1" "PO01"
\r
28 amodi "PIP01" "PI12_CONNECT_POINT_2" "PO02"
\r
30 Alternatively `aconnect` can be used to create the same name reference connections:
\r
32 aconnect "PO01" "SelfPOINT" "PIP01" "PI12_CONNECT_POINT_1"
\r
33 aconnect "PO02" "SelfPOINT" "PIP01" "PI12_CONNECT_POINT_2"
\r
35 Notice the attribute name "SelfPOINT" which represents the MODNAME terminal of the POINT module.
\r
36 To make a reference to a module's MODNAME terminal, use "SelfMT" as the attribute name, where
\r
37 MT is the module type name in uppercase.
\r
39 ## Making model queries
\r
41 The module contains also the basic commands for making model queries:
\r
43 ::value[Apros/Legacy/ashow, Apros/Legacy/alist, Apros/Legacy/alistOnly, Apros/Legacy/aget, Apros/Legacy/amget, Apros/Legacy/amgetSort]
\r