CN116738812B - Scene simulation system, computing platform and storage medium - Google Patents

Scene simulation system, computing platform and storage medium Download PDF

Info

Publication number
CN116738812B
CN116738812B CN202311015576.0A CN202311015576A CN116738812B CN 116738812 B CN116738812 B CN 116738812B CN 202311015576 A CN202311015576 A CN 202311015576A CN 116738812 B CN116738812 B CN 116738812B
Authority
CN
China
Prior art keywords
simulation
scene
module
task
scenario
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
CN202311015576.0A
Other languages
Chinese (zh)
Other versions
CN116738812A (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.)
Beijing Zhongke Sanqing Environmental Technology Co ltd
3Clear Technology Co Ltd
Original Assignee
Beijing Zhongke Sanqing Environmental Technology Co ltd
3Clear 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 Beijing Zhongke Sanqing Environmental Technology Co ltd, 3Clear Technology Co Ltd filed Critical Beijing Zhongke Sanqing Environmental Technology Co ltd
Priority to CN202311015576.0A priority Critical patent/CN116738812B/en
Publication of CN116738812A publication Critical patent/CN116738812A/en
Application granted granted Critical
Publication of CN116738812B publication Critical patent/CN116738812B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • G06F30/25Design optimisation, verification or simulation using particle-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0637Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
    • G06Q10/06375Prediction of business process outcome or impact based on a proposed change
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C10/00Computational theoretical chemistry, i.e. ICT specially adapted for theoretical aspects of quantum chemistry, molecular mechanics, molecular dynamics or the like
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/20Identification of molecular entities, parts thereof or of chemical compositions
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16CCOMPUTATIONAL CHEMISTRY; CHEMOINFORMATICS; COMPUTATIONAL MATERIALS SCIENCE
    • G16C20/00Chemoinformatics, i.e. ICT specially adapted for the handling of physicochemical or structural data of chemical particles, elements, compounds or mixtures
    • G16C20/90Programming languages; Computing architectures; Database systems; Data warehousing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/10Numerical modelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Computing Systems (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Economics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Tourism & Hospitality (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Marketing (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • General Business, Economics & Management (AREA)
  • Chemical & Material Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Evolutionary Computation (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Databases & Information Systems (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a scenario simulation system, a computing platform, and a storage medium, the scenario simulation system comprising: the scene processing module is used for generating scene input data of the scene simulation task based on the scene parameters of the scene simulation task; the numerical mode simulation module is used for performing numerical mode simulation based on the scene input data corresponding to the scene simulation task so as to generate simulation result data; the scheduling module is used for scheduling the scene processing module and the numerical mode simulation module based on the task control instruction to run the scene simulation task and monitoring the running state of the scene simulation task; an interface module; the front-end module is used for sending a task control instruction to the scheduling module through the interface module, acquiring the running state of the scene simulation task from the scheduling module through the interface module, and acquiring simulation result data of the scene simulation task through the interface module. According to the embodiment of the disclosure, the operation control and the state monitoring can be performed on the scene simulation, and the flexibility and the convenience of the scene simulation can be improved.

Description

Scene simulation system, computing platform and storage medium
Technical Field
The present disclosure relates to the field of computer technology, and in particular, to a scenario simulation system, a computing platform, and a storage medium.
Background
The air quality numerical mode (such as NAQPMS, CMAQ, CAMx) is based on the atmospheric physical and chemical theory, simulates the generation and elimination evolution of the actual atmospheric pollution, and can be used for various business scenes such as air quality forecasting, atmospheric environment treatment effect evaluation and the like.
The specific implementation scheme for evaluating the atmospheric environment treatment effect by adopting the air quality numerical mode is as follows: first, based on the already taken (or ready to be taken) regulatory measures, the atmospheric pollution emission source (in which SO is described 2 Emissions of different pollutants such as NOx, CO, etc.); then, respectively adopting a reference emission source and a control emission source which are not controlled (respectively called a reference scene and a control scene, wherein the control scenes can be various and correspond to different control schemes), and inputting an air quality numerical mode to simulate the concentration of the atmospheric pollutants; and finally, analyzing the difference between the simulation results of the atmospheric pollutant concentration in the reference scene and the control scene, and quantitatively evaluating the implementation effect of different control schemes.
In the above embodiments, on the one hand, the complexity of the management and control scheme is very high, and usually includes differences of different emission areas (usually divided according to administrative areas), departments (for example, industrial sources, emission sources of motor vehicles, etc.), time periods (emission reduction schemes of different time periods are different), and pollutants, which results in great difficulty in making the emission sources of the management and control scenario; on the other hand, when making the management and control measures, due to the complexity of the atmosphere pollution forming mechanism, environmental protection decision-making staff often cannot determine whether the management and control measures to be implemented can achieve the expected management and control effect, so that they often design a plurality of groups of different management and control schemes, then adopt a numerical mode to perform a plurality of groups of scene simulations, and finally select a group of optimal schemes from the plurality of groups of different management and control schemes. This results in the need to configure the mode operating parameters multiple times, and the repeated operation of the numerical mode, which is also very cumbersome. Finally, the output data volume of the scene simulation is huge, and the analysis of the results of multiple groups of scene simulation is also a very tedious work.
In order to solve the above-mentioned problems, the related art deploys a numerical mode on a high-performance computing platform and deploys a data processing and visualization module on another server.
One implementation is that the numerical mode uses fixed sets of scenarios, setting timing tasks to run automatically on a high performance platform, e.g., once per day, 4 sets of scenarios per run. The data processing and visualization module detects the running state log of the numerical mode at fixed time, and reads the running data to perform visual analysis once the mode running is completed. In the method, the data processing and visualization module and the numerical mode are independently operated, the data processing and visualization module is difficult to operate the numerical mode, and multiple complex control situations cannot be flexibly set.
In another embodiment, the data processing and visualization module pushes the configuration file to the high performance computing platform, the numerical mode monitors the status of the configuration file at regular intervals, and the scenario simulation begins when the transmission of the configuration file is completed. Meanwhile, the data processing and visualization module judges the running state of the numerical mode by monitoring the running log of the numerical mode, and once the numerical mode is run, the data processing and visualization module reads the running data to carry out visualization analysis. Although the method realizes simple foreground and background interaction, when the scene simulation quantity is huge, the running states among different scenes are difficult to flexibly schedule, and the problems of running conflict and computing resource extrusion can occur. In addition, the interaction is realized through file judgment, the interaction timeliness is low, and the security of directly operating the file cannot be guaranteed.
Disclosure of Invention
The embodiment of the disclosure provides a scene simulation system, a computing platform and a storage medium, which are used for performing operation control and state monitoring on at least scene simulation, so that the flexibility and convenience of the scene simulation can be improved.
According to an aspect of the present disclosure, there is provided a scenario simulation system including: the scene processing module is used for generating scene input data corresponding to the scene simulation tasks based on the scene parameters of the scene simulation tasks, wherein one scene simulation task corresponds to one group of scene parameters, and the scene simulation tasks are mutually independent; the numerical mode simulation module is used for performing numerical mode simulation based on the scene input data corresponding to the scene simulation task so as to generate simulation result data corresponding to the scene simulation task; the scheduling module is used for scheduling the scene processing module and the numerical mode simulation module based on the task control instruction to run the scene simulation task and monitoring the running state of the scene simulation task; an interface module; the front-end module is used for sending a task control instruction to the scheduling module through the interface module, acquiring the running state of the scene simulation task from the scheduling module through the interface module, and acquiring simulation result data of the scene simulation task through the interface module.
Optionally, the task control instruction includes a start-run instruction, where the start-run instruction is used to instruct to start running the specified scenario simulation task; a scheduling module, configured to: responding to a starting operation instruction sent by the front-end module through the interface module, triggering a scene processing module to generate scene input data corresponding to a scene simulation task based on scene parameters of the scene simulation task; monitoring the running state of the scene processing module; after the situation processing module is monitored to generate the situation input data corresponding to the situation simulation task, the numerical mode simulation module is triggered to perform numerical mode simulation based on the situation input data corresponding to the situation simulation task so as to generate simulation result data corresponding to the situation simulation task.
Optionally, the task control instruction further includes an instruction for changing an operation state, the instruction for changing the operation state is used for changing the operation state of the specified scenario simulation task, and the instruction for changing the operation state includes: terminate, suspend, or resume.
Optionally, the front-end module is configured to obtain a parameter configuration item through the interface module, display a first configuration page including the parameter configuration item to a user, receive scenario parameters of one or more scenario simulation tasks input by the user through the first configuration page, and generate a scenario simulation configuration file through the interface module, where the scenario simulation configuration file includes scenario parameters of the one or more scenario simulation tasks; the scene processing module is used for acquiring the scene parameters of the scene simulation task from the scene simulation configuration file and generating scene input data corresponding to the scene simulation task based on the scene parameters of the scene simulation task.
Optionally, the front-end module is configured to obtain a module configuration item through the interface module, display a second configuration page including the module configuration item to a user, and receive a module configuration of the user for inputting one or more scenario simulation tasks through the second configuration page; the scenario simulation configuration file is generated through the interface module, and the scenario simulation configuration file further comprises the module configuration of one or more scenario simulation tasks.
Optionally, the above module configuration includes: executing a numerical mode of a scene simulation task; and the numerical mode simulation module is used for configuring a specified numerical mode by using the module of the scene simulation task, and performing numerical mode simulation on the basis of the scene input data corresponding to the scene simulation task so as to generate simulation result data corresponding to the scene simulation task.
Optionally, the front-end module is configured to obtain, through the interface module, an operation state of the scenario simulation task from the scheduling module, and obtain, through the interface module, simulation result data of the scenario simulation task after the operation state of the scenario simulation task is completed.
Optionally, the interface module includes: the configuration service is used for responding to the call of the front-end module, sending parameter configuration items and/or module configuration items to the front-end module, receiving scene parameters and/or module configuration sent by the front-end module, and generating a scene simulation configuration file based on the scene parameters and/or the module configuration; the scheduling service is used for transmitting the task control instruction from the front-end module to the scheduling module; transmitting the running state from the scheduling module to the front-end module; and the data service is used for responding to the call of the front-end module and sending the simulation result data of the scene simulation task to the front-end module.
According to another aspect of the present disclosure, there is provided a computing platform comprising: one or more processors; and a memory storing a program for implementing the scenario simulation system described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for implementing the above-described scenario simulation system.
According to one or more technical schemes provided by the embodiment of the application, the interface module provides an interface for interaction between the front end module and other modules, the front end module sends a task control instruction to the scheduling module through the interface module, the operating state of the scene simulation task is obtained from the scheduling module through the interface module, the simulation result data of the scene simulation task is obtained through the interface module, the scheduling module schedules the scene processing module and the numerical mode simulation module based on the task control instruction to operate the scene simulation task, the operating state of the scene simulation task is monitored, and the scene simulation task can be controlled and the operating state of the scene simulation task is monitored. Through the interface module, the front-end system and the background model can be decoupled, interaction efficiency and safety are guaranteed, meanwhile, as long as the interface is unchanged, the front-end model and the background model can be independently developed and updated and then are in seamless butt joint, and development efficiency can be improved.
Drawings
Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments, with reference to the following drawings, wherein:
FIG. 1 shows a schematic block diagram of a scenario simulation system according to an exemplary embodiment of the present disclosure;
FIG. 2 shows a schematic block diagram of a scenario simulation system according to an exemplary embodiment of the present disclosure;
fig. 3 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below. It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
It should be noted that, the scenario simulation system provided by the embodiment of the present invention may be deployed in one or more electronic devices, which is not limited in this specification; the scenario simulation system provided in the present specification may be executed by the terminal and the server together when the scenario simulation system is deployed in a plurality of electronic devices and the plurality of electronic devices include at least one terminal and at least one server. Accordingly, terminals referred to herein may include, but are not limited to, smartphones, tablets, notebooks, desktop computers, smartwatches, intelligent voice interaction devices, smart appliances, vehicle terminals, aircraft, and the like. The server mentioned herein may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), and basic cloud computing services such as big data and artificial intelligence platforms, and so on.
According to an embodiment of the present disclosure, a scenario simulation system is provided. In this embodiment, one scenario simulation task is used for simulating an emission scenario, one scenario simulation task corresponds to one set of scenario parameters, and the scenario simulation tasks are mutually independent. The scenario simulation tasks of the plurality of scenarios can form a task group, and one task group comprises scenario simulation tasks corresponding to the plurality of scenarios. In the present disclosure, the scenario simulation may be a simulation of history or a prediction of future, which is not limited in the present disclosure.
Fig. 1 shows a schematic block diagram of a scenario simulation system according to an exemplary embodiment of the present disclosure, and the scenario simulation system 100 shown in fig. 1 includes: a scenario processing module 101, a numerical mode simulation module 102, a scheduling module 103, an interface module 104 and a front-end module 105.
The scenario processing module 101 may be configured to generate scenario input data corresponding to a scenario simulation task based on scenario parameters of the scenario simulation task, where one scenario simulation task corresponds to a set of scenario parameters, and the scenario simulation tasks are mutually independent.
In this embodiment, the scenario simulation task includes, but is not limited to, simulating the atmospheric contaminant concentration under the regulatory measures to evaluate the impact of the regulatory measures on air quality. By modeling the atmospheric contaminant concentrations under various regulatory measures, the differences between the regulatory measures can be assessed. By comparing the atmospheric contaminant concentration under the regulatory measures with the atmospheric contaminant concentration without the regulatory measures, the effectiveness of the regulatory measures can be evaluated.
In this embodiment, a plurality of scenario simulation tasks may constitute a set of simulation tasks. For example, to evaluate and compare multiple control measures, each control measure may be used as a scenario simulation task, where multiple scenario simulation tasks corresponding to the multiple control measures form a set of simulation tasks.
In this embodiment, the scenario parameters correspond to the scenario simulation task. The scenario parameters may be any parameters defining the management measures. Illustratively, in an application that evaluates the governance measures, the contextual parameters may include, but are not limited to: pollution discharge reduction, pollutant emission reduction proportion, emission reduction period, emission reduction region and the like.
The numerical mode simulation module 102 may be configured to perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task, so as to generate simulation result data corresponding to the scenario simulation task.
The numerical mode simulation module 102 may perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task. For example, in an application that evaluates a governance measure, the scenario input data is emissions source data under the governance measure or without the governance measure. In the present embodiment, a scenario in which no management and control measure is adopted is referred to as a reference scenario, and emission source data corresponding to the reference scenario is referred to as reference emission source data; the scenario adopting the management and control measure is called an emission reduction scenario, and emission source data corresponding to the emission reduction scenario is called emission reduction emission source data. The emissions source data is typically a grid-like emissions inventory.
In this embodiment, the numerical mode simulation module 102 may include one or more air quality numerical modes, which may include, but are not limited to NAQPMS, CMAQ, CAMx, etc. The air quality numerical mode may simulate the concentration of atmospheric pollution based on emissions source data.
In this embodiment, the atmospheric contaminants may include, but are not limited to, sulfur-containing compounds (SO 2 、H 2 S, etc.), nitrogen-containing compounds (NO, NO 2 、NH 3 Etc.), carbon-containing compounds (CO, VOCs, etc.), photochemical oxidants (O 3 、H 2 O 2 Etc.), halogen-containing compounds (HCl, HF, etc.), particulate matter, persistent organic pollutants.
In some embodiments, the numerical mode simulation module 102 may also include one or more meteorological modes for simulating an meteorological field. In some embodiments, the numerical mode simulation module 102 obtains the meteorological field from other systems, i.e., the meteorological mode is independent of the numerical mode simulation module 102.
The scheduling module 103 may be used to schedule the scenario processing module 101 and the numerical mode simulation module 102 to run the scenario simulation task based on the task control instruction, and to monitor the running state of the scenario simulation task. The scenario processing module 101 and the numerical mode simulation module 102 have a dependency relationship, specifically, for a scenario simulation task, the numerical mode simulation module 102 performs numerical simulation after the scenario processing module 101 generates scenario input data corresponding to the scenario simulation task, that is, for a scenario simulation task, the scenario processing module 101 is first scheduled to generate scenario input data corresponding to the scenario simulation task, and then the numerical mode simulation module 102 is scheduled to perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task.
In some implementations, the scheduling module 103 may also be used to schedule multiple situational simulation tasks. In some examples, the invocation module 103 schedules the sequential execution of the plurality of context modeling tasks. For example, in the order of submission of the scenario simulation tasks. In some examples, the scheduling module 103 schedules at least some of the plurality of context modeling tasks to execute in parallel. For example, scheduling module 103 may communicate and interact with a job manager (e.g., SLURM, PBS, LSF, etc.) of a high performance computing cluster, and if the computing resources are sufficient, all computing tasks may be computed in parallel. If the computing resources are insufficient, the job manager can queue to run according to the sequence of task submissions.
In this embodiment, the scheduling module 103 may use a monitoring management scheduling technique, such as ecflow, which is not limited in this embodiment.
The interface module 104 may be used for interaction between the front-end module 105 and the numerical mode simulation module 102, the scheduling module 103, and so on. Through the interface module, the front-end system and the background model can be decoupled, interaction efficiency and safety are guaranteed, meanwhile, as long as the interface is unchanged, the front-end model and the background model can be independently developed and updated and then are in seamless butt joint, and development efficiency can be improved.
In this embodiment, the interface module 104 may include one or more services (e.g., HTTP services) that perform interactions between modules in a service manner.
The front-end module 105 may be configured to send task control instructions to the scheduling module 103 via the interface module 104.
In this embodiment, the front end module 105 may receive user input, and in response to the user input, send task control instructions to the scheduling module 103 through the interface module 105.
The task control instruction may include a start-up instruction, where the start-up instruction is used to instruct to start up the specified scenario simulation task. The start-up instruction may instruct to start one or more situational simulation tasks. The scheduling module 103 may trigger the scenario processing module 101 to generate scenario input data corresponding to the scenario simulation task based on the scenario parameters of the scenario simulation task in response to the start operation instruction sent by the front end module 105 through the interface module 104; monitoring the running state of the scene processing module 101; after it is monitored that the scenario processing module 101 generates scenario input data corresponding to a scenario simulation task, the numerical mode simulation module 102 is triggered to perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task, so as to generate simulation result data corresponding to the scenario simulation task.
The task control instruction may further include an instruction to change an operation state, the instruction to change the operation state is used to change the operation state of the specified scenario simulation task, and the instruction to change the operation state includes: terminate, suspend, or resume. The instructions to change the operational state may instruct to change the operational state of one or more situational simulation tasks.
The front-end module 105 may obtain the running state of the scenario simulation task from the scheduling module 103 through the interface module 104.
In this embodiment, the front end module 105 may receive an input from a user, and in response to the input from the user, request, through the interface module 104, to obtain the running state of the scenario simulation task from the scheduling module 103, and receive the running state of the scenario simulation task obtained by the interface module 104 from the scheduling module 103. In this embodiment, the interface module 104 and the scheduling module 103 may push the running state of the scenario simulation task to the front-end module 105.
In this embodiment, the running states of the scenario simulation task may include: waiting, running, normal ending, running interruption, etc. The running states of the scenario simulation task may include the running states of the scenario processing module 101 and the numerical mode simulation module 102.
The front-end module 105 may acquire simulation result data of the scenario simulation task through the interface module 104.
In this embodiment, the front end module 105 may obtain, through the interface module 104, an operation state of the scenario simulation task from the scheduling module 103, and after the operation state of the scenario simulation task is completed, obtain, through the interface module 104, simulation result data of the scenario simulation task.
In some implementations, the front end module 105 may delete simulation result data of the scenario simulation task through the interface module 104. For example, the front-end module 105 may instruct to delete the simulation result data of one or more scenario simulation tasks, for example, the front-end module 105 may carry a time range in a request to delete the simulation result data, instruct to delete the simulation result data of the scenario simulation task within the time range, or the front-end module 105 may carry an identification of the scenario simulation task in the request to delete the simulation result data, instruct to delete the simulation result data of the scenario simulation task corresponding to the identification.
In this embodiment, the front-end module 105 may perform visual rendering on the simulation result data for the user to browse and analyze. Visual rendering of simulation result data may be referred to in the related art, which is not limited in this specification. For example, in the application of evaluating the control measure, the simulation result data of one scenario simulation task may include the distribution of one or more pollutants in time and space, and the simulation result data corresponding to a plurality of scenario simulation tasks may be rendered, so as to obtain the distribution of the pollutants corresponding to a plurality of scenario simulation tasks in time and space.
In some embodiments, the front-end module 105 may obtain the parameter configuration item through the interface module 104, display a first configuration page including the parameter configuration item to a user, receive scenario parameters of one or more scenario simulation tasks input by the user through the first configuration page, and generate a scenario simulation configuration file through the interface module 104, where the scenario simulation configuration file includes the scenario parameters of the one or more scenario simulation tasks. Therefore, flexible configuration of scenes is realized, and corresponding scene simulation tasks are conveniently set according to the needs. While the related art can only perform several inherent situations.
The scenario processing module 101 may obtain scenario parameters of the scenario simulation task from the scenario simulation configuration file, and generate scenario input data corresponding to the scenario simulation task based on the scenario parameters of the scenario simulation task. The scheduling module 103 may trigger the scenario processing module 101 in response to a start-up instruction sent by the front-end module 105 through the interface module 104. After the scene processing module 101 is triggered, scene parameters of the scene simulation task are obtained from the scene simulation configuration file, and scene input data corresponding to the scene simulation task is generated based on the scene parameters of the scene simulation task. By the scheduling module 103 scheduling the scenario processing module 101 to read the scenario configuration file based on the task control instruction, the timeliness and reliability of interaction can be improved. In the related art, the interaction is realized through file judgment, the interaction timeliness is low, and the security of directly operating the file cannot be ensured.
In this embodiment, one or more scenario parameters of the scenario simulation task may be configured in the scenario simulation configuration file. For example, a scenario corresponding to a plurality of control measures may be configured, and each scenario configures a corresponding scenario parameter.
In some embodiments, the front-end module 105 is further configured to obtain a module configuration item through the interface module 104, display a second configuration page including the module configuration item to the user, and receive a module configuration of the user for inputting one or more scenario simulation tasks through the second configuration page; the scenario simulation configuration file is generated through the interface module, and the scenario simulation configuration file further comprises the module configuration of one or more scenario simulation tasks.
As an embodiment, the above module configuration may include a numerical mode for performing a scenario simulation task. The numerical mode simulation module 102 may be configured to perform numerical mode simulation based on the scene input data corresponding to the scene simulation task using the specified numerical mode configured by the module of the scene simulation task to generate simulation result data corresponding to the scene simulation task. By way of example, one of NAQPMS, CMAQ, CAMx, etc. may be designated for corresponding numerical mode simulation.
In some implementations, the front end module 105 is also configured to query, delete, or modify the scenario simulation configuration file via the interface module 104. As an implementation manner, the front-end module 105 may read the scenario simulation configuration file through the interface module 104, display the scenario parameters and/or the module configuration, receive the adjustment on the scenario parameters and the module configuration, form new scenario parameters and module configuration, and update the new scenario parameters and module configuration to the scenario simulation configuration file.
Based on the front end module 105 described above, the interface module 104 may include, but is not limited to, a configuration service, a dispatch service, and a data service, and the service may be an HTTP service.
And the configuration service is used for responding to the call of the front-end module 105, sending parameter configuration items and/or module configuration items to the front-end module 105, receiving the scene parameters and/or module configuration sent by the front-end module 105, and generating a scene simulation configuration file for other modules to use based on the scene parameters and/or module configuration. The configuration service may also query, delete, or modify the scenario simulation configuration file in response to the invocation of the front-end module 105. For example, the front-end module 105 may read the scenario simulation configuration file, display scenario parameters and/or module configuration via the configuration service, and receive adjustments to the scenario parameters and module configuration to form new scenario parameters and module configuration, and update the new scenario parameters and module configuration to the scenario simulation configuration file.
A scheduling service for delivering task control instructions from the front end module 105 to the scheduling module 103. By way of example, the task control instructions may include start-of-run instructions, instructions to change the operating state. The scheduling service may also communicate to the front-end module 105 the running state from the scheduling module 103, which refers to the state of the scenario simulation task. The state of the situational simulation task may include an overall state, for example, the running state may include: waiting, running, normal ending, running interruption, etc. The state of the scenario simulation task may include a phase state, for example, in the scenario input data processing, numerical mode processing, or the like for the scenario simulation task being executed.
And the data service is used for responding to the call of the front-end module 105 and sending the simulation result data of the scene simulation task to the front-end module 105. In some examples, the data service may also delete the historical simulation result data in response to a call by the front-end module 105. The front-end module 105 may instruct to delete the simulation result data of one or more scenario simulation tasks, for example, the front-end module 105 may carry a time range in a request for deleting the simulation result data, instruct to delete the simulation result data of the scenario simulation task in the time range, or the front-end module 105 may carry an identifier of the scenario simulation task in the request for deleting the simulation result data, instruct to delete the simulation result data of the scenario simulation task corresponding to the identifier.
A scene simulation process of the scene simulation system according to the present embodiment is exemplarily described below.
The user can complete the configuration of the scenario simulation scheme on the user interface provided by the front-end module, including parameters such as scenario simulation time period, control measures, numerical modes to be adopted (such as NAQPMS, CMAQ, CMAx, etc.), and submit a configuration confirmation instruction. The front-end module may invoke the interface module to generate, modify, query, and delete the context simulation configuration file.
The user may click on the start run instruction on a user interface provided by the front end module. The front-end module calls the interface module, controls and reads the scene simulation configuration files through the scheduling module, and calls the related modules to read the respective configuration files to start orderly running scene simulation. Each control scheme corresponds to a scenario simulation task.
In the running process of the scene simulation task, the front-end module can dynamically inquire the running state of the scene simulation task through the scheduling module by continuously calling the interface module, and waits for the running to be completed. The front-end module may display on the user interface that new scenario simulations may be terminated and configured at any time during this period. For example, a set of scenario simulation tasks corresponding to multiple sets of control schemes may be terminated, or any one of the scenario simulation tasks may be terminated, for example, a scenario simulation task corresponding to one control scheme may be terminated.
After the scene simulation task is operated, the front-end module can read simulation result data of the scene simulation task through the interface module and visually render the data for browsing and analyzing by a user. The front-end module may call the interface module to delete the scenario simulation result data for which the analysis has been completed.
A more detailed scenario simulation system is described below.
Fig. 2 shows a schematic block diagram of a scenario simulation system according to an exemplary embodiment of the present disclosure, as the scenario simulation system 200 shown in fig. 2 may include: client 210, front end server 220, and simulation server 230. It should be understood that the front-end server 220 and the simulation server 230 may be the same server, which is not limited in this embodiment.
Client 210 may include, but is not limited to, a smart phone, tablet, notebook, desktop computer, smart watch, smart voice interaction device, smart appliance, etc.
The front-end server 220 and the simulation server 230 may be independent physical servers, may be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server providing cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network ), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
Front end module 221 is deployed in front end server 220. Client 210 may include a web browser or application that communicates with front-end server 220.
Simulation server 230: a scenario processing module 231, a numerical mode simulation module 232, an ecflow server 233, and an interface module 234.
Front-end server 220 is communicatively coupled to analog server 230. The front-end module 221 communicates with a scenario processing module 231, a numerical mode simulation module 232, an ecflow server (server) 233, and the like through an interface module 234. Message interaction between the front-end module 221 and the interface module 234 may be performed through HTTP requests (requests) and HTTP responses (responses). The interface module 234 and the scene processing module 231, the numerical mode simulation module 232, and the ecflow server (server) 233 can also interact with each other through HTTP requests and HTTP responses.
The scenario processing module 231 may be configured to generate scenario input data corresponding to a scenario simulation task based on a scenario parameter of the scenario simulation task. In this embodiment, the scenario simulation task includes, but is not limited to, simulating the atmospheric contaminant concentration under the regulatory measures to evaluate the impact of the regulatory measures on air quality. By modeling the atmospheric contaminant concentrations under various regulatory measures, the differences between the regulatory measures can be assessed. By comparing the atmospheric contaminant concentration under the regulatory measures with the atmospheric contaminant concentration without the regulatory measures, the effectiveness of the regulatory measures can be evaluated.
In this embodiment, the scenario parameters correspond to the scenario simulation task. The scenario parameters may be any parameters defining the management measures. Illustratively, in an application that evaluates the governance measures, the contextual parameters may include, but are not limited to: pollutant emission reduction ratio, emission reduction period, emission reduction region and the like. The scenario processing module 231 may process the reference emission source into a scenario emission source (i.e., scenario input data) based on the scenario parameters.
The numerical mode simulation module 232 may be configured to perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task, so as to generate simulation result data corresponding to the scenario simulation task. In this embodiment, the numerical mode simulation module 232 may include one or more air quality numerical modes, which may include, but are not limited to NAQPMS, CMAQ, CAMx, etc. The air quality numerical mode may simulate the concentration of atmospheric pollution based on emissions source data. In this embodiment, the atmospheric contaminants may include, but are not limited to, sulfur-containing compounds (SO 2 、H 2 S, etc.), nitrogen-containing compounds (NO, NO 2 、NH 3 Etc.), carbon-containing compounds (CO, VOCs, etc.), photochemical oxidants (O 3 、H 2 O 2 Etc.), halogen-containing compounds (HCl, HF, etc.), particulate matter, persistent organic pollutants.
The numerical mode simulation module 232 may perform numerical mode simulation based on the situational emission source corresponding to the situational simulation task. The numerical mode simulation module 232 may read the scenario emission source and the reference emission source, operate the air quality numerical mode and the preprocessing and post-processing modules thereof, and output the simulation result, that is, the data such as the air pollution concentration corresponding to the scenario emission source.
The scene processing module 231 and the numerical mode simulation module 232 together complete the scene simulation task, and the numerical mode simulation module 232 depends on the output of the scene processing module 231. The scene processing module 231 and the numerical mode simulation module 232 are used as nodes of scene simulation tasks.
The ecflow server 233 schedules the scenario processing module 231 and the numerical mode simulation module 232 based on the task control instruction to run the scenario simulation task, and monitors the running state of the scenario simulation task. The ecflow server 233 may perform a scenario simulation task based on the modules and the dependency relationship between the modules. For example, the modules and the dependency relationships between the modules may be defined by a script, and the ecflow server 233 may read the script to determine the modules and the dependency relationships between the modules.
The interface module 234 is provided for other modules to call in the form of services (e.g., HTTP services). The following illustrates the invocation between the services and modules included in interface module 234.
As shown in fig. 2, interface module 234 may include a dispatch service 2342, dispatch service 2342 acting as a client (i.e., an ecflow client) for ecflow server 233, dispatch service 2342 may be invoked by front-end module 221. Dispatch service 2342 may be used to pass task control instructions from front-end module 221 to the ecflow server 233, and pass the running state from ecflow server 233 to front-end module 221.
The front-end module 221 may invoke the dispatch service 2342, sending task control instructions to the ecflow server 233 through the dispatch service 2342. Before this, the front-end module 221 may display a user interface for controlling the scenario simulation task at the client 210. The client 210 may receive user input through a user interface for controlling the scenario simulation task, and transmit corresponding task control instructions to the front-end module 221 based on the user input. The front-end module 221, upon receiving the instruction of the client 210, invokes the scheduling service 2342, and transmits the task control instruction to the ecflow server 233 through the scheduling service 2342. The ecflow server 233 receives the task control instruction, and controls the scenario simulation task based on the task control instruction.
Illustratively, the client 210 may receive user input through a user interface for controlling the situational simulation tasks, which may be used to control one or more situational simulation tasks.
The task control instruction may include a start-up instruction, where the start-up instruction is used to instruct to start up the specified scenario simulation task. The ecflow server 233 may trigger the scenario processing module 231 to generate scenario input data corresponding to the scenario simulation task based on the scenario parameters of the scenario simulation task in response to the start operation instruction sent by the front end module 221 through the scheduling service 2342; monitoring the running state of the scene processing module 231; after the scenario processing module 231 is monitored to generate the scenario input data corresponding to the scenario simulation task, the numerical mode simulation module 232 is triggered to perform numerical mode simulation based on the scenario input data corresponding to the scenario simulation task, so as to generate simulation result data corresponding to the scenario simulation task.
The task control instruction may further include an instruction to change an operation state, the instruction to change the operation state is used to change the operation state of the specified scenario simulation task, and the instruction to change the operation state includes: terminate, suspend, or resume. The front-end module 221 may invoke the dispatch service 2342, sending instructions to the ecflow server 233 to change the operating state through the dispatch service 2342. After receiving the instruction for changing the running state, the ecflow server 233 changes the state of the scenario simulation task based on the instruction for changing the running state.
The front-end module 221 may acquire the running state of the scenario simulation task from the ecflow server 233 through the scheduling service 2342. In this embodiment, the front-end module 221 may receive an input of a user, and in response to the input of the user, request, by the scheduling service 2342, to obtain the running state of the scenario simulation task from the ecflow server 233, and receive the running state of the scenario simulation task obtained by the scheduling service 2342 from the ecflow server 233. In this embodiment, the front-end module 221 may periodically request, through the scheduling service 2342, to obtain the running state of the scenario simulation task from the ecflow server 233, and receive the running state of the scenario simulation task obtained by the scheduling service 2342 from the ecflow server 233. In this embodiment, the scheduling service 2342 and the ecflow server 233 may push the running state of the scenario simulation task to the front-end module 221.
In this embodiment, the running states of the scenario simulation task may include: waiting, running, normal ending, running interruption, etc. The running states of the scenario simulation task may include the running states of the scenario processing module 231 and the numerical mode simulation module 232.
As shown in fig. 2, the interface module 234 may include a configuration service 2341 for, in response to a call by the front-end module 221, sending parameter configuration items and/or module configuration items to the front-end module 221, receiving scenario parameters and/or module configurations sent by the front-end module 221, generating scenario simulation configuration files based on the scenario parameters and/or module configurations, and storing the scenario simulation configuration files in the simulation server 230.
Front-end module 221 may retrieve the parameter configuration items and/or the module configuration items by invoking configuration service 2341 and display a user interface including the parameter configuration items and/or the module configuration items on client 210. The client 210 may receive user input, obtain scenario parameters and module configuration, and send the scenario parameters and module configuration to the front-end module 221, which front-end module 221 invokes the configuration service 2341 to generate a scenario simulation configuration file on the simulation server 230.
Illustratively, the front-end module 221 may obtain the parameter configuration item through the configuration service 2341, display a first configuration page including the parameter configuration item to the user on the client 210, receive the scenario parameters of one or more scenario simulation tasks input by the user through the first configuration page, and generate a scenario simulation configuration file on the simulation server 230 through the configuration service 2341, where the scenario simulation configuration file includes the scenario parameters of the one or more scenario simulation tasks. Therefore, flexible configuration of scenes is realized, and corresponding scene simulation tasks are conveniently set according to the needs. Whereas the related art can only perform the inherent centralization scenario.
The scenario processing module 231 may acquire the scenario parameters of the scenario simulation task from the scenario simulation configuration file, and generate scenario input data corresponding to the scenario simulation task based on the scenario parameters of the scenario simulation task. The ecflow server 233 may trigger the scenario processing module 231 (send an operation command to the scenario processing module 231) in response to the start operation instruction sent by the front end module 221 through the interface module 234, and obtain the scenario parameters of the scenario simulation task from the scenario simulation configuration file after the scenario processing module 231 is triggered, and generate the scenario input data corresponding to the scenario simulation task based on the scenario parameters of the scenario simulation task. By the ecflow server 233 scheduling the scenario processing module 231 to read the scenario configuration file based on the task control instruction, timeliness and reliability of interaction can be improved. In the related art, the interaction is realized through file judgment, the interaction timeliness is low, and the security of directly operating the file cannot be ensured.
The front-end module 221 may also obtain a module configuration item through the configuration service 2341, display a second configuration page including the module configuration item to the user, and receive a module configuration of the user for inputting one or more scenario simulation tasks through the second configuration page; the scenario simulation configuration file is generated through the interface module, and the scenario simulation configuration file further comprises the module configuration of one or more scenario simulation tasks.
As an embodiment, the above module configuration may include a numerical mode for performing a scenario simulation task. The numerical mode simulation module 232 may be configured to use a module of the scenario simulation task to configure a specified numerical mode, and perform numerical mode simulation based on scenario input data corresponding to the scenario simulation task, so as to generate simulation result data corresponding to the scenario simulation task. By way of example, one of NAQPMS, CMAQ, CAMx, etc. may be designated for corresponding numerical mode simulation.
As shown in fig. 2, interface module 234 may include data services 2343. The data service 2343 is used to send simulation result data of the scenario simulation task to the front-end module 221 in response to the call of the front-end module 221.
In this embodiment, the front-end module 221 may obtain the running state of the scenario simulation task from the ecflow server 233 through the scheduling service 2342, and obtain the simulation result data of the scenario simulation task through the data service 2343 after the running state of the scenario simulation task is completed.
In this embodiment, the front-end module 221 may perform visual rendering on the simulation result data for the user to browse and analyze. The front-end module 221 may perform visualization processing on the simulation result data using known techniques, which will not be described in detail in the embodiments of the present application. For example, the front-end module 221 may generate a graph, table to compare differences between different scenario-to-scenario simulation results.
In some embodiments, multiple situational simulation tasks may be considered as a set of tasks, i.e., simulating multiple regulatory measures. The client 210 may receive the configuration of the user for a plurality of scenario simulation tasks, and obtain scenario parameters of each scenario simulation task. The client 210 transmits the scenario parameters of the plurality of scenario simulation tasks to the front-end server 220.
In some implementations, the scheduling service 2342 may schedule a plurality of situational simulation tasks. In some examples, the scheduling service 2342 schedules the multiple context modeling tasks to execute sequentially. For example, in the order of submission of the scenario simulation tasks. In some examples, the scheduling service 2342 schedules at least some of the plurality of context modeling tasks to execute in parallel. For example, scheduling service 2342 may communicate and interact with a job manager (e.g., SLURM, PBS, LSF, etc.) of a high performance computing cluster, if the computing resources are sufficient, all computing tasks may be computed in parallel. If the computing resources are insufficient, the job manager can queue to run according to the sequence of task submissions.
During the operation of the plurality of scenario simulation tasks, the client 210 may send task control instructions to control one or more scenario simulation tasks. The manner in which the client 210 may send the task control instruction is referred to the above description of the front-end module 221 and the interface module 234, which is not described herein. The client 210 may display the running status of a plurality of scenario simulation tasks. The manner in which the operation state is obtained is referred to the above description of the front end module 221 and the interface module 234, and is not described herein.
According to another aspect of the present disclosure, there is provided a computing platform comprising: one or more processors; and a memory storing a program for implementing the scenario simulation system described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for implementing the above-described scenario simulation system.
The exemplary embodiments of the present disclosure also provide an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor for causing the electronic device to perform a method according to embodiments of the present disclosure when executed by the at least one processor.
The present disclosure also provides a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to an embodiment of the present disclosure.
The present disclosure also provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor of a computer, is for causing the computer to perform a method according to embodiments of the disclosure.
Referring to fig. 3, a block diagram of an electronic device 300 that may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 3, the electronic device 300 includes a computing unit 301 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 302 or a computer program loaded from a storage unit 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the device 300 may also be stored. The computing unit 301, the ROM 302, and the RAM 303 are connected to each other by a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Various components in the electronic device 300 are connected to the I/O interface 305, including: an input unit 306, an output unit 307, a storage unit 308, and a communication unit 309. The input unit 306 may be any type of device capable of inputting information to the electronic device 300, and the input unit 306 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. The output unit 307 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, video/audio output terminals, vibrators, and/or printers. Storage unit 308 may include, but is not limited to, magnetic disks, optical disks. The communication unit 309 allows the electronic device 300 to exchange information/data with other devices through a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth devices, wiFi devices, wiMax devices, cellular communication devices, and/or the like.
The computing unit 301 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 301 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 301 performs the respective methods and processes described above. For example, in some embodiments, the scenario simulation system may be implemented as a computer software program, which is tangibly embodied on a machine-readable medium, such as the storage unit 308. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 300 via the ROM 302 and/or the communication unit 309. In some embodiments, the computing unit 301 may be configured to run the scenario simulation system by any other suitable means (e.g., by means of firmware).
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

Claims (8)

1. A situational simulation system, comprising:
the scene processing module is used for generating scene input data corresponding to the scene simulation tasks based on the scene parameters of the scene simulation tasks, wherein one scene simulation task corresponds to one group of scene parameters, and the scene simulation tasks are mutually independent;
the numerical mode simulation module is used for performing numerical mode simulation based on the scene input data corresponding to the scene simulation task so as to generate simulation result data corresponding to the scene simulation task;
the ecflow server is used for performing a scene simulation task based on the dependency relationship between the modules defined by the script, and comprises the following steps: scheduling the scene processing module and the numerical mode simulation module based on task control instructions to operate scene simulation tasks and monitoring the operation state of each scene simulation task; the task control instruction comprises a start operation instruction and an instruction for changing an operation state, wherein the start operation instruction is used for indicating to start operating one or more specified scene simulation tasks, and the instruction for changing the operation state is used for changing the operation state of the one or more specified scene simulation tasks;
An interface module, comprising: the ecflow client is used for transmitting a task control instruction from the front-end module to the ecflow server; transmitting the running state from the ecflow server to the front-end module;
the front-end module is used for sending a task control instruction to the ecflow server through the ecflow client, acquiring the running state of the scene simulation task from the ecflow server through the ecflow client, and acquiring simulation result data of the scene simulation task through the interface module; the front-end module is used for acquiring simulation result data of the scene simulation task through the interface module when the acquired running state is finished;
the ecflow server is further configured to, when a plurality of scenario simulation tasks are scheduled, run at least a portion of the plurality of scenario simulation tasks in parallel under a condition that computing resources are sufficient; queuing for operation according to the sequence of the task submissions of the plurality of scenario simulation under the condition of insufficient computing resources;
the client is used for displaying the running states of the scene simulation tasks in the running process of the scene simulation tasks, and sending task control instructions to control one or more scene simulation tasks;
The front-end module is used for acquiring parameter configuration items through the interface module, displaying a first configuration page comprising the parameter configuration items to a user, receiving scene parameters of one or more scene simulation tasks input by the user through the first configuration page, and generating a scene simulation configuration file through the interface module, wherein the scene simulation configuration file comprises the scene parameters of the one or more scene simulation tasks;
the scene processing module is used for responding to the dispatching of the ecflow server side, acquiring scene parameters of a scene simulation task from a scene simulation configuration file, and generating scene input data corresponding to the scene simulation task based on the scene parameters of the scene simulation task;
the front-end module is arranged on the front-end server; the scene processing module, the numerical mode simulation module, the ecflow server and the interface module are arranged on the simulation server.
2. The scenario simulation system of claim 1, wherein the ecflow server is configured to:
responding to a starting operation instruction sent by the front-end module through the interface module, triggering the scene processing module to generate scene input data corresponding to a scene simulation task based on scene parameters of the scene simulation task;
Monitoring the running state of the scene processing module;
after the situation processing module is monitored to generate situation input data corresponding to a situation simulation task, triggering the numerical mode simulation module to perform numerical mode simulation based on the situation input data corresponding to the situation simulation task so as to generate simulation result data corresponding to the situation simulation task.
3. The situational simulation system of claim 1, wherein the instructions for changing the operating state include: terminate, suspend, or resume.
4. The scenario simulation system of claim 1, wherein the front-end module is configured to obtain a module configuration item through the interface module, display a second configuration page including the module configuration item to a user, and receive a module configuration of one or more scenario simulation tasks input by the user through the second configuration page; generating, by the interface module, the scenario simulation configuration file further including a module configuration of the one or more scenario simulation tasks.
5. The situational simulation system of claim 4, wherein the module configuration comprises: executing a numerical mode of a scene simulation task;
The numerical mode simulation module is used for configuring a specified numerical mode by using the module of the scene simulation task, and performing numerical mode simulation based on scene input data corresponding to the scene simulation task so as to generate simulation result data corresponding to the scene simulation task.
6. The situational simulation system of any of claims 1 to 5, wherein the interface module comprises:
the configuration service is used for responding to the call of the front-end module, sending parameter configuration items and/or module configuration items to the front-end module, receiving scene parameters and/or module configuration sent by the front-end module, and generating a scene simulation configuration file based on the scene parameters and/or module configuration;
and the data service is used for responding to the call of the front-end module and sending the simulation result data of the scene simulation task to the front-end module.
7. A computing platform, comprising:
one or more processors; and
a memory in which a program is stored,
wherein the program is for implementing the scenario simulation system according to any one of claims 1 to 6.
8. A non-transitory computer readable storage medium storing computer instructions for implementing a scenario simulation system according to any one of claims 1 to 6.
CN202311015576.0A 2023-08-14 2023-08-14 Scene simulation system, computing platform and storage medium Active CN116738812B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311015576.0A CN116738812B (en) 2023-08-14 2023-08-14 Scene simulation system, computing platform and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311015576.0A CN116738812B (en) 2023-08-14 2023-08-14 Scene simulation system, computing platform and storage medium

Publications (2)

Publication Number Publication Date
CN116738812A CN116738812A (en) 2023-09-12
CN116738812B true CN116738812B (en) 2023-11-21

Family

ID=87910020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311015576.0A Active CN116738812B (en) 2023-08-14 2023-08-14 Scene simulation system, computing platform and storage medium

Country Status (1)

Country Link
CN (1) CN116738812B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492907A (en) * 2018-11-08 2019-03-19 成都市环境保护科学研究院 Air quality measure appraisal procedure, system, storage medium and terminal based on CMAQ model
CN110989405A (en) * 2019-12-30 2020-04-10 北京百度网讯科技有限公司 Method, device and system for simulating elevator scene, electronic equipment and storage medium
KR20210128952A (en) * 2021-03-05 2021-10-27 아폴로 인텔리전트 커넥티비티 (베이징) 테크놀로지 씨오., 엘티디. Method, apparatus, and device for testing traffic flow monitoring system
CN114862175A (en) * 2022-04-28 2022-08-05 北京清创美科环境科技有限公司 Method and device for obtaining air quality improvement effect under different scenes
CN115374591A (en) * 2021-10-21 2022-11-22 深圳市城市公共安全技术研究院有限公司 Method, system, device and computer readable storage medium for scene rehearsal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109492907A (en) * 2018-11-08 2019-03-19 成都市环境保护科学研究院 Air quality measure appraisal procedure, system, storage medium and terminal based on CMAQ model
CN110989405A (en) * 2019-12-30 2020-04-10 北京百度网讯科技有限公司 Method, device and system for simulating elevator scene, electronic equipment and storage medium
KR20210128952A (en) * 2021-03-05 2021-10-27 아폴로 인텔리전트 커넥티비티 (베이징) 테크놀로지 씨오., 엘티디. Method, apparatus, and device for testing traffic flow monitoring system
CN115374591A (en) * 2021-10-21 2022-11-22 深圳市城市公共安全技术研究院有限公司 Method, system, device and computer readable storage medium for scene rehearsal
CN114862175A (en) * 2022-04-28 2022-08-05 北京清创美科环境科技有限公司 Method and device for obtaining air quality improvement effect under different scenes

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SHERPA的环境空气质量减排情景模拟评估;朱媛媛;高愈霄;刘冰;王威;鲁宁;朱莉莉;宫正宇;李健军;;中国环境监测(02);全文 *
张程.分布式系统架构.北京:机械工业出版社 ,2020,19-23. *

Also Published As

Publication number Publication date
CN116738812A (en) 2023-09-12

Similar Documents

Publication Publication Date Title
JP6571277B2 (en) Method and apparatus for loading terminal application
WO2021076310A1 (en) Systems and methods for cross-platform scheduling and workload automation
US8762187B2 (en) Easy process modeling platform
CN115292026B (en) Management method, device and equipment of container cluster and computer readable storage medium
CN114072766A (en) System and method for digital labor intelligent organization
US10956257B2 (en) Dynamic failure-resolution computing engine
CN111526049B (en) Operation and maintenance system, operation and maintenance method, electronic device and storage medium
CN107943579B (en) Resource bottleneck prediction method, device, system and readable storage medium
CN113656179A (en) Scheduling method and device of cloud computing resources, electronic equipment and storage medium
CN112765166A (en) Data processing method, device and computer readable storage medium
CN110781180A (en) Data screening method and data screening device
CN113377665A (en) Container technology-based testing method and device, electronic equipment and storage medium
CN115981871A (en) GPU resource scheduling method, device, equipment and storage medium
CN114968707A (en) Method and device for controlling work item state, storage medium and computer equipment
CN114546387A (en) Service arrangement script execution system and method
CN115129574A (en) Code testing method and device
CN111240998B (en) Test case processing method and device
CN116738812B (en) Scene simulation system, computing platform and storage medium
CN110188258B (en) Method and device for acquiring external data by using crawler
CN111190731A (en) Cluster task scheduling system based on weight
CN112231231B (en) Cloud service debugging method, system and device
CN113472638B (en) Edge gateway control method, system, device, electronic equipment and storage medium
CN113448583A (en) Configuration development method and device based on Internet of things, terminal equipment and medium
CN112363774A (en) Storm real-time task configuration method and device
CN112559001A (en) Method and device for updating application

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