Opened 4 years ago
#6365 new defect
check type of submodel
Reported by: | Owned by: | arunkumar palanisamy | |
---|---|---|---|
Priority: | high | Milestone: | NeedsInput |
Component: | OMPython | Version: | 1.16.2 |
Keywords: | Cc: |
Description
Hey,
I'm using openmodelica/OMPython to simulate models. After simulation (call *.exe-File) i get the results as a mat-File. Is it possible to read out the type of sub-model/component that is included inside the main-model. For example:
package test
model submodel
parameter Real a = 2;
end submodel;
model mainmodel
parameter Real b = 4;
submodel S(a=4);
end mainmodel;
end test;
Is there any possibility to check what kind os model "S" is (with omc after initialization)? For example like:
loadmodel(test.mainmodel);
--> true
type(S);
--> "submodel"
Note:
See TracTickets
for help on using tickets.