CN107479983B - Variable step length multi-program synchronous computing system and method based on time domain control technology - Google Patents

Variable step length multi-program synchronous computing system and method based on time domain control technology Download PDF

Info

Publication number
CN107479983B
CN107479983B CN201710561982.5A CN201710561982A CN107479983B CN 107479983 B CN107479983 B CN 107479983B CN 201710561982 A CN201710561982 A CN 201710561982A CN 107479983 B CN107479983 B CN 107479983B
Authority
CN
China
Prior art keywords
time
application program
calculation
program
scheduling
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
CN201710561982.5A
Other languages
Chinese (zh)
Other versions
CN107479983A (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

Images

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 multi-program synchronous computing system and a method based on a time domain control technology, wherein the system comprises a plurality of application programs of different types, and each type of application program is used for computing a type of parameters in the nuclear power field; the main scheduler is used for setting scheduling time and issuing a calling instruction at intervals of the scheduling time; the application program receives the scheduling instruction, sets a plurality of time steps according to a convergence criterion within the scheduling time to complete calculation, and the sum of all the time steps is equal to the scheduling time; and the sharing module is used for storing and updating the calculation result of each time step of the application program in the scheduling time. The invention can simultaneously carry out the cooperative calculation of a plurality of step-length-variable application programs. The method and the device ensure the accurate calculation of each application program and keep the pace consistent, and have high calculation accuracy and high efficiency.

Description

Variable step length multi-program synchronous computing system and method based on time domain control technology
Technical Field
The invention relates to the field of multitask and multiprocess collaborative computing, in particular to a variable step length and multiprogram synchronous computing system and method based on a time domain control technology.
Background
With the progress of numerical calculation, more and more complex processes are brought into the application scope of numerical calculation, but a single program can only solve one or one kind of problems, and the analysis of the complex processes usually involves the coupling cooperative calculation of a plurality of programs, for example, the coupling calculation of a core physical program and a thermal hydraulic program needs to be comprehensively used when calculating the power change of a nuclear reactor, and the coupling calculation of an atmospheric diffusion program, a source item calculation program and a geographic information calculation program needs to be comprehensively used when calculating the off-site radioactive dose of a nuclear power plant. In the process of coupling and cooperative computing of a plurality of programs, the problem that synchronous computing of different programs needs to be solved is solved firstly. The single calculation program generally adopts a variable step length calculation method by considering the efficiency and the accuracy of numerical calculation, namely, the program can automatically change the time step length according to the criterion of numerical convergence, and adopts a larger time step length to accelerate the calculation speed when calculating the transient state with stable state and non-drastic change, and adopts a small time step length when calculating the transient state with violent change, thereby ensuring the convergence of calculation. Therefore, when a plurality of calculation programs perform cooperative calculation, a fixed step is generally used, but since the convergence conditions of each calculation program are different, the calculation accuracy of each calculation program cannot be ensured by adopting the fixed step method, and the accuracy of the cooperative calculation result of the plurality of calculation programs is low.
Disclosure of Invention
In view of the defects in the prior art, the present invention aims to provide a system and a method for multi-program synchronous computation based on a time domain control technology, which can perform collaborative computation of a plurality of variable-step-size applications at the same time.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows:
a multi-program synchronous computing system based on time domain control techniques, comprising:
the system comprises a plurality of different types of application programs, wherein each type of application program is used for calculating a type of parameter in the nuclear power field;
the main scheduler is used for setting scheduling time and issuing a calling instruction at intervals of the scheduling time; wherein the content of the first and second substances,
the application program receives the scheduling instruction, and sets a plurality of time step lengths to finish calculation according to a convergence criterion within the scheduling time, wherein the sum of all the time step lengths is equal to the scheduling time;
and the sharing module is used for storing and updating the calculation result of each time step of the application program in the scheduling time.
On the basis of the technical scheme, each application program sets the time step as a variable time step or a fixed time step according to the convergence criterion of the application program.
On the basis of the technical scheme, the main scheduler further sets delay time, if the application program does not finish the calculation within the scheduling time, whether the calculation of the application program between the scheduling time and the delay time is finished is judged, if yes, the main scheduler issues a calling instruction when the calculation of the application program is finished, if not, the main scheduler issues the calling instruction when the delay time is finished, and the application program stops the calculation.
On the basis of the technical scheme, the delay time is three times of the scheduling time.
On the basis of the technical scheme, the computing method of the multi-program synchronous computing system based on the time domain control technology comprises the following steps:
the main dispatcher sets dispatching time and issues a calling instruction according to the dispatching time interval;
the application programs execute the call instruction, each application program sets a plurality of time step lengths for calculation according to the convergence criterion of the application program, and the sum of the time step lengths is equal to the scheduling time;
and each application program carries out calculation according to the sequence of the time step in the scheduling time, and after each time of finishing the calculation of one time step, the calculation result is stored in the sharing module and updated.
On the basis of the technical scheme, the main scheduler further sets delay time, if the application program does not finish the calculation within the scheduling time, whether the calculation of the application program between the scheduling time and the delay time is finished is judged, if yes, the main scheduler issues a calling instruction when the calculation of the application program is finished, if not, the main scheduler issues the calling instruction when the delay time is finished, and the application program stops the calculation.
On the basis of the technical scheme, the delay time is three times of the scheduling time.
On the basis of the technical scheme, the scheduling time is set according to the physical process calculated by the application program.
On the basis of the technical scheme, the application program is a thermohydraulic program for calculating the main system thermohydraulic power, a flow network program for calculating a fluid network, an electrical program for calculating an electrical network or the logic program for calculating a logic process.
On the basis of the technical scheme, each application program sets the time step as a variable time step or a fixed time step according to the convergence criterion of the application program.
Compared with the prior art, the invention has the advantages that:
1) the multi-program synchronous computing system based on the time domain control technology automatically adjusts the step length time according to the convergence rule by the application program within the set scheduling time, adopts a larger time step length to accelerate the computing speed when computing the steady state and transient state with violent change, adopts a smaller time step length when computing the transient state with violent change, ensures the computing convergence, ensures the accurate computation of each application program and keeps the pace consistent, and has high computing precision and high efficiency.
2) The invention is provided with the sharing module, the calculation result of each application program is stored in the sharing module, and each application program calls the calculation result from the sharing module according to the calculation requirement of the application program.
Drawings
FIG. 1 is a flow chart of a method in an embodiment of the invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, an embodiment of the present invention provides a multi-program synchronous computing system based on a time domain control technique, including: several different types of applications, a master scheduler, and a shared module. The application programs in the embodiment are respectively a reactor core physical program for calculating a reactor core physical process in a full-range simulator of the nuclear power plant, a thermal hydraulic program for calculating a main system thermal hydraulic power, a flow network program for calculating a fluid network, an electrical program for calculating an electrical network and a logic program for calculating a logic process, and the application programs need to cooperate with each other to calculate and simulate the operation characteristics of the whole nuclear power plant.
The main scheduler is used for setting scheduling time and issuing a call instruction to a related application program at intervals of the scheduling time, the main scheduler in the embodiment sends the call instruction 10 times per second, the scheduling time is 100ms, and each application program can be called for different times per second. The scheduling time is set according to the physical process calculated by the application program, for example, the actual process is 10 seconds by simulating the state that a valve is closed to the full-open state, and the physical process is 10 seconds.
The application program receives the scheduling instruction, sets a plurality of time step lengths to complete calculation according to the convergence criterion within the scheduling time, and each application program sets the time step length as a variable time step length or a time step length according to the convergence criterion of the application program, wherein the sum of all the time step lengths is equal to the scheduling time. And after the application program is called once, calculating a corresponding time step, keeping the application program in a frozen state after the calculation, and waiting for next scheduling of the main scheduler.
And the sharing module is used for storing and updating the calculation result of each time step of the application program in the scheduling time, and the calculation results of other application programs are required to be extracted from the sharing module in the calculation process of the application program, so that data interaction between the application programs is realized.
The main scheduler is also provided with delay time, if the calculation time of the application program is less than or equal to the scheduling time, the main scheduler issues a scheduling instruction according to the scheduling frequency, if the calculation time of the application program is greater than the scheduling time, namely the application program does not finish the calculation within the scheduling time, whether the calculation time of the application program is greater than the calling time is judged, if so, namely the application program does not finish the calculation within the delay time, the main scheduler issues the calling instruction when the delay time is over, the application program is forced to stop the calculation, and if not, the main scheduler issues the calling instruction when the application program finishes the calculation. The delay time in this embodiment is three times the scheduling time.
A computing method of a multi-program synchronous computing system based on a time domain control technology comprises the following steps:
the main dispatcher sets dispatching time and sends a calling instruction to related application programs according to the dispatching time interval, wherein the application programs are a thermal hydraulic program for calculating the thermal hydraulic power of the main system, a flow network program for calculating a fluid network, an electrical program for calculating an electrical network and the logic program for calculating a logic process.
The related application programs execute the call instruction, in the scheduling time, each application program sets a plurality of time step lengths according to the convergence criterion to complete calculation, each application program can set the time step length as a variable time step length or a time step length according to the self convergence criterion, and the sum of all the time step lengths is equal to the scheduling time;
and each application program carries out calculation according to the sequence of the time step within the scheduling time, and after each time of finishing the calculation of one time step, the calculation result is stored in the sharing module, and the calculation result of each application program is updated according to the sequence of the time step.
The main scheduler is also provided with delay time, whether the calculation time of the application program is not more than the scheduling time is judged, and if so, the main scheduler issues a scheduling instruction according to the scheduling frequency; if not, further judging whether the calculation of the application program is between the scheduling time and the delay time, if so, issuing a calling instruction by the main scheduler when the calculation of the application program is completed, otherwise, issuing the calling instruction by the main scheduler when the delay time is over, and forcing the application program to stop the calculation. The delay time in this embodiment is three times the scheduling time. The scheduling time is set according to a physical process calculated by the application program.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.

Claims (8)

1. A multi-program synchronous computing system based on time domain control technology, comprising:
the system comprises a plurality of different types of application programs, wherein each type of application program is used for calculating a type of parameter in the nuclear power field;
the main scheduler is used for setting scheduling time and issuing a calling instruction at intervals of the scheduling time; wherein the content of the first and second substances,
the application program receives the call instruction, and sets a plurality of time step lengths to finish calculation according to a convergence criterion within the scheduling time, wherein the sum of all the time step lengths is equal to the scheduling time;
the sharing module is used for storing and updating the calculation result of each time step of the application program in the scheduling time;
the main scheduler further sets delay time, if the application program does not finish the calculation within the scheduling time, whether the calculation of the application program between the scheduling time and the delay time is finished is judged, if yes, the main scheduler issues a calling instruction when the calculation of the application program is finished, if not, the main scheduler issues the calling instruction when the delay time is finished, and the application program stops the calculation.
2. The system of claim 1, wherein the computing system comprises: and each application program sets the time step length as a variable time step length or a time step length according to the convergence criterion of the application program.
3. The system of claim 1, wherein the computing system comprises:
the delay time is three times the scheduling time.
4. The computing method of the multi-program synchronous computing system based on the time domain control technology as claimed in claim 1, comprising the steps of:
the main dispatcher sets dispatching time and issues a calling instruction according to the dispatching time interval;
the application programs execute the call instruction, each application program sets a plurality of time step lengths for calculation according to the convergence criterion of the application program, and the sum of the time step lengths is equal to the scheduling time;
each application program carries out calculation according to the sequence of the time step in the scheduling time, and after each time of finishing the calculation of one time step, the calculation result is stored in the sharing module and updated;
the main scheduler further sets delay time, if the application program does not finish the calculation within the scheduling time, whether the calculation of the application program between the scheduling time and the delay time is finished is judged, if yes, the main scheduler issues a calling instruction when the calculation of the application program is finished, if not, the main scheduler issues the calling instruction when the delay time is finished, and the application program stops the calculation.
5. The multi-program synchronous computing method based on the time domain control technology as claimed in claim 4, characterized in that: the delay time is three times the scheduling time.
6. The multi-program synchronous computing method based on the time domain control technology as claimed in claim 4, characterized in that: the scheduling time is set according to a physical process calculated by the application program.
7. The multi-program synchronous computing method based on the time domain control technology as claimed in claim 4, characterized in that: the application program is a thermohydraulic program for calculating the main system thermohydraulic power, a flow network program for calculating a fluid network, an electrical program for calculating an electrical network or a logic program for calculating a logic process.
8. The multi-program synchronous computing method based on the time domain control technology as claimed in claim 4, characterized in that: and each application program sets the time step length as a variable time step length or a time step length according to the convergence criterion of the application program.
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 CN107479983A (en) 2017-12-15
CN107479983B true 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)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445640A (en) * 2016-10-20 2017-02-22 南京南瑞继保电气有限公司 Running method for embedded type virtual device and system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101587446B (en) * 2009-06-30 2011-08-17 中国运载火箭技术研究院 Simulation model conversion method based on distributed interactive simulation platform
CN102662428B (en) * 2012-03-01 2015-02-04 中国科学院计算技术研究所 Clock synchronization method for network simulation environment of discrete event
CN102968311B (en) * 2012-12-13 2015-05-13 中国航空无线电电子研究所 Onboard embedded software development platform
JP6236996B2 (en) * 2013-08-28 2017-11-29 富士通株式会社 Information processing apparatus and information processing apparatus control method
CN103559071B (en) * 2013-10-12 2017-01-18 中广核(北京)仿真技术有限公司 Method for integrating engineering software in nuclear power simulation system and nuclear power simulation system
CN104636260B (en) * 2013-11-06 2018-03-06 深圳市风景智联科技有限公司 A kind of data managing method and system for call charge service
US10755003B2 (en) * 2013-11-08 2020-08-25 Rockwell Automation Technologies, Inc. Time synchronization of signal transmission intervals for simulating a machine in industrial automation
CN104809932B (en) * 2015-04-22 2017-09-01 北京广利核系统工程有限公司 A kind of nuclear power plant's digital safety level Control system simulation device
CN105955811A (en) * 2016-05-05 2016-09-21 北京思特奇信息技术股份有限公司 System and method for achieving task scheduling based on remote invoking mode

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106445640A (en) * 2016-10-20 2017-02-22 南京南瑞继保电气有限公司 Running method for embedded type virtual device and system

Also Published As

Publication number Publication date
CN107479983A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US10503549B2 (en) Time critical tasks scheduling
Goldschmidt et al. Cloud-based control: A multi-tenant, horizontally scalable soft-PLC
Dassisti et al. Industry 4.0 paradigm: The viewpoint of the small and medium enterprises
CN104866374A (en) Multi-task-based discrete event parallel simulation and time synchronization method
EP3103014B1 (en) Removal of idle time in virtual machine operation
CN105677465B (en) The data processing method and device of batch processing are run applied to bank
CN102592198A (en) Workflow engine supporting combined service
CN110297703B (en) Method and device for simulating hardware task scheduling in real-time simulation system
CN101794993A (en) Grid simulation real-time parallel computing platform based on MPI (Multi Point Interface) and application thereof
CN105389772A (en) Data processing method and device based on figure processor
CN109814917A (en) Micro services dissemination method, device, computer equipment and storage medium
WO2018152319A1 (en) Spreadsheet recalculation algorithm for directed acyclic graph processing
CN107479983B (en) Variable step length multi-program synchronous computing system and method based on time domain control technology
CN109783239B (en) Multithreading optimization method, system and medium of SystemC simulation scheduling core
CN104850476A (en) Cross-platform interface automated testing method and cross-platform interface automated testing system
Jin et al. Power grid simulation applications developed using the GridPACK™ high performance computing framework
CN115150471A (en) Data processing method, device, equipment, storage medium and program product
CN111597035B (en) Simulation engine time propulsion method and system based on multithreading
CN104756022A (en) Method for energy demand management in a production flow line
EP3575990A2 (en) Observer for simulation test and verification
CN109800975A (en) A kind of stock assessment method, apparatus, computer equipment and storage medium
Maxim et al. Estimation of probabilistic minimum inter-arrival times using extreme value theory
CN105468455A (en) Dynamic task distribution method and apparatus for multiple devices
Park et al. A fast hybrid time-synchronous/event approach to parallel discrete event simulation of queuing networks
CN105022661A (en) Multiprocessor system schedulability verification method

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