CN106682323B - A kind of converting system and its method that framework model is converted to Dynamic Simulation Model - Google Patents

A kind of converting system and its method that framework model is converted to Dynamic Simulation Model Download PDF

Info

Publication number
CN106682323B
CN106682323B CN201611256216.XA CN201611256216A CN106682323B CN 106682323 B CN106682323 B CN 106682323B CN 201611256216 A CN201611256216 A CN 201611256216A CN 106682323 B CN106682323 B CN 106682323B
Authority
CN
China
Prior art keywords
model
framework
dynamic simulation
module
behavior
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611256216.XA
Other languages
Chinese (zh)
Other versions
CN106682323A (en
Inventor
赵旭峰
邵进涛
江雷
周凡利
谢刚
刘奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd filed Critical SUZHOU TOPRANK INFORMATION TECHNOLOGY Co Ltd
Priority to CN201611256216.XA priority Critical patent/CN106682323B/en
Publication of CN106682323A publication Critical patent/CN106682323A/en
Application granted granted Critical
Publication of CN106682323B publication Critical patent/CN106682323B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of converting system and its method that framework model is converted to Dynamic Simulation Model, which is made of framework model Component Gallery, Dynamic Simulation Model library, subscriber interface module, framework parsing module, behavior injection module, model management module and data management module.This method by build framework model Component Gallery, build framework model, import framework model, Analytical framework model, generate mapping relations data, build Dynamic Simulation Model library, injection behavior equation, driving model emulate and etc. implementation model behavior conversion.Framework model can be converted to Dynamic Simulation Model or other models by the present invention, realize the multiplexing of framework model, reduce the duplication of labour, improve modeling efficiency, the present invention can carry out a variety of emulation with the same framework model simultaneously, without building multiple models, therefore when framework model needs to modify topological structure, need to modify a model, only convenient for the maintenance of model.

Description

A kind of converting system and its method that framework model is converted to Dynamic Simulation Model
Technical field
The invention belongs to Computer Simulations to model field, and in particular to a kind of that framework model is converted to Dynamic Simulation Model Converting system and its method.
Background technique
Modelica is a kind of completely new multidomain uniform modeling language for opening that international emulation circle was proposed in 1997, it Conclude and unified previous multi-modeling language, and merged the non-causal idea about modeling of bond graph, Java language towards right As the numerical value and matrix mechanism of technology and Matlab, thus has extremely powerful modeling function.
Object orientedness and non-causality are Modelica language biggest advantages.Object -Oriented Model method has number According to features such as encapsulation, layering, connection and successions, it is easily reduced the generation of mistake and the reuse of model easy to accomplish.It is so-called it is non-because The modeling of fruit property, be exactly by it is a kind of it is neutral, natural in the form of expression model equation keep away from without more consideration is given to computation sequences The cumbersome derivation to model equation is exempted from, to improve modeling efficiency, and partial model has been made to be easy to be reused. Modelica language establishes model using statement formula, the non-causal modeling method based on equation, by defining interface, connects model Mouth standardization, therefore can make be completely independent and can unite mutually between each subsystem of physical system using Modelica modeling One.
In actual Modelica modeling process, can encounter will be to same system for different operating condition, no The case where same emulation emphasis is modeled.Interior at this point, although the topological structure between the component of system is completely the same It is but not quite similar in behavior.Traditional modeling method will build multiple models comprising different behaviors and meet to same system Different emulation demands.It models by this method, Model Reuse rate is low, the Yao Jinhang duplication of labour, and due to the same system System will be emulated respectively by multiple and different models, and when modification will modify multiple models simultaneously, be not easy to the maintenance of model.
Summary of the invention
In order to solve above-mentioned problems of the prior art, the present invention is intended to provide it is a kind of framework model is converted to it is dynamic The converting system and its method of state simulation model, in order to model maintenance and improve modeling efficiency.
To realize above-mentioned technical purpose and the technique effect, the invention is realized by the following technical scheme:
A kind of converting system that framework model is converted to Dynamic Simulation Model, by framework model Component Gallery, dynamic simulation Model library, subscriber interface module, framework parsing module, behavior injection module, model management module and data management module composition;
The framework model Component Gallery is responsible for the component that storage is used for structure composed model;
The Dynamic Simulation Model library, it is responsible to store Dynamic Simulation Model that is building and defining behavior;
The subscriber interface module is responsible for the interaction of the processing converting system and user, receives the information of user's input, With displaying operation conditions;
The framework parsing module is responsible for the structure of Analytical framework model;
The behavior injection module is responsible for model behavior equation writing into target position;
The model management module, the additions and deletions for being responsible for model file, which change, looks into, and the membership credentials between administrative model file;
The data management module, is responsible for the data of output in the entire converting system operation of management, and is responsible for data Persistence.
A kind of conversion method that framework model is converted to Dynamic Simulation Model, includes the following steps:
Step 0, using Modelica Modular Modeling Software, build the framework model Component Gallery;The framework model group Component in part library is not necessarily to define behavior, only needs defining interface;
Step 1 builds framework model using the component in the framework model Component Gallery, carries out line to component, determines The topological structure of framework model;
The framework model put up is imported into the converting system by step 2 by the model management module;
Step 3, the framework parsing module analyze the framework model after importing, will need to be mapped as dynamic simulation The collect components of model get up, and submit to the subscriber interface module, user is allowed to select;
After step 4, user's confirmation, the subscriber interface module generates reflecting for a former framework model and Dynamic Simulation Model Relation data is penetrated, and gives the data management module management;
Step 5, the behavior injection module extract mapping relations from the data management module, and are closed according to mapping System commands the model management module to generate an empty Dynamic Simulation Model library;
The content that step 6, the behavior injection module are lacked according to the Dynamic Simulation Model library, notifies user circle Face mould block formation component equation input interface inputs the equation code of descriptive model behavior for user;
After step 7, user complete the input of equation code, the behavior injection module commands the model management mould Behavior equation is written the Dynamic Simulation Model library, is built into Dynamic Simulation Model, and give the model management module by block Management;
The Dynamic Simulation Model library and the structure of the framework model Component Gallery are completely the same, the Dynamic Simulation Model Library and the difference of the framework model Component Gallery are, define the behavior of Dynamic Simulation Model;
The models switching interface that step 8, user are generated by the subscriber interface module, switching model behavior, by framework Models switching is at Dynamic Simulation Model;
When step 9, driving model are emulated, the model management module loads the Dynamic Simulation Model library and framework Model, framework model can search corresponding Dynamic Simulation Model and be loaded into from the Dynamic Simulation Model library;At this point, framework mould The topological structure of type is constant, but is provided with the behavior of Dynamic Simulation Model, i.e., conversion is for Dynamic Simulation Model;
Step 10 terminates.
Compared with prior art, the beneficial effects of the present invention are:
1, improve modeling efficiency: the topological structure of framework model simulation system, can be converted to Dynamic Simulation Model or Other models realize the multiplexing of framework model, reduce the duplication of labour.
2, convenient for the maintenance of model: a variety of emulation can be carried out with the same framework model, without building multiple models, Therefore when framework model needs to modify topological structure, it is only necessary to a model is modified, and traditional modeling method needs are repaired Change multiple models.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And can be implemented in accordance with the contents of the specification, with presently preferred embodiments of the present invention and attached drawing is cooperated to be described in detail below.This hair Bright specific embodiment is shown in detail by following embodiment and its attached drawing.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the structural block diagram of converting system of the present invention;
Fig. 2 is the step flow chart of conversion method of the present invention.
Specific embodiment
It is below with reference to the accompanying drawings and in conjunction with the embodiments, next that the present invention will be described in detail.
It is shown in Figure 1, a kind of converting system that framework model is converted to Dynamic Simulation Model, by framework model component Library 1, Dynamic Simulation Model library 2, subscriber interface module 3, framework parsing module 4, behavior injection module 5,6 and of model management module Data management module 7 forms;
The framework model Component Gallery 1 is responsible for the component that storage is used for structure composed model;
The Dynamic Simulation Model library 2, it is responsible to store Dynamic Simulation Model that is building and defining behavior;
The subscriber interface module 3 is responsible for the interaction of the processing converting system and user, receives the letter of user's input Breath, with displaying operation conditions;
The framework parsing module 4 is responsible for the structure of Analytical framework model;
The behavior injection module 5 is responsible for model behavior equation writing into target position;
The model management module 6, the additions and deletions for being responsible for model file, which change, looks into, and the tissue between administrative model file closes System;
The data management module 7, is responsible for the data of output in the entire converting system operation of management, and is responsible for data Persistence.
Referring to figure 1 and figure 2, a kind of conversion method that framework model is converted to Dynamic Simulation Model, including it is as follows Step:
Step 0, using Modelica Modular Modeling Software, build the framework model Component Gallery 1;The framework model group Component in part library 1 is not necessarily to define behavior, only needs defining interface;
Step 1 builds framework model using the component in the framework model Component Gallery 1, carries out line to component, determines The topological structure of framework model;
The framework model put up is imported into the converting system by step 2 by the model management module 6;
Framework model after step 3,4 pairs of framework parsing module importings is analyzed, and will need to be mapped as dynamic imitative The collect components of true mode get up, and submit to the subscriber interface module 3, user is allowed to select;
After step 4, user's confirmation, the subscriber interface module 3 generates a former framework model and Dynamic Simulation Model Mapping relations data, and give the data management module 7 and manage;
Step 5, the behavior injection module 5 extract mapping relations from the data management module 7, and are closed according to mapping System commands the model management module 6 to generate an empty Dynamic Simulation Model library 2;
The content that step 6, the behavior injection module 5 are lacked according to the Dynamic Simulation Model library 2, notifies the user 3 formation component equation input interface of interface module inputs the equation code of descriptive model behavior for user;
After step 7, user complete the input of equation code, the behavior injection module 5 commands the model management mould Behavior equation is written the Dynamic Simulation Model library 2, is built into Dynamic Simulation Model, and gives the model management mould by block 6 Block 6 manages;
The Dynamic Simulation Model library and the structure of the framework model Component Gallery are completely the same, the Dynamic Simulation Model Library and the difference of the framework model Component Gallery are, define the behavior of Dynamic Simulation Model;
Step 8, user pass through the models switching interface that the subscriber interface module 3 generates, switching model behavior, by framework Models switching is at Dynamic Simulation Model;
When step 9, driving model are emulated, the model management module 6 loads the Dynamic Simulation Model library 2 and frame Structure model, framework model can search corresponding Dynamic Simulation Model and be loaded into from the Dynamic Simulation Model library 2;At this point, frame The topological structure of structure model is constant, but is provided with the behavior of Dynamic Simulation Model, i.e., conversion is for Dynamic Simulation Model;
Step 10 terminates.
Simply to illustrate that technical concepts and features of the invention, its purpose is allows in the art above-described embodiment Those of ordinary skill cans understand the content of the present invention and implement it accordingly, and it is not intended to limit the scope of the present invention.It is all It is changes or modifications equivalent made by the essence of content according to the present invention, should be covered by the scope of protection of the present invention.

Claims (1)

1. a kind of conversion method that framework model is converted to Dynamic Simulation Model, this method are converted framework model by a kind of It is achieved for the converting system of Dynamic Simulation Model, the converting system is by framework model Component Gallery (1), dynamic simulation mould Type library (2), subscriber interface module (3), framework parsing module (4), behavior injection module (5), model management module (6) and data Management module (7) composition;
The framework model Component Gallery (1) is responsible for the component that storage is used for structure composed model;
The Dynamic Simulation Model library (2), it is responsible to store Dynamic Simulation Model that is building and defining behavior;
The subscriber interface module (3) is responsible for the interaction of the processing converting system and user, receives the information of user's input, With displaying operation conditions;
The framework parsing module (4) is responsible for the structure of Analytical framework model;
The behavior injection module (5) is responsible for model behavior equation writing into target position;
The model management module (6), the additions and deletions for being responsible for model file, which change, looks into, and the membership credentials between administrative model file;
The data management module (7), is responsible for the data of output in the entire converting system operation of management, and is responsible for data Persistence;
It is characterized in that, this method comprises the following steps:
Step 0, using Modelica Modular Modeling Software, build the framework model Component Gallery (1);The framework model component Component in library (1) is not necessarily to define behavior, only needs defining interface;
Step 1 builds framework model using the component in the framework model Component Gallery (1), carries out line to component, determines frame The topological structure of structure model;
The framework model put up is imported into the converting system by step 2 by the model management module (6);
Step 3, the framework parsing module (4) analyze the framework model after importing, will need to be mapped as dynamic simulation The collect components of model get up, and submit to the subscriber interface module (3), user is allowed to select;
After step 4, user's confirmation, the subscriber interface module (3) generates reflecting for a former framework model and Dynamic Simulation Model Relation data is penetrated, and gives the data management module (7) management;
Step 5, the behavior injection module (5) extract mapping relations from the data management module (7), and are closed according to mapping System commands the model management module (6) to generate an empty Dynamic Simulation Model library (2);
The content that step 6, the behavior injection module (5) are lacked according to the Dynamic Simulation Model library (2), notifies the user Interface module (3) formation component equation input interface inputs the equation code of descriptive model behavior for user;
After step 7, user complete the input of equation code, the behavior injection module (5) commands the model management module (6), the Dynamic Simulation Model library (2) is written into behavior equation, is built into Dynamic Simulation Model, and give the model management Module (6) management;
The Dynamic Simulation Model library and the structure of the framework model Component Gallery are completely the same, the Dynamic Simulation Model library with The difference of the framework model Component Gallery is, defines the behavior of Dynamic Simulation Model;
Step 8, user pass through the models switching interface that the subscriber interface module (3) generate, switching model behavior, by framework mould Type switches to Dynamic Simulation Model;
When step 9, driving model are emulated, the model management module (6) loads the Dynamic Simulation Model library (2) and frame Structure model, framework model can search corresponding Dynamic Simulation Model and be loaded into from the Dynamic Simulation Model library (2);At this point, The topological structure of framework model is constant, but is provided with the behavior of Dynamic Simulation Model, i.e., conversion is for Dynamic Simulation Model;
Step 10 terminates.
CN201611256216.XA 2016-12-30 2016-12-30 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model Active CN106682323B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611256216.XA CN106682323B (en) 2016-12-30 2016-12-30 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611256216.XA CN106682323B (en) 2016-12-30 2016-12-30 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model

Publications (2)

Publication Number Publication Date
CN106682323A CN106682323A (en) 2017-05-17
CN106682323B true CN106682323B (en) 2019-11-12

Family

ID=58873404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611256216.XA Active CN106682323B (en) 2016-12-30 2016-12-30 A kind of converting system and its method that framework model is converted to Dynamic Simulation Model

Country Status (1)

Country Link
CN (1) CN106682323B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875151A (en) * 2018-05-07 2018-11-23 哈尔滨工程大学 Nuclear power secondary coolant circuit system parameterized simulation model rapid build system and construction method
CN111368391B (en) * 2019-12-25 2023-12-12 北京宇航系统工程研究所 Model conversion method oriented to carrier rocket system simulation
GB2591284B (en) * 2020-01-24 2022-05-04 Perkins Engines Co Ltd Powertrain controller
CN111522731B (en) * 2020-03-13 2023-06-23 中国电子科技集团公司第二十九研究所 Model integration method and device for online reloading of simulation model
CN113656889A (en) * 2021-08-02 2021-11-16 西安航天动力研究所 Rocket engine system architecture model and static calculation model mapping system and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521461A (en) * 2011-12-20 2012-06-27 李明 Simulation modeling method of electro-hydraulic servo valve based on Modelica language
CN102915388A (en) * 2012-09-19 2013-02-06 上海交通大学 Object-oriented nonlinear and non-causal modeling and simulation method for rotor dynamics system
CN103048929A (en) * 2012-12-25 2013-04-17 中南大学 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine
CN105468837A (en) * 2015-11-23 2016-04-06 苏州同元软控信息技术有限公司 IDS based automatic generation method for spacecraft electric simulation model

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521461A (en) * 2011-12-20 2012-06-27 李明 Simulation modeling method of electro-hydraulic servo valve based on Modelica language
CN102915388A (en) * 2012-09-19 2013-02-06 上海交通大学 Object-oriented nonlinear and non-causal modeling and simulation method for rotor dynamics system
CN103048929A (en) * 2012-12-25 2013-04-17 中南大学 Visualization process control real-time simulation method based on matrix laboratory (MATLAB) engine
CN105468837A (en) * 2015-11-23 2016-04-06 苏州同元软控信息技术有限公司 IDS based automatic generation method for spacecraft electric simulation model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Unambiguous power system dynamic modeling and simulation using modelica tools;Vanfretti L, Li W, Bogodorova T, et al;《Power & Energy Society General Meeting》;20130725;正文全文及摘要 *
基于Modelica太阳能电动汽车多领域统一建模与仿真;熊会元, 陈承鹤, 宗志坚,等;《武汉理工大学学报》;20111231;第33卷(第12期);101-105 *

Also Published As

Publication number Publication date
CN106682323A (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN106682323B (en) A kind of converting system and its method that framework model is converted to Dynamic Simulation Model
CN104573182B (en) A kind of design method for aircraft Multimode Control System
CN104598240B (en) A kind of cross-platform Simulation Model Development method and system
CN103107895B (en) A kind of call charge service regulation engine combined system and method thereof based on Command Line Parsing application rule
CN106681726B (en) Python model conversion is the method for Modelica model
CN105260555B (en) A kind of fault injection system and its method based on Modelica models
CN106873972A (en) Electric Power Network Planning emulation platform computing module cut-in method and system based on plug-in unit
CN103810646B (en) Improved projection integral algorithm based active power distribution system dynamic simulation method
CN110705078A (en) Simulation model development system and analysis method of nuclear power device
CN106886411A (en) A kind of protective relaying device logic figure collocation method based on QT
CN110543407B (en) Static analysis method for performance of identity intelligent contract
CN106250308A (en) A kind of simulation system based on emulation data model and method
CN107832042A (en) One kind is based on embedded software development method
CN106650149A (en) Modelica model-based runtime fault injection system and method
CN109582294A (en) A kind of Software Architecture Design Method of embedded machine learning system
CN106354515A (en) SystemC code generation system based on model
CN103793458B (en) Method for nondestructively converting AADL (architecture analysis and design language) into XML (extensible markup language)
CN106681727A (en) Modelica external function graphical editing system and implementation method thereof
CN105335161A (en) Method for conversion from TASM time abstract state machine to extension NTA automatic machine
CN104731705B (en) A kind of dirty data propagation path based on complex network finds method
CN107563047B (en) A kind of electric system Implementation of Virtual Experiment arranged side by side and device
CN105653772A (en) Method and system of PBX (Plastic-Bonded Explosives) particle compression moulding numerical simulation automatic modeling
CN103810335A (en) Complex system parallel simulation oriented assembly type description method
CN103049615A (en) Graph-based real-time simulation modeling method for control logics of engineering machine
CN106094561B (en) Marine Synthesize Electric Propulsion System modeling and simulating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant