CN105243223B - Program fast construction method based on Modelica - Google Patents

Program fast construction method based on Modelica Download PDF

Info

Publication number
CN105243223B
CN105243223B CN201510709638.7A CN201510709638A CN105243223B CN 105243223 B CN105243223 B CN 105243223B CN 201510709638 A CN201510709638 A CN 201510709638A CN 105243223 B CN105243223 B CN 105243223B
Authority
CN
China
Prior art keywords
modelica
module
function
interface
executable file
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
CN201510709638.7A
Other languages
Chinese (zh)
Other versions
CN105243223A (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.)
Wuhan Dingyuan Tongli 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 CN201510709638.7A priority Critical patent/CN105243223B/en
Publication of CN105243223A publication Critical patent/CN105243223A/en
Application granted granted Critical
Publication of CN105243223B publication Critical patent/CN105243223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of program fast construction method based on Modelica, includes the following steps, carries out logical partitioning to goal systems according to modeling requirement, sub- demand is abstracted as function module;Required external C/C++ function modules are determined, to realize the function of the submodule divided;Formulate each module interface agreement;Each C/C++ function modules are encapsulated using Modelica external functions;Using Modelica Blocks component construction input/output interfaces, each function module is integrated into Modelica models using the interface;Each input/output interface is attached using connect mechanism, data communicate between realizing each module, construct unified model;Unitized analyzing processing is carried out to model using Modelica emulation tools, generates executable file;According to different parameters, different result datas is obtained using executable file.The present invention proposes unified construction procedures method, solves different field program coupled problem, promotes co-development, effectively improves modeling efficiency.

Description

Program fast construction method based on Modelica
Technical field
The present invention relates to a kind of rapid build program technic more particularly to a kind of program rapid builds based on Modelica Method.
Background technology
Modeler, in face of increasingly complicated demand, needs to emulate diversified physical system, target system in modeling process Some of complex module in system needs plenty of time and energy that could realize;And correlation module function is in other language such as C/C++ In it is existing it is stable realize, modeler wishes that existing technology or function can be utilized at this time, by certain mechanism directly outside Portion's module improves development efficiency.
Invention content
It is an object of the invention to overcome problem above of the existing technology, a kind of program based on Modelica is provided Fast construction method can allow modeling personnel to use existing external module according to the demand of oneself, such as C/C++ function modules, Development efficiency is improved, co-development is promoted.
To realize above-mentioned technical purpose and the technique effect, the invention is realized by the following technical scheme:
A kind of program fast construction method based on Modelica, includes the following steps:
Step 1 carries out logical partitioning to goal systems according to modeling requirement, sub- demand is abstracted as function module;
Step 2 determines required external C/C++ function modules, to realize the function of the submodule divided;
Step 3 formulates each module interface agreement;
Step 3 encapsulates each C/C++ function modules using Modelica external functions;
Step 4, using Modelica Blocks component construction input/output interfaces, using the interface by each function module It is integrated into Modelica models;
Step 5 is attached each input/output interface using connect mechanism, and data are logical between realizing each module Letter, constructs unified model;
Step 6 carries out unitized analyzing processing to model using Modelica emulation tools, generates executable file;
Step 7 obtains different result datas using executable file according to different parameters.
Further, C/C++ interfaces are packaged using Modelica external functions, utilize Modelica Blocks Library builds input/output interface.
Further, it is communicated using the connect Mechanism establishing intermodular datas of Modelica, is emulated using Modelica Platform generates executable file.
The beneficial effects of the invention are as follows:
1, it proposes unified construction procedures method, solves different field program coupled problem, promote co-development, effectively carry High modeling efficiency.
2, propose that unified structure model library method, appointment function module interface agreement are adapted to using input/output interface Different structure demands.
Above description is only the general introduction of technical solution 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, below with presently preferred embodiments of the present invention and after coordinating attached drawing to be described in detail such as. The specific implementation mode of the present invention is shown in detail by following embodiment and its attached drawing.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and is constituted part of this application, this hair Bright illustrative embodiments and their description are not constituted improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the program fast construction method flow diagram based on Modelica.
Specific implementation mode
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.
Shown in referring to Fig.1, a kind of program fast construction method based on Modelica includes the following steps:
Step 1 carries out logical partitioning to goal systems according to modeling requirement, sub- demand is abstracted as function module;
Step 2 determines required external C/C++ function modules, to realize the function of the submodule divided;
Step 3 formulates each module interface agreement;
Step 3 encapsulates each C/C++ function modules using Modelica external functions;
Step 4, using Modelica Blocks component construction input/output interfaces, using the interface by each function module It is integrated into Modelica models;
Step 5 is attached each input/output interface using connect mechanism, and data are logical between realizing each module Letter, constructs unified model;
Step 6 carries out unitized analyzing processing to model using Modelica emulation tools, generates executable file;
Step 7 obtains different result datas using executable file according to different parameters.
Further, C/C++ interfaces are packaged using Modelica external functions, utilize Modelica Blocks Library builds input/output interface.
Further, realize that each intermodular data communicates using the connect mechanism of Modelica, it is imitative using Modelica True platform generates executable file.
Program construction person carries out logical partitioning according to demand to goal systems, logic construction procedures is carried out, without considering mould Specific implementation mechanism in block
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (1)

1. a kind of program fast construction method based on Modelica, which is characterized in that include the following steps:
Step 1 carries out logical partitioning to goal systems according to modeling requirement, sub- demand is abstracted as function module;
Step 2 determines required external C/C++ function modules, to realize the function of the submodule divided;
Step 3 formulates each module interface agreement;
Step 3 encapsulates each C/C++ function modules using Modelica external functions;
Step 4 is integrated each function module using the interface using Modelica Blocks component construction input/output interfaces Into Modelica models;
Step 5 is attached each input/output interface using connect mechanism, and data communicate between realizing each module, structure Build out unified model;
Step 6 carries out unitized analyzing processing to model using Modelica emulation tools, generates executable file;
Step 7 obtains different result datas using executable file according to different parameters.
CN201510709638.7A 2015-10-28 2015-10-28 Program fast construction method based on Modelica Active CN105243223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510709638.7A CN105243223B (en) 2015-10-28 2015-10-28 Program fast construction method based on Modelica

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510709638.7A CN105243223B (en) 2015-10-28 2015-10-28 Program fast construction method based on Modelica

Publications (2)

Publication Number Publication Date
CN105243223A CN105243223A (en) 2016-01-13
CN105243223B true CN105243223B (en) 2018-11-02

Family

ID=55040871

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510709638.7A Active CN105243223B (en) 2015-10-28 2015-10-28 Program fast construction method based on Modelica

Country Status (1)

Country Link
CN (1) CN105243223B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106202678A (en) * 2016-07-04 2016-12-07 北京空间飞行器总体设计部 Space flight interface data list is converted to the method and system of Model Framework
CN106681727B (en) * 2016-12-30 2020-10-02 苏州同元软控信息技术有限公司 Modelica external function graphical editing system and implementation method thereof
CN112115603B (en) * 2020-09-14 2023-08-22 苏州同元软控信息技术有限公司 Combined simulation method and system for Modelica model and AMESim model and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102043657A (en) * 2011-02-01 2011-05-04 苏州同元软控信息技术有限公司 File serialization method of model library of physical modeling language Modelica
CN102254464A (en) * 2011-08-10 2011-11-23 上海交通大学 Method for simulating mechanism motion virtual experiment based on mechanical principles of members
CN102289593A (en) * 2011-08-22 2011-12-21 上海交通大学 Multidisciplinary virtual experiment interactive simulation solution system
CN102622262A (en) * 2012-01-09 2012-08-01 华中科技大学 Distributed real-time interactive simulation system based on modelica modeling language
US8666709B1 (en) * 2008-01-08 2014-03-04 The Mathworks, Inc. Verification and validation system for a graphical model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8666709B1 (en) * 2008-01-08 2014-03-04 The Mathworks, Inc. Verification and validation system for a graphical model
CN102043657A (en) * 2011-02-01 2011-05-04 苏州同元软控信息技术有限公司 File serialization method of model library of physical modeling language Modelica
CN102254464A (en) * 2011-08-10 2011-11-23 上海交通大学 Method for simulating mechanism motion virtual experiment based on mechanical principles of members
CN102289593A (en) * 2011-08-22 2011-12-21 上海交通大学 Multidisciplinary virtual experiment interactive simulation solution system
CN102622262A (en) * 2012-01-09 2012-08-01 华中科技大学 Distributed real-time interactive simulation system based on modelica modeling language

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Modelica语言及其多领域统一建模与仿真机理;赵建军,等;《***仿真学报》;20060831;第18卷(第增刊2期);第570-573页 *

Also Published As

Publication number Publication date
CN105243223A (en) 2016-01-13

Similar Documents

Publication Publication Date Title
CN105243223B (en) Program fast construction method based on Modelica
CN111414695A (en) Modelica-based joint simulation system and construction method thereof
CN104573193B (en) A kind of spacecraft GNC system Fast design methods
CN104573287B (en) The Digital Simulation frame design method of unified model is bound based on interface
WO2007083134A2 (en) Modelling and simulation method
CN106202685B (en) A kind of software and hardware cooperating simulation accelerator operation environmental structure method and apparatus
CN105956267B (en) A kind of embedded emulation serial ports and modeling method based on equipment modeling language
CN102495552A (en) Real-time simulation system oriented to space-borne electronic system
WO2016155290A1 (en) Soc chip authentication system and authentication method for dynamic simulation of static compilation
CN104572268B (en) A kind of high-efficiency dynamic Method for HW/SW partitioning
CN106681727A (en) Modelica external function graphical editing system and implementation method thereof
Trung et al. Using FPGA for real time power monitoring in a NIALM system
CN105183485A (en) Visual software and hardware collaborative development method
CN106372359B (en) A kind of equipment virtual prototype system
Wainer et al. DEMES: a Discrete-Event methodology for Modeling and simulation of Embedded Systems
CN104102526A (en) Collaborative interface for co-simulation of PSCAD (power system computer aided design) with third-party simulation software or hardware
CN111709138A (en) CPS (cyber physical System) -space-time property oriented hybrid AADL (architecture analysis and design language) modeling and model conversion method
CN111143208B (en) Verification method for assisting FPGA to realize AI algorithm based on processor technology
Herrholz et al. The ANDRES project: analysis and design of run-time reconfigurable, heterogeneous systems
CN105242930B (en) A kind of system and method for automatic program execution flow chart
Ganesh Design Issues in Hardware/Software Co-Design
CN108170035A (en) A kind of flight control system of modelling
CN106528061A (en) Software-hardware collaborative design method for embedded system
Zemmouri et al. Integration and Implimentation System-On-A-Programmable-Chip (Sopc) In FPGA
Roquier et al. An integrated environment for HW/SW co-design based on a CAL specification and HW/SW code generators

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Liu Qi

Inventor after: Zhou Fanli

Inventor after: Zhang Junchen

Inventor after: Yang Hao

Inventor after: Ding Jianwan

Inventor after: Guo Junfeng

Inventor after: Gong Xiong

Inventor after: Chen Liping

Inventor before: Zhang Junchen

Inventor before: Yang Hao

Inventor before: Ding Jianwan

Inventor before: Guo Junfeng

Inventor before: Gong Xiong

Inventor before: Chen Liping

CB03 Change of inventor or designer information
TR01 Transfer of patent right

Effective date of registration: 20211118

Address after: 430073 a2020-14, floor 2, China Optics Valley Science and Technology Exhibition Center, No. 787, Gaoxin Avenue, Donghu New Technology Development Zone, Wuhan, Hubei (Wuhan area of free trade zone)

Patentee after: Wuhan Dingyuan Tongli Technology Co.,Ltd.

Address before: 215000 building B3, No. 99, Ren'ai Road, Suzhou Industrial Park, Jiangsu Province

Patentee before: SUZHOU TONGYUAN SOFTWARE & CONTROL TECHNOLOGY CO.,LTD.

TR01 Transfer of patent right