CN107479983A - Variable step multiprogram based on temporal scalable technology synchronously calculates system and method - Google Patents

Variable step multiprogram based on temporal scalable technology synchronously calculates system and method Download PDF

Info

Publication number
CN107479983A
CN107479983A CN201710561982.5A CN201710561982A CN107479983A CN 107479983 A CN107479983 A CN 107479983A CN 201710561982 A CN201710561982 A CN 201710561982A CN 107479983 A CN107479983 A CN 107479983A
Authority
CN
China
Prior art keywords
application program
time
scheduling time
multiprogram
calculating
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.)
Granted
Application number
CN201710561982.5A
Other languages
Chinese (zh)
Other versions
CN107479983B (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.)
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp Ltd
Original Assignee
Research Institute of Nuclear Power Operation
China Nuclear Power Operation Technology Corp 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 Research Institute of Nuclear Power Operation, China Nuclear Power Operation Technology Corp Ltd filed Critical Research Institute of Nuclear Power Operation
Priority to CN201710561982.5A priority Critical patent/CN107479983B/en
Publication of CN107479983A publication Critical patent/CN107479983A/en
Application granted granted Critical
Publication of CN107479983B publication Critical patent/CN107479983B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

The invention discloses a kind of multiprogram based on temporal scalable technology synchronously to calculate system and method, and the system includes some different types of application programs, and the application program of each type is used to calculate a kind of parameter in nuclear power field;Master scheduler, the master scheduler are used for the configuration scheduling time, and are spaced the scheduling time and issue call instruction;Wherein, the application program receives the dispatch command, and within the scheduling time, according to convergence criterion, setting some time step-length is completed to calculate, and all time step sums are equal to scheduling time;Sharing module is used to store and update the result of calculation of each time step of application program in the scheduling time.The present invention can carry out the cooperated computing of the application program of multiple variable steps simultaneously.Ensure to keep acting in agreement while the accurate calculating of each application program, computational accuracy is high, efficiency high.

Description

Variable step multiprogram based on temporal scalable technology synchronously calculates system and method
Technical field
The present invention relates to multitask multi-process cooperated computing field, and in particular to the variable step based on temporal scalable technology is more Program Synchronization computing system and method.
Background technology
With the progress of numerical computations, increasing complex process is included into the application category of numerical computations, still Single program can only often solve one or a kind of problem, and the analysis of complex process often relates to the coupling collaboration meter of multiple programs The comprehensive coupling meter for using core physics program and Thermal-hydraulic code is needed when calculating, such as calculating nuclear reactor power change Calculate, calculate nuclear power station outside the venue radioactive dosage when need synthesis use Atmospheric Diffusion program, source item calculation procedure and geography information The coupling of calculation procedure calculates.It is primary to solve to need solve distinct program during multiple programs carry out coupling cooperated computing Synchronous the problem of calculating.Single calculation procedure typically uses the meter of variable step due to the efficiency and computational accuracy that consider numerical computations Calculation method, it is exactly that program can change time step automatically according to the convergent criterion of numerical value, is calculating stable state and changing inviolent During transient state, using larger time step, accelerate calculating speed, small time step is used in violent transient state, it is ensured that calculating Convergence.Therefore, in multiple calculation procedure cooperated computings, typically using fixed step size, but due to the receipts of each calculation procedure Situation difference is held back, the computational accuracy of each calculation procedure, the collaboration of multiple calculation procedures are cannot be guaranteed by the way of fixed step size The precision of result of calculation is relatively low.
The content of the invention
For defect present in prior art, it is an object of the invention to provide the multiprogram based on temporal scalable technology It is synchronous to calculate system and method, the cooperated computing of the application program of multiple variable steps can be carried out simultaneously.
To achieve the above objectives, the present invention adopts the technical scheme that:
A kind of multiprogram synchronization computing system based on temporal scalable technology, including:
Some different types of application programs, the application program of each type are used to calculate one kind in nuclear power field Parameter;
Master scheduler, the master scheduler are used for the configuration scheduling time, and are spaced the scheduling time and issue call instruction; Wherein,
The application program receives the dispatch command, within the scheduling time, according to convergence criterion, when setting some Between step-length complete to calculate, and all time step sums are equal to scheduling time;
Sharing module, for storing and updating the calculating knot of each time step of application program in the scheduling time Fruit.
On the basis of above-mentioned technical proposal, each application program is according to the convergence criterion setting time step-length of itself For variable time step or step-length of fixing time.
On the basis of above-mentioned technical proposal, the master scheduler also sets up delay time, if application program is not described Complete to calculate in scheduling time, then judge whether the application program is completed between the scheduling time and the delay time Calculate, if so, then the master scheduler issues call instruction when the application program is completed and calculated, if it is not, the then homophony Degree device issues the call instruction at the end of the delay time, and the application program stops calculating.
On the basis of above-mentioned technical proposal, the delay time is three times of the scheduling time.
On the basis of above-mentioned technical proposal, a kind of calculating of the multiprogram synchronization computing system based on temporal scalable technology Method, comprise the following steps:
The master scheduler configuration scheduling time, and call instruction is issued according to scheduling time inter;
Some application programs perform call instruction, and each application program is according to the convergence criterion of itself, setting Some time step-length is calculated, and time step sum is equal to scheduling time;
Each application program is calculated within scheduling time according to the sequencing of time step, and often completes one After the calculating of individual time step, result of calculation is stored in sharing module and updated.
On the basis of above-mentioned technical proposal, the master scheduler also sets up delay time, if application program is not described Complete to calculate in scheduling time, then judge whether the application program is completed between the scheduling time and the delay time Calculate, if so, then the master scheduler issues call instruction when the application program is completed and calculated, if it is not, the then homophony Degree device issues the call instruction at the end of the delay time, and the application program stops calculating.
On the basis of above-mentioned technical proposal, the delay time is three times of the scheduling time.
On the basis of above-mentioned technical proposal, the physical process that the scheduling time calculates according to the application program is set It is fixed.
On the basis of above-mentioned technical proposal, the application program is the thermal-hydraulic journey for calculating main system hot water force Sequence, the drift net program for calculating fluid network, the electric program for calculating electrical network or for calculating logic process The logical program.
On the basis of above-mentioned technical proposal, each application program is according to the convergence criterion setting time step-length of itself For variable time step or step-length of fixing time.
Compared with prior art, the advantage of the invention is that:
1) it is of the invention to be applied based on the multiprogram synchronization computing system of temporal scalable technology within the scheduling time of setting Program according to convergence then, the adjust automatically step-length time, when calculating stable state and the violent transient state of change, using larger time step It is long, accelerate calculating speed, less time step is used in violent transient state, it is ensured that the convergence of calculating, guarantee is each to apply journey Keep acting in agreement while the accurate calculating of sequence, computational accuracy is high, efficiency high.
2) sharing module is provided with the present invention, the result of calculation of each application program is stored in sharing module, each The needs that application program calculates according to itself call result from sharing module is straight compared between application program in the prior art Connect for calling transmission result of calculation, system development is more simple, and data maintenance is convenient, and operating efficiency is higher.
Brief description of the drawings
Fig. 1 is the method flow diagram in the embodiment of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.
Shown in Figure 1, the embodiment of the present invention provides a kind of multiprogram synchronization computing system based on temporal scalable technology, Including:Some different types of application program, master scheduler and sharing modules.Wherein, each application program is used to calculate nuclear power Certain a kind of parameter in field, the application program in the present embodiment are respectively that reactor core thing is calculated in nuclear power plant's gamut simulator The core physics program of reason process, the Thermal-hydraulic code of main system thermal-hydraulic is calculated, calculates the drift net program of fluid network, The electric program of electrical network, the logical program of calculating logic process are calculated, these application programs need cooperated computing mould together Intend the operation characteristic of whole nuclear power plant.
Master scheduler is used for the configuration scheduling time, and be spaced scheduling time to correlation application program issue call instruction, Master scheduler 10 call instructions of transmission per second in the present embodiment, scheduling time 100ms, interior each application program per second can With called different number.The physical process that scheduling time is calculated according to application program is set, for example, one valve of simulation from Closed mode needs 10 seconds to full-gear, real process, and this physical process is exactly 10 seconds.
Application program receives dispatch command, and within scheduling time, according to convergence criterion, setting some time step-length completes meter Calculate, each application program is variable time step or step-length of fixing time according to the convergence criterion setting time step-length of itself, and institute Having time step-length sum is equal to scheduling time.After application program is called once, corresponding time step is calculated, place after having calculated In frozen state, the scheduling next time of master scheduler is waited.
Sharing module, for storing and updating the result of calculation of each time step of application program in scheduling time, application Program needs to use extracting from sharing module for the result of calculation of other applications in calculating process, realizes application program Between data interaction.
Master scheduler is additionally provided with delay time, if the calculating time of application program is less than or equal to scheduling time, homophony Degree device issues dispatch command according to scheduling frequency, if the calculating time of application program is more than scheduling time, i.e. application program does not exist Complete to calculate in scheduling time, then judge whether the calculating time of application program is more than allocating time, if so, i.e. in delay time Interior application program, which does not complete, to be calculated, then master scheduler issues call instruction at the end of delay time, and mandatory use program is stopped Only calculate, if it is not, then master scheduler issues call instruction when application program is completed and calculated.Delay time in the present embodiment is Three times of scheduling time.
A kind of computational methods of the multiprogram synchronization computing system based on temporal scalable technology, comprise the following steps:
The master scheduler configuration scheduling time, and call instruction is issued to the application program of correlation according to scheduling time inter, Wherein application program is respectively to be used to calculate the Thermal-hydraulic code of main system hot water force, the drift net journey for calculating fluid network Sequence, the electric program for calculating electrical network and the logical program for calculating logic process.
Related application program performs call instruction, and within scheduling time, each application program is according to convergence criterion, setting Some time step-length is completed to calculate, and each application program can be using setting time step-length as change time step according to the convergence criterion of itself Long or step-length of fixing time, and all time step sums are equal to scheduling time;
Each application program is calculated within scheduling time according to the sequencing of time step, and often complete one when Between step-length calculating after, result of calculation is stored in sharing module, and the result of calculation of each application program is according to time step Sequential update.
Master scheduler is additionally provided with delay time, judges whether the calculating time of application program is not more than scheduling time, if It is that then master scheduler issues dispatch command according to scheduling frequency;If it is not, determining whether the calculating of application program is dispatching Between time and delay time, if so, then master scheduler issues call instruction when application program is completed and calculated, if it is not, then leading Scheduler program issues call instruction at the end of delay time, and mandatory use program stopped calculates.During delay in the present embodiment Between be three times of scheduling time.The physical process that the scheduling time calculates according to the application program is set.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from On the premise of the principle of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as the protection of the present invention Within the scope of.The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.

Claims (10)

  1. A kind of 1. multiprogram synchronization computing system based on temporal scalable technology, it is characterised in that including:
    Some different types of application programs, a kind of ginseng that the application program of each type is used to calculate in nuclear power field Number;
    Master scheduler, the master scheduler are used for the configuration scheduling time, and are spaced the scheduling time and issue call instruction;Its In,
    The application program receives the dispatch command, within the scheduling time, according to convergence criterion, setting some time step It is long to complete to calculate, and all time step sums are equal to scheduling time;
    Sharing module, for storing and updating the result of calculation of each time step of application program in the scheduling time.
  2. A kind of 2. multiprogram synchronization computing system based on temporal scalable technology as claimed in claim 1, it is characterised in that:Often One application program is variable time step or step-length of fixing time according to the convergence criterion setting time step-length of itself.
  3. A kind of 3. multiprogram synchronization computing system based on temporal scalable technology as claimed in claim 1, it is characterised in that:
    The master scheduler also sets up delay time, if application program is completed to calculate not within the scheduling time, judges institute State whether application program is completed to calculate between the scheduling time and the delay time, if so, then the master scheduler exists The application program is completed to issue call instruction when calculating, if it is not, under then the master scheduler is at the end of the delay time Send out call instruction described, the application program stops calculating.
  4. A kind of 4. multiprogram synchronization computing system based on temporal scalable technology as claimed in claim 3, it is characterised in that:
    The delay time is three times of the scheduling time.
  5. 5. based on a kind of calculating side of the multiprogram synchronization computing system based on temporal scalable technology as claimed in claim 1 Method, it is characterised in that comprise the following steps:
    The master scheduler configuration scheduling time, and call instruction is issued according to scheduling time inter;
    Some application programs perform call instruction, and each application program is some according to the convergence criterion of itself, setting Time step is calculated, and time step sum is equal to scheduling time;
    Each application program is calculated within scheduling time according to the sequencing of time step, and often complete one when Between step-length calculating after, by result of calculation be stored in sharing module in and update.
  6. 6. a kind of variable step multiprogram synchronization computational methods based on temporal scalable technology as claimed in claim 5, its feature It is:
    The master scheduler also sets up delay time, if application program is completed to calculate not within the scheduling time, judges institute State whether application program is completed to calculate between the scheduling time and the delay time, if so, then the master scheduler exists The application program is completed to issue call instruction when calculating, if it is not, under then the master scheduler is at the end of the delay time Send out call instruction described, the application program stops calculating.
  7. 7. a kind of variable step multiprogram synchronization computational methods based on temporal scalable technology as claimed in claim 6, its feature It is:The delay time is three times of the scheduling time.
  8. 8. a kind of variable step multiprogram synchronization computational methods based on temporal scalable technology as claimed in claim 5, its feature It is:The physical process that the scheduling time calculates according to the application program is set.
  9. 9. a kind of variable step multiprogram synchronization computational methods based on temporal scalable technology as claimed in claim 5, its feature It is:The application program is for calculating the Thermal-hydraulic code of main system hot water force, the drift net for calculating fluid network Program, the electric program for calculating electrical network or the logical program for calculating logic process.
  10. 10. a kind of variable step multiprogram synchronization computational methods based on temporal scalable technology as claimed in claim 5, its feature It is:Each application program is variable time step or timing spacer step according to the convergence criterion setting time step-length of itself It is long.
CN201710561982.5A 2017-07-11 2017-07-11 Variable step length multi-program synchronous computing system and method based on time domain control technology Active CN107479983B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710561982.5A CN107479983B (en) 2017-07-11 2017-07-11 Variable step length multi-program synchronous computing system and method based on time domain control technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710561982.5A CN107479983B (en) 2017-07-11 2017-07-11 Variable step length multi-program synchronous computing system and method based on time domain control technology

Publications (2)

Publication Number Publication Date
CN107479983A true CN107479983A (en) 2017-12-15
CN107479983B CN107479983B (en) 2021-04-20

Family

ID=60595068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710561982.5A Active CN107479983B (en) 2017-07-11 2017-07-11 Variable step length multi-program synchronous computing system and method based on time domain control technology

Country Status (1)

Country Link
CN (1) CN107479983B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582468A (en) * 2018-12-20 2019-04-05 武汉瓯越网视有限公司 Countdown synchronous method, device, storage medium and equipment based on variable

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587446A (en) * 2009-06-30 2009-11-25 中国运载火箭技术研究院 Realistic model conversion method based on distributed interactive simulation platform
CN102662428A (en) * 2012-03-01 2012-09-12 中国科学院计算技术研究所 Clock synchronization method for network simulation environment of discrete event
CN102968311A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 Onboard embedded software development platform
CN103559071A (en) * 2013-10-12 2014-02-05 中广核(北京)仿真技术有限公司 Method for integrating engineering analysis software in nuclear power simulation system and nuclear power simulation system
US20150067304A1 (en) * 2013-08-28 2015-03-05 Fujitsu Limited Information processing apparatus and method of controlling information processing apparatus
CN104636260A (en) * 2013-11-06 2015-05-20 深圳市风景智联科技有限公司 Data management method and system for charging services
CN104678778A (en) * 2013-11-08 2015-06-03 洛克威尔自动控制技术股份有限公司 Time synchronization of signal transmission intervals for simulating a machine in industrial automation
CN104809932A (en) * 2015-04-22 2015-07-29 北京广利核系统工程有限公司 Digitized security level control system simulation device of nuclear power plants
CN105955811A (en) * 2016-05-05 2016-09-21 北京思特奇信息技术股份有限公司 System and method for achieving task scheduling based on remote invoking mode
CN106445640A (en) * 2016-10-20 2017-02-22 南京南瑞继保电气有限公司 Running method for embedded type virtual device and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587446A (en) * 2009-06-30 2009-11-25 中国运载火箭技术研究院 Realistic model conversion method based on distributed interactive simulation platform
CN102662428A (en) * 2012-03-01 2012-09-12 中国科学院计算技术研究所 Clock synchronization method for network simulation environment of discrete event
CN102968311A (en) * 2012-12-13 2013-03-13 中国航空无线电电子研究所 Onboard embedded software development platform
US20150067304A1 (en) * 2013-08-28 2015-03-05 Fujitsu Limited Information processing apparatus and method of controlling information processing apparatus
CN103559071A (en) * 2013-10-12 2014-02-05 中广核(北京)仿真技术有限公司 Method for integrating engineering analysis software in nuclear power simulation system and nuclear power simulation system
CN104636260A (en) * 2013-11-06 2015-05-20 深圳市风景智联科技有限公司 Data management method and system for charging services
CN104678778A (en) * 2013-11-08 2015-06-03 洛克威尔自动控制技术股份有限公司 Time synchronization of signal transmission intervals for simulating a machine in industrial automation
CN104809932A (en) * 2015-04-22 2015-07-29 北京广利核系统工程有限公司 Digitized security level control system simulation device of nuclear power plants
CN105955811A (en) * 2016-05-05 2016-09-21 北京思特奇信息技术股份有限公司 System and method for achieving task scheduling based on remote invoking mode
CN106445640A (en) * 2016-10-20 2017-02-22 南京南瑞继保电气有限公司 Running method for embedded type virtual device and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582468A (en) * 2018-12-20 2019-04-05 武汉瓯越网视有限公司 Countdown synchronous method, device, storage medium and equipment based on variable
CN109582468B (en) * 2018-12-20 2021-11-09 武汉瓯越网视有限公司 Variable-based countdown synchronization method and device, storage medium and equipment

Also Published As

Publication number Publication date
CN107479983B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN108736465A (en) A kind of future-state electric network model construction method and device
CN104809932B (en) A kind of nuclear power plant's digital safety level Control system simulation device
CN102298334B (en) Breakpoint simulation controller and control method for ground simulation system
CN108958157A (en) Control process control dispatching method, device, computer equipment and storage medium
CN102315929A (en) Timing synchronization controller of ground simulation system
CN103927219A (en) Accurate-period simulation model for reconfigurable special processor core and hardware architecture thereof
CN103279622A (en) Method for dispatching distributed simulation models in aircraft simulation system
CN101794993A (en) Grid simulation real-time parallel computing platform based on MPI (Multi Point Interface) and application thereof
CN111767031A (en) Nuclear power industry internet experiment bed based on emulation
Aravena et al. A distributed asynchronous algorithm for the two-stage stochastic unit commitment problem
CN109978233A (en) The Optimization Scheduling a few days ago and system of long-term electricity trade contract in a kind of consideration
CN106909529A (en) A kind of Machine learning tools middleware and machine learning training method
CN104407519B (en) Semi-physical simulation system of AC-DC-AC metallurgy rolling mill transmission system
CN103605293B (en) A kind of substation relay protection emulation test system and emulation test method thereof
CN104865842B (en) Hybrid simulation system and hybrid simulation method suitable for stabilization control device interface
CN110266004A (en) A kind of standardization construction method of integrated energy system energy hinge model
CN107479983A (en) Variable step multiprogram based on temporal scalable technology synchronously calculates system and method
CN106786533B (en) The acquisition methods and device of electric dispatching plan data
CN101924713A (en) Real-time assurance switched interconnection buffer capacity determining method
CN104463430A (en) Load dispatch control system
CN110569615A (en) multi-source heterogeneous embedded software collaborative simulation test method
Duan et al. Parallel transmission distribution co-simulation leveraging a commercial distribution simulator
CN103310002B (en) For the Web service method for packing and system of weather forecast computing system MM5
CN106951026B (en) A kind of daylight-saving time implementation method based on single clock system
Wang et al. Evaluation of virtual controller interface device and software-in-the-loop simulation

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