Search

CN-122018356-A - Real-time simulation combustion and interaction control system based on cremation process

CN122018356ACN 122018356 ACN122018356 ACN 122018356ACN-122018356-A

Abstract

The invention discloses a real-time simulation combustion and interaction control system based on a cremation process. The system comprises a communication module, a simulation rendering module, a data processing module, an interactive control module, an architecture support module and a framework support module, wherein the communication module is used for establishing and maintaining bidirectional data connection among a server, a client and external hardware, the simulation rendering module is used for generating and dynamically rendering combustion particle special effects and three-dimensional equipment model animations, the data processing module is used for packaging, checking and processing equipment events, distributing data, controlling instructions, protocol data, special effects and other parameter configurations based on a multi-layer architecture, the interactive control module is used for providing a user operation interface and coordinating module response through an event driving mechanism, and the architecture support module is used for providing underlying communication, analysis and multi-thread asynchronous task processing services. The invention realizes hardware in-loop control, state synchronization and high-fidelity visual simulation, and solves the problems of poor simulation effect, unstable communication, insufficient expansibility and weak interactivity of the existing simulation.

Inventors

  • SUN YONGHAI
  • SHI JIANCAI
  • LI ZHONGDA

Assignees

  • 北京域华信息科技有限公司

Dates

Publication Date
20260512
Application Date
20251226

Claims (10)

  1. 1. A real-time simulated combustion and interaction control system based on a cremation process, comprising: the communication module is used for establishing and maintaining full duplex data connection among the server, the client and the control hardware equipment based on the industrial bus protocol, and realizing control instruction issuing and state feedback uploading; the simulation rendering module is in signal connection with the communication module and is used for generating and dynamically rendering the special effects of combustion particles of the cremator and the animation of the three-dimensional equipment model in real time according to the received instructions and data; The data processing module is respectively interacted with the communication module and the simulation rendering module, constructs a framework based on a data layer, an interaction layer, a control layer and a service layer, is used for packaging, storing, checking and processing cremation machine equipment events, data distribution, control commands, protocol data and special effect configuration parameters, and provides a unified data source for other modules; The interaction control module is respectively connected with the data processing module and the simulation rendering module and is used for providing a user operation interface, capturing an operation instruction, scheduling data processing and view updating, and coordinating the response and linkage among the modules through an event driving mechanism; The architecture support module provides bottom layer service support for the communication module, the data processing module and the interaction control module, and comprises a packaging algorithm and a data analysis service, and processes communication monitoring and computation intensive tasks through a multithreading asynchronous execution mechanism; The system realizes hardware in-loop control through the communication module, state synchronization through the data processing module, visual simulation through the simulation rendering module, man-machine interaction through the interaction control module, and high-fidelity real-time simulation and closed-loop interaction control on the cremation process are completed together under the dispatching of the framework supporting module.
  2. 2. The cremation process-based real-time simulated combustion and interactive control system of claim 1, wherein the communication module comprises: The TCP communication unit is used for establishing a reliable network link between the server and the client based on a full duplex communication protocol, transmitting a cremation process control instruction and equipment state data, and integrating a heartbeat packet monitoring and automatic reconnection mechanism to maintain link activity; The industrial bus communication unit is connected with the air quantity and valve control hardware equipment based on the Modbus-RTU protocol, and is used for packaging a control instruction into a standard Modbus protocol data frame and sending the standard Modbus protocol data frame, and simultaneously polling and receiving feedback data of the hardware equipment to realize digital instruction issuing and state acquisition of the control system; the data frame structure of the Modbus-RTU protocol conforms to standard definition and comprises a device address, a function code, a data field and a cyclic redundancy check field, wherein the function code at least comprises a 03H function code for reading a holding register and a 06H function code for writing a single register, and the data field carries a specific register address, a control set value or a state feedback value.
  3. 3. The real-time simulated combustion and interaction control system based on a cremation process of claim 2, wherein the simulated rendering module: The particle special effect unit is constructed based on a particle system of the game engine, and can respond to a state change event from the data processing module to dynamically adjust the emission rate, the color gradient, the direction size and the life cycle parameters of particles so as to simulate the flame forms of the main combustion chamber and the auxiliary combustion chamber in different combustion stages; The three-dimensional model processing unit integrates a cremator three-dimensional model with a skeleton animation structure, adopts a sub-time mapping technology based on physical rendering to perform material expression, enables the model to drive mechanical actions of corresponding parts according to equipment control instructions, and presents visual effects conforming to physical laws under different working conditions; wherein, the process of dynamically adjusting the particle emission rate maps according to the combustion intensity I (dimensionless, range [0,1 ]), and the calculation of the emission rate R emit follows the following relationship: R emit (I)=R min +(R max -R min )·I γ wherein R min and R max are respectively preset minimum and maximum emission rates (particle number/second), gamma is a nonlinear adjustment coefficient (gamma > 0) for controlling the curve form of the emission rate changing along with the combustion intensity, and when gamma >1, the emission rate increases faster under high combustion intensity.
  4. 4. A real-time simulated combustion and interactive control system based on a cremation process as claimed in claim 3, wherein said data processing module encapsulates and maintains three types of core data models: The equipment parameter model at least comprises real-time data of the temperature pressure of the main combustion chamber, the temperature of the auxiliary combustion chamber and the fuel gas flow; the communication protocol model defines the mapping relation between a TCP instruction structure and a Modbus-RTU protocol data frame format and a register address; the special effect parameter model stores particle system attribute configuration sets corresponding to different combustion states; The data processing module is also responsible for carrying out validity check on input data, carrying out state conversion and parameter mapping according to service logic, and providing data support for control instruction generation and simulation effect updating; wherein the validity check comprises a threshold judgment of the main combustion chamber temperature pressure data P, which must satisfy a physical constraint: P min ≤P≤P max and logical consistency constraints when the secondary combustion chamber status flag S aux is "off", its associated fuel gas flow data F aux must be zero, namely: Wherein P min 、P max is the lower and upper pressure limits set according to the physical characteristics of cremator.
  5. 5. The cremation process based real time simulated combustion and interactive control system of claim 4, wherein the interactive control module comprises: The view unit comprises a two-dimensional virtual operation panel and a three-dimensional scene visualization window, and is used for displaying equipment parameters and button states in real time and capturing clicking and setting operations of a user; The control unit is used as a controller in the model view controller service architecture, responds to a user operation event transmitted by the view unit, calls the data processing module to update the state or generate a control instruction, and drives the view unit and the simulation rendering module to update synchronously; the event scheduling unit is a center for maintaining global events and is responsible for defining and managing event types in the system, including ignition instruction events, air quantity adjustment events and special effect update events, and each functional module performs decoupling communication with subscription events through release; wherein the event triggering and responding process managed by the event scheduling unit forms a discrete event system, the event type set is epsilon, and the module set is epsilon The subscription relationship may be represented as a map Representing which sets of modules each event e epsilon is subscribed to when modules When an event e is issued, the system sequentially calls all preregistered Callback functions Callback m′ (e, data) of m' e Sub (e), wherein the data is a data load carried by the event, so that non-blocking asynchronous communication is realized.
  6. 6. The cremation process based real time simulated combustion and interactive control system of claim 5, wherein the architecture support module comprises: the service layer unit is used as a service layer in the service architecture of the model view controller and is encapsulated with TCP communication service, modbus communication service, data analysis service and event dispatch service to provide a uniform bottom layer service interface for upper layer service logic; the multithreading processing unit is used for creating a working thread independent of a user interface, specially executing monitoring and analyzing of TCP data streams, polling and reading of Modbus equipment data, and real-time calculation tasks of historical data batch processing or complex special effect parameters, and processing results are recalled to the main thread through an event mechanism of the event scheduling unit. The processing efficiency of the multi-thread processing unit on the batch processing task of the historical data is improved through parallelization. Assuming that the time complexity of processing N records by a single thread is O (N), when parallel processing is enabled for k worker threads, the relationship between the processing time T parallel and the number of threads k in an ideal case may be approximated as: Wherein T serial is the total time of single-thread processing, and C overhead is the fixed overhead caused by thread creation, task allocation and result synchronization. By reasonably setting the k value (generally not exceeding the number of CPU physical cores), the optimization of the overall response efficiency of the system is realized.
  7. 7. The real-time simulation combustion and interaction control system based on the cremation process according to claim 2 or 6, wherein the heartbeat monitoring mechanism in the TCP communication unit is characterized in that a service end and a client end interact with each other according to a fixed period T heartbeat , if no heartbeat response of the other party is received in N continuous periods, connection abnormality is judged, and a reconnection process including socket reconstruction and identity reauthentication is automatically triggered so as to ensure continuity and instantaneity of control instruction transmission; Wherein T heartbeat is a preset heartbeat packet sending period, the value of which is set according to the network delay stability, N is a maximum frequency threshold value for allowing the heartbeat packet to be lost, the maximum frequency threshold value is used for avoiding erroneous judgment when the network fluctuates briefly, and the connection abnormality judgment time T timeout meets the following conditions: T timeout =N×T heartbeat +S Where Δt is the redundancy time margin for absorbing network transmission jitter of a single heartbeat packet.
  8. 8. The cremation process based real time simulated combustion and interactive control system of claim 4 wherein said special effects parameter model is stored in a configurable file, said particle special effects unit preloaded with a plurality of parameter configurations corresponding to typical combustion conditions; when the state of a combustion chamber in the equipment parameter model changes, the event scheduling unit issues a special effect update event, triggers the particle special effect unit to dynamically switch and apply corresponding parameter configuration, and realizes the accurate synchronization of flame visual effect and equipment running state; The state synchronization process may be modeled as a discrete event driven system with m predefined combustion states s= { S 1 ,s 2 ,...,s m }, each state S i corresponding to a set of special effect parameters P i ={p i1 ,p i2 ,...,p in }. When the device state transitions from s k to s l , the trigger event E kl , the system response function R (E kl ) performs a parameter switching operation: R(E kl ):P current ←P l Wherein P current is the set of parameters currently in effect for the particle system, and ζ represents the assignment operation, thereby ensuring that the visual parameter P current is consistent with the logic state s l in real time.
  9. 9. The real-time simulation combustion and interaction control system based on the cremation process according to claim 5 is characterized in that a virtual operation panel in the view unit is provided with interaction elements consistent with the layout of a control panel of a physical cremation machine, and after operation events of a virtual button and a knob are processed by the control unit, a user drives the simulation rendering module to update a local visual effect and simultaneously sends a control instruction to a remote server or hardware equipment through the communication module to form an interaction closed loop integrating operation simulation control; the closed-loop interactive control instruction generation process may be expressed as: Wherein u (t) is a control instruction vector (such as target air volume and ignition signal) generated at time t, e (t) =r (t) -y (t) is an error vector, r (t) is a user set value or a target state, and y (t) is an actual state vector fed back from hardware or a server side. K p ,K i ,K d is a proportional, integral and differential gain coefficient matrix used for adjusting the response speed, steady-state precision and anti-interference capacity of the system, and the control command u (t) is written into a holding register corresponding to hardware equipment by the industrial bus communication unit according to a Modbus-RTU protocol format.
  10. 10. The real-time simulation combustion and interaction control system based on the cremation process according to claim 6 is characterized in that the complex special effect parameter calculation task executed by the multithread processing unit comprises flame morphology simulation calculation based on a simplified fluid dynamics equation, wherein the flame morphology simulation calculation is asynchronously performed in an independent thread, and a calculation result is used for updating the particle force field parameters and the motion trail in the particle special effect unit in real time, so that the real-time interaction of the system is ensured, and meanwhile, the physical reality of combustion simulation is improved; the simplified fluid dynamics equation takes the form of a two-dimensional vortex particle method or a simplified Navier-Stokes equation. For example, a simplified momentum equation for driving the evolution of the particle velocity field v can be expressed as: Wherein v in the equation is the same velocity field vector, Representing the rate of change of the velocity field over time, The term of convective acceleration of the fluid is represented by T, T is time, ρ is fluid density (approximately constant), p is pressure field, g is gravity acceleration vector, f buoyancy (T)=β(T-T ambient ) g is buoyancy term, β is thermal expansion coefficient, T is local temperature, and T ambient is ambient temperature. After the numerical value of the equation is solved in an independent thread, the obtained velocity field v is applied to update the stress and the motion direction of each particle in the particle system, so that the rising, turbulent motion and diffusion form of flame are simulated.

Description

Real-time simulation combustion and interaction control system based on cremation process Technical Field The invention relates to the technical field of industrial automation control and computer simulation, in particular to a real-time simulation combustion and interaction control system based on a cremation process. Background In the technical skill teaching and competition of current civil universities and colleges and industries, the operation training of large-scale special equipment such as cremation machines is core content. The traditional training mode severely depends on physical equipment, but the equipment is high in manufacturing cost, wide in occupied area and high in maintenance cost, and teaching units are difficult to be equipped on a large scale, so that the practical operation opportunities of students are limited. More prominently, the real cremation process involves high-temperature high-pressure open fire, has large safety risk and is not suitable for beginners to directly operate. Meanwhile, key parameters such as internal combustion state and pressure change of the equipment are difficult to visually display in real time, the teaching process lacks transparency, and the teaching effect evaluation lacks data support. The adoption of a virtual simulation system for assisting teaching has become a trend, but the prior proposal has a remarkable technical bottleneck that in the communication layer, a simple unidirectional protocol or a protocol with insufficient stability is mostly adopted, so that stable, real-time and bidirectional data synchronization among a server, a client and peripheral hardware is difficult to realize, and the simulation state and a control instruction are not synchronous. In the visual aspect, the combustion special effect is simpler and stiff, most of static charks or prerendering animations are not capable of dynamically and realistically simulating continuous changes of flame forms according to operation parameters, and the three-dimensional equipment model also lacks fine mechanical action feedback and is insufficient in immersion. On the system architecture level, each functional module is tightly coupled, the expansibility is poor, and the flexible access to new hardware or the expansion of new subjects are difficult. In the real-time aspect, the lack of an efficient resource scheduling and data processing mechanism easily causes interface jamming when complex calculation or multipath communication is performed, and the operation smoothness and training rhythm are affected. Disclosure of Invention In view of the above, it is desirable to provide a real-time simulation combustion and interaction control system based on a cremation process, so as to solve or alleviate the technical problems existing in the prior art. The technical scheme of the embodiment of the invention is realized by a real-time simulation combustion and interaction control system based on a cremation process, which comprises the following components: the communication module is used for establishing and maintaining full duplex data connection among the server, the client and the control hardware equipment based on the industrial bus protocol, and realizing control instruction issuing and state feedback uploading; the simulation rendering module is in signal connection with the communication module and is used for generating and dynamically rendering the special effects of combustion particles of the cremator and the animation of the three-dimensional equipment model in real time according to the received instructions and data; The data processing module is respectively interacted with the communication module and the simulation rendering module, constructs a framework based on a data layer, an interaction layer, a control layer and a service layer, is used for packaging, storing, checking and processing cremation machine equipment events, data distribution, control commands, protocol data and special effect configuration parameters, and provides a unified data source for other modules; The interaction control module is respectively connected with the data processing module and the simulation rendering module and is used for providing a user operation interface, capturing an operation instruction, scheduling data processing and view updating, and coordinating the response and linkage among the modules through an event driving mechanism; The architecture support module provides bottom layer service support for the communication module, the data processing module and the interaction control module, and comprises a packaging algorithm and a data analysis service, and processes communication monitoring and computation intensive tasks through a multithreading asynchronous execution mechanism; The system realizes hardware in-loop control through the communication module, state synchronization through the data processing module, visual simulation through the simulation rendering module, man-mach