Question

Is there any method that support calling Modelica operator from java ? If I want to use the Modelica Operator like der(), pre() and so on, call them from java.

Is there any technology I can use?

Was it helpful?

Solution

There are several ways to simulate Modelica models from a Java program. To directly simulate the Modelica code, use the Java interface of an existing Modelica simulator:

Another option is to export the Modelica code to a Functional Mockup Unit (FMU) via the Functional Mockup Interface (FMI), e.g. using Dymola. Then use a Java FMI library (e.g. JFMI) to interact with the FMU. Note that you'll probably need to supply the solver code yourself. However this is far easier for an FMU than for raw Modelica code.

Also see this question on SO for more information about exchaning information between Modelica and Java.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top