CN102662329A - Simulation method for mixing system based on message driving - Google Patents

Simulation method for mixing system based on message driving Download PDF

Info

Publication number
CN102662329A
CN102662329A CN2012100710266A CN201210071026A CN102662329A CN 102662329 A CN102662329 A CN 102662329A CN 2012100710266 A CN2012100710266 A CN 2012100710266A CN 201210071026 A CN201210071026 A CN 201210071026A CN 102662329 A CN102662329 A CN 102662329A
Authority
CN
China
Prior art keywords
message
discrete event
state
continuous state
discrete
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.)
Pending
Application number
CN2012100710266A
Other languages
Chinese (zh)
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.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
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 Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN2012100710266A priority Critical patent/CN102662329A/en
Publication of CN102662329A publication Critical patent/CN102662329A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a simulation method for a mixing system based on message driving. Changing of a continuous state of a simulation model and transferring of a discrete state are described in the form of a message. When carrying out simulation, two layer message queues are constructed, and the two layer message queues respectively are a message container layer and a message injection layer. The message container layer defines a discrete event message, a logic relation of the discrete event message and the like, wherein the discrete event message comprises a random message; the message injection layer is a message to be sent at the current state point, and the message injection layer is determined according to the continuous state message and the logic relation of the message inside the message container layer. According to the invention, simulation operation is promoted by a message driving way, simulation of the complex mixing system is realized, the constructed two layer message queues can describe the continuous state and the discrete state, and describe the complexing logic relations between the different states, thereby the simulation for the mixing system with the complex logic that can not be realized by an existing hybrid automata method is realized.

Description

A kind of commingled system emulation mode based on message-driven
Technical field
The present invention relates to the computer simulation technique field, be specially a kind of commingled system emulation mode based on message-driven.
Background technology
Commingled system is one type of complex dynamic systems that comprises continuous variable system and discrete event system, is characterized in both changing continuously in time, receives the driving of discrete accident again.
Emulation mode to commingled system is mainly the mixing automation method at present.The differential equation that it will describe continuous dynamic behaviour is embedded in traditional discrete state machine model, thereby makes automaton model have the ability of describing continuous behavior concurrently.In mixing automat, state is regarded as under one group of differential equation control, the continuous change procedure of one group of continuous variable, and the transfer of state regarded as the driving of incident.Though mix the commingled system emulation that the automat method can be accomplished; But have dependence, cause-effect relationship when between the incident, or incident is occurrent, in the time of can not confirming in advance; Mix the state transitions that the automat method just can't be expected, thereby also can't reach the emulation order ground of expection.
Summary of the invention
The technical matters that solves
For solving the problem that prior art exists, the present invention proposes a kind of commingled system emulation mode based on message-driven.
Technical scheme
The emulation mode that the present invention proposes is all described the variation of realistic model continuous state and the transfer of discrete state with form of message; During emulation; Make up two-layer message queue; Two-layer message queue is respectively message container layer and message input horizon, and the message container layer has defined the logical relation of discrete event message and discrete event message etc., and wherein discrete event message comprises random message; The message input horizon is the message that needs transmission at the current state point, and the message input horizon is confirmed according to the logical relation of message in continuous state message and the message container layer.This advances simulation run with the message-driven mode; Realize the emulation of COMPLEX MIXED system; The two-layer message queue that makes up can either be described continuously and discrete state; Complicated logical relation also can be described between each state, thus realize existing mix automation method the commingled system emulation of the complex logic that can not accomplish.
Technical scheme of the present invention is:
Said a kind of commingled system emulation mode based on message-driven is characterized in that: may further comprise the steps:
Step 1: set up realistic model, the continuous state behavior of definition model in realistic model, and the pairing continuous state change message of definition continuous state behavior; The continuous state change message is made up of state initial message, state transition message and state output message;
Step 2: definition discrete event behavior in realistic model, set up message container, the pairing discrete event message of discrete event behavior is added in the message container, and in message container, set the logical relation and the parameter of discrete event message; Wherein discrete event message is made up of unique sequence number, message explanation and message parameter;
Step 3: carry out simulation initialisation to realistic model transmit status initial message;
Step 4: advance with continuous state; Each emulation step is to realistic model transmit status migration message and state output message; Searching message container afterwards; Transmitting time and logical relation according to discrete event message are added qualified discrete event message to message injection formation, and transmission finishes successively, finishes until emulation.
Beneficial effect
The present invention all describes the transfer of the variation of continuous state and discrete state with form of message, during emulation, make up two-layer message queue, serve as theme with the continuous state time, and be that main mode is carried out continuously the migration with discrete state, propelling simulation run with message-driven.Than existing mixing automation method, the present invention can accomplish the emulation of commingled system, and continuous and discrete state modeling method unification reduces commingled system modeling and simulating difficulty and complexity in the commingled system; And the present invention has the commingled system behavior description ability of complex logic relation; Can there be dependence, cause-effect relationship between realization event; Or incident is COMPLEX MIXED system modelling emulation such as occurrent, for the modeling and simulating of this type systematic provides new approach.
Description of drawings
The message-driven synoptic diagram of Fig. 1: embodiment 1;
Embodiment
Embodiment 1:
With reference to accompanying drawing 1, in the present embodiment, step 1: set up realistic model, comprise emulation submodel 1~emulation submodel n; The continuous state behavior of definition model in realistic model, and the pairing continuous state change message of definition continuous state behavior; The continuous state change message is made up of state initial message, state transition message and state output message;
Step 2: definition discrete event behavior in realistic model, set up message container, the pairing discrete event message of discrete event behavior is added in the message container, and in message container, set the logical relation and the parameter of discrete event message; Discrete event message is made up of unique sequence number, message explanation and message parameter, comprises the transmitting time and the logical relation of discrete event message in message explanation and the message parameter; In the present embodiment, discrete event message comprises MSG1~MSGn;
Step 3: carry out simulation initialisation to realistic model transmit status initial message;
Step 4: advance with continuous state; Each emulation step is to realistic model transmit status migration message and state output message; Searching message container afterwards; Transmitting time and logical relation according to discrete event message are added qualified discrete event message to message injection formation, and transmission finishes successively, finishes until emulation.
In the present embodiment, T0, T1 ..., the simulation time point of Tf for advancing by a fixed step size, wherein T0 is the emulation start time, Tf is the emulation concluding time.The state initial message sends before T0, and state transition message and state output message are all sent at each simulation time point, carry out the calculating of continuous state.
In the present embodiment; At T2 constantly; Two discrete event MSG2 from message container, have been retrieved and MSG4 needs this to send constantly through the event scanning method; These two discrete event message are joined message inject formation, constantly issue corresponding emulation submodel respectively at T2, realistic model carries out the emulation of discrete event.
Present embodiment was served as theme with the time of continuous state; With message-driven is main mode, not only on each simulation time point, carries out the migration of continuous state, also from message queue, sends discrete state message; Carry out the migration of discrete state, so accomplish the emulation of commingled system.Message is injected formation and is obtained from message container according to the message logic relation, and complicated message logic relation can be set.
Embodiment 2:
Present embodiment is the emulation to carrier rocket boosting flight process; Carrier rocket boosting flight process is very complicated; Not only there are dynamics, the kinematics parameters of position, attitude etc. to change continuously; Also have complicated sequential action, these sequential actions all are the incidents that disperses, thereby are typical complex commingled systems.
A simple carrier rocket flight sequential: throw radome fairing during 120s, engine cutoff when booster runs out of gas, roll booster separates behind the engine cutoff 2s, and gust disturbance appears in secondary engine start at random behind the roll booster separation 2s during 10s-50s.
Be not difficult to find for this sequential: throw the radome fairing discrete event and on absolute time point, take place; The booster shut down event will be calculated according to fuel; The roll booster departure event then depends on the booster shut down event; Secondary engine start incident depends on the booster shut down event again, and the gust disturbance incident is an event at random.
The step that adopts the inventive method to carry out emulation so is:
Step 1: set up carrier rocket powered phase realistic model, the continuous state behavior of definition model in realistic model is like the continuous variation of model dynamics, kinematics parameters under the effect of power etc.; And the pairing continuous state change message of definition continuous state behavior; The continuous state change message is made up of state initial message, state transition message and state output message.
Step 2: definition discrete event behavior in realistic model, when taking place like throwing radome fairing incident, the rocket structure quality deducts the radome fairing quality; In the continuous state behavior, the computing fuel surplus when residual fuel amount is 0, triggers the booster shut down event, in the engine cutoff incident, motor power is put 0; The gust disturbance incident speed that makes produces an additional incremental.
Set up message container, the pairing discrete event message of discrete event behavior is added in the message container, and in message container, set the logical relation and the parameter of discrete event message; Discrete event message is made up of unique sequence number, message explanation and message parameter; In the present embodiment, discrete event message comprises throws radome fairing message, engine cutoff message, roll booster detach message, secondary initiation message, gust disturbance message.
Step 3: when emulation begins, carry out simulation initialisation to model transmit status initial message;
Step 4: in the simulation run process; Advance with continuous state; Each emulation step, the searching message container added qualified discrete event message to message injection formation according to the transmitting time and the logical relation of discrete event message afterwards to realistic model transmit status migration message and state output message; And transmission finishes successively, so finishes until emulation.Send at 31s at random like gust disturbance message; When 120s, throw radome fairing message and meet the transmission condition, then when 120s, add this message to the injection formation, and send to model; When 140s, motor fuel exhausts in continuous state calculates, and injection engine shutdown message in message queue is sent engine cutoff message this moment from message queue.2s sends the roll booster detach message afterwards.

Claims (1)

1. commingled system emulation mode based on message-driven is characterized in that: may further comprise the steps:
Step 1: set up realistic model, the continuous state behavior of definition model in realistic model, and the pairing continuous state change message of definition continuous state behavior; The continuous state change message is made up of state initial message, state transition message and state output message;
Step 2: definition discrete event behavior in realistic model, set up message container, the pairing discrete event message of discrete event behavior is added in the message container, and in message container, set the logical relation and the parameter of discrete event message; Wherein discrete event message is made up of unique sequence number, message explanation and message parameter;
Step 3: carry out simulation initialisation to realistic model transmit status initial message;
Step 4: advance with continuous state; Each emulation step is to realistic model transmit status migration message and state output message; Searching message container afterwards; Transmitting time and logical relation according to discrete event message are added qualified discrete event message to message injection formation, and transmission finishes successively, finishes until emulation.
CN2012100710266A 2012-03-18 2012-03-18 Simulation method for mixing system based on message driving Pending CN102662329A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100710266A CN102662329A (en) 2012-03-18 2012-03-18 Simulation method for mixing system based on message driving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100710266A CN102662329A (en) 2012-03-18 2012-03-18 Simulation method for mixing system based on message driving

Publications (1)

Publication Number Publication Date
CN102662329A true CN102662329A (en) 2012-09-12

Family

ID=46771835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100710266A Pending CN102662329A (en) 2012-03-18 2012-03-18 Simulation method for mixing system based on message driving

Country Status (1)

Country Link
CN (1) CN102662329A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336884A (en) * 2013-05-30 2013-10-02 南京大学 Modeling and path-oriented reachability analysis method of non-linear hybrid system
CN106777228A (en) * 2016-12-26 2017-05-31 北京金山安全软件有限公司 Message pushing method and device and electronic equipment
CN109471448A (en) * 2018-12-27 2019-03-15 西北工业大学 One kind being based on event driven flexible spacecraft attitude control method
CN112463326A (en) * 2020-11-25 2021-03-09 中国人民解放军海军航空大学 Simulation propulsion method, device, equipment and medium for continuous discrete hybrid system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103336884A (en) * 2013-05-30 2013-10-02 南京大学 Modeling and path-oriented reachability analysis method of non-linear hybrid system
CN106777228A (en) * 2016-12-26 2017-05-31 北京金山安全软件有限公司 Message pushing method and device and electronic equipment
CN109471448A (en) * 2018-12-27 2019-03-15 西北工业大学 One kind being based on event driven flexible spacecraft attitude control method
CN112463326A (en) * 2020-11-25 2021-03-09 中国人民解放军海军航空大学 Simulation propulsion method, device, equipment and medium for continuous discrete hybrid system

Similar Documents

Publication Publication Date Title
CN102662329A (en) Simulation method for mixing system based on message driving
CN107942720A (en) A kind of online flight Simulation System of portable type ground
CN104063537B (en) Multi-body dynamics parameter determination system based on distributive time trigger and method thereof
CN103792851A (en) Wireless ad hoc network-based cluster spacecraft semi-physical simulation system and method
CN106227968B (en) A kind of spacecraft sustainer Burnout optimization method
Xue et al. Dynamic coordinated control strategy of power on gear shifting for novel dual motor electric vehicle
CN102717794A (en) Modularized hybrid power train control
CN102354217A (en) Method for controlling autonomous rendezvous between spacecrafts under action of impulse thrust
CN105059565B (en) A kind of aircraft floor flight validation system
CN102426522B (en) CPS (Cyber Physical Systems) modeling and verification method based on transformation from Hybrid UML (Unified Modeling Language) to DAP (Differential-Algebraic Program)
CN115630937B (en) Logistics network simulation time synchronization method, device and storage medium
Yanhui et al. Flight control system simulation platform for UAV based on integrating simulink with stateflow
CN105843070A (en) Main steam isolation valve driving device and combined simulation modeling method thereof
CN113515059B (en) Multi-motor aircraft motor controller time-sharing multiplexing semi-physical test system based on RT-LAB
Li et al. Speed planning for connected and automated vehicles in urban scenarios using deep reinforcement learning
CN109062044A (en) A kind of terminal iterative learning docking control method
Hai et al. Civil aircraft landing gear brake system development and evaluation using model based system engineering
CN105511292A (en) Distributed simulation platform based on hardware-in-the-loop and simulation method
CN106712653B (en) Electric machine control system and method based on FPGA
Lin et al. Top-level modeling theory of multi-discipline virtual prototype
Wang et al. Event‐triggered prescribed performance robust collision‐free capturing control for drag‐free spacecraft system
CN109510536B (en) Digital conversion device for speed-increasing signal of generator
CN107292053A (en) A kind of sequential synchronous method
Chen et al. Design and research of green electric taxiing system based on MBSE method
Miyazaki An evaluation pattern generation scheme for electric components in hybrid electric vehicles

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120912