The invention discloses a
joint simulation system based on
Modelica and a construction method thereof. The method comprises the steps of: establishing a subsystem model in each
modeling software; using various different
modeling software and languages, for example, a C
language model is established in Visual
Studio, a Simulink model is established in Simulink, an AMESim model is established in AMESim, a Fortran
language model is established in Visual
Studio, and the like; compiling each subsystem model to generate a dynamic link
library, wherein the dynamic link
library comprises a
model simulation interface and a model
solver; packaging each sub-calculation model into a subsystem
Modelica model by utilizing an external function mechanism of
Modelica; and finally, writing a master controlmodel by using a Modelica language, defining a sampling step length of each subsystem module, and scheduling each subsystem by using a
solver of a master control end to realize
data synchronization ofthe
system. According to the technology, multi-
modeling software and multi-language modeling can be supported,
system simulation is divided into system scheduling and subsystem calculation, all subsystems are placed in independent processes to be solved, and the solving speed of the system is increased.