CN109543230A - Heavy media coal separation dummy emulation system and method based on Unity3D - Google Patents

Heavy media coal separation dummy emulation system and method based on Unity3D Download PDF

Info

Publication number
CN109543230A
CN109543230A CN201811242427.7A CN201811242427A CN109543230A CN 109543230 A CN109543230 A CN 109543230A CN 201811242427 A CN201811242427 A CN 201811242427A CN 109543230 A CN109543230 A CN 109543230A
Authority
CN
China
Prior art keywords
coal separation
virtual
scene
algorithm
unity3d
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811242427.7A
Other languages
Chinese (zh)
Other versions
CN109543230B (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.)
China University of Mining and Technology CUMT
Original Assignee
China University of Mining and Technology CUMT
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 China University of Mining and Technology CUMT filed Critical China University of Mining and Technology CUMT
Priority to CN201811242427.7A priority Critical patent/CN109543230B/en
Publication of CN109543230A publication Critical patent/CN109543230A/en
Application granted granted Critical
Publication of CN109543230B publication Critical patent/CN109543230B/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/003Navigation within 3D models or images

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of heavy media coal separation dummy emulation system and method based on Unity3D, including virtual coal separation process monitoring device, variable/simulation result database and coal separation process control algorithm library;The heavy media coal separation three-dimensional virtual scene interface that the monitoring interface of the virtual coal separation process monitoring device is realized by Unity3D developing instrument is built;Virtual coal separation process monitoring device includes subscriber management function module, virtual coal separation scene first person roaming functions, more people's online function modules, virtual coal separation process operating animated function module, cleaning unit query function module, coal separation process control algorithm design function module, system log module;The present invention has the advantages that cost performance is high, versatility is good, process is more intuitive and copying is strong.

Description

Heavy media coal separation dummy emulation system and method based on Unity3D
Technical field
The present invention relates to a kind of heavy media coal separation dummy emulation system and method, specifically a kind of weight based on Unity3D Media coal separation dummy emulation system and method.
Background technique
Coal separation refers to the process of sub-elects cleaned coal from raw coal, it is the key technology for measuring clean output of coal.In raw coal It, can be during coal burning by mineral if directly being utilized without coal separation process containing a large amount of minerals and sulphur content etc. Matter absorbs amount of heat, causes the coal thermal efficiency low, and energy utilization rate is unable to satisfy actual production life.And due to sulphur content Equal impurity exist, and coal directly burns and can generate a large amount of environmental contaminants, cause serious destruction to ecological environment.With choosing Coal technology continues to develop, and the technologies such as coal jigging, coal floatation, heavy media coal separation are gone forward side by side to exercise and be used by continuous proposition.Its Middle dense-medium separation technology has the characteristics that high efficiency and high sharpness of separation, and compared to other coal preparation technologies, heavy media coal separation tool There is more wide in range separating density adjustable range, adapts to most of auto-control, therefore the coal preparation method is increasingly becoming coal One of the important coal separation process in charcoal sorting field.
Heavy medium coal preparation process is since its mechanism is complex, and physical equipment is costly, equipment volume it is excessive and Process hazard is higher, is not suitable for directly carrying out building research in laboratory, thus researcher's design based on coal separation The automatic control algorithm of journey largely uses simulation software progress mechanism or data modeling to be studied, however soft by emulating There are larger differences with real process for the data result that part obtains, for the researcher of first contacts coal separation process, largely Data result lacks practical coal preparation industry process support, it is difficult to deepen the understanding for coal separation process.It is directed to work at present both at home and abroad The a variety of configuration softwares of industry Process Design can carry out simple development to software interface by configuration mode, and pass through I/O Mouth carries out data acquisition and control for some important parameters of industrial process.For coal separation process, existing configuration software is empty It is more rough that the coal preparation industry process come is built in quasi- interface, is difficult as a professional coal preparation industry process training soft ware pair The researcher of first contacts industrial automation or colleges and universities' Engineering Students give training;And most of coal separation industrial control configuration is soft Part lacks algorithm design functions of modules, and researcher is only capable of for algorithm being applied to real process, then the operating status of process is joined Number reads host computer observation data variation, causes the design cost of complete set algorithm higher, is unfavorable for laboratory research people Research of the member to coal separation process.
Summary of the invention
In view of the above existing problems in the prior art, the present invention provides a kind of heavy media coal separation based on Unity3D is virtual Analogue system and method have the advantages that cost performance is high, versatility is good, process is more intuitive and copying is strong.
To achieve the goals above, the technical solution adopted by the present invention is that: a kind of heavy media coal separation based on Unity3D is empty Quasi- analogue system, including virtual coal separation process monitoring device, variable/simulation result database and coal separation process control algorithm library;
The heavy media coal separation three that the monitoring interface of the virtual coal separation process monitoring device is realized by Unity3D developing instrument Dimension virtual scene interface is built;Virtual coal separation process monitoring device includes subscriber management function module, virtual coal separation scene First person roaming functions, more people's online function modules, virtual coal separation process operating animated function module, cleaning unit are looked into Ask functional module, coal separation process control algorithm design function module, system log module;
Subscriber management function module, for storing account, password and the corresponding operating record of analogue system user;
Virtual coal separation scene first person roaming functions browse function for providing the first visual angle in virtual coal separation scene Can, enable users to check coal preparation industry process operation state and relevant device information in factory;
More people's online function modules, the online exchange function for providing user and the invoking server in simulation process Middle database information, and simulation result is uploaded in database;
Virtual coal separation process operates animated function module, for simulating operating status, the coal preparation industry of practical coal separation process The part operation process of process operation process environment and site operation people during coal separation;
Cleaning unit query function module, for providing, user simulates the title of each equipment during coal separation and its is right The function of answering;
Coal separation process control algorithm design function module, for providing design interface, the control parameter of user's control algorithm Input, waveform diagram is shown, scene is verified, calls the function of example algorithm;
System log module, for recording the parameter feelings of the operating process of user and system operating in system operation Condition, and be stored under system file;
Variable/simulation result database is the coal separation process control algorithm variable data library that Sql server is built and imitates True result data repository communicates script using C# composing software, and configures Unity3D/Sql server data communication protocol, The algorithm control variable completed in dummy emulation system uploads and emulates in real time reading data;Windows environment is used simultaneously Under odbc database access driving, database server is connected to Matlab data-interface, system algorithm environment is completed and matches It sets;
Coal separation process control algorithm library is that algorithm of the dummy emulation system under Matlab environment is compiled and be based on Coal separation process control algorithm integrating documents under Matlab translation and compiling environment are calculated by calling local Matlab compiler to generate control Method NameSpace, i.e. generation Unity3D/matlab compilation run module, then using under the C# script calling module of Unity3D Algorithm interface completes system interface to the calling of algorithms library.
Further, the virtual coal separation scene first person roaming functions call the character of Unity3D Controller function library sets corresponding initial moving parameter, and the mobile script write by function library and based on C# is attached It is added on main camera, completes the function that user is roamed in virtual coal separation scene with first person.
Further, more people's online function modules are equipped with client and server architecture, pass through setting request and response Module completes the interaction of dummy emulation system client and server using socket communication agreement;User can be in client Database information in real-time calling server, and simulation result is uploaded in database, realize data sharing.
Further, the virtual coal separation process operating animated function module is set by 3DS MAX software to required in scene It is standby to carry out three-dimensional modeling, and use the tissue of Skeletal Skinned technology completion equipment animation data;Configure related three-dimensional modeling parameter Afterwards be packaged consistent with model parameter needed for Unity3D imports into virtual coal separation environment;Pass through local Unity3D's Animtation module and the corresponding C# operation script of compiling further improve the man-machine friendship of equipment in user and virtual scene Mutually, i.e., user is observing virtual industrial process simultaneously, can carry out some simple operations, as simulated operation person to raw coal particle into Understanding of the user for coal separation process is deepened in row manual screening etc..
Further, the virtual coal separation process operating animated function module further include virtual operation process status index and Virtual environment index, These parameters are by the material balance side to practical coal separation collection in worksite data and analysis coal separation process The major parameter index that journey obtains;Wherein virtual operation process status includes four indices, the ash content for respectively including in raw coal Content, sulphur content content, moisture content and volatile matter content;Virtual environment includes two indexs, respectively virtual coal separation scene Dust concentration contained by middle air, in-plant noise intensity.
Further, the coal separation process control algorithm Functional Design module is by calling Matlab algorithm environment, compiling control Algorithm processed, and designed algorithm is stored in a manner of .m file, and be integrated into algorithms library;Algorithm simulating result is stored in number According in library, and foreground monitoring interface is sent data to by communication interface, passes through the Graphmaker plug-in unit pair in Unity3D Obtained data carry out point-rendering, form the waveform diagram of simulation result;It is carried out using the C# script translation and compiling environment that Unity3D is carried Script is attached to the equipment in virtual scene and carries out scene by the compiling of equipment operation process scripts, the emulation data read Verifying.
A kind of application method of the heavy media coal separation dummy emulation system based on Unity3D, specific steps are as follows:
Step 1: opening heavy medium coal preparation process and control dummy emulation system, pass through subscriber management function mould in initial interface Block carries out user's registration and login system, clicks operation button and virtual coal separation scene first person roaming functions is called to enter To virtual the first visual angle of heavy media coal separation scene;
Step 2: calling more each software layers of people's online function module testing by clicking testing button in virtual scene Between communication and network communication whether be in normal condition, if pop-up software layer communication warning, according to prompt check host Whether ODBC data source and I/O driving equipment configure correctly;If popping up network communication warning, and observing system chat window It shows " disconnection ", checks whether host ip setting or local network connection are in normal condition according to prompt;
Step 3: coal separation process control algorithm design function module being called by the keyboard hot key of setting, and then is obtained virtual Coal separation process control algorithm editing interface can directly select and example algorithm is called to carry out control algorithm validation, or certainly according to user Body research direction clicks any blank module and carries out control algolithm editor;Algorithm after editting is synchronized to backstage algorithms library, And by calling Matlab translation and compiling environment to carry out program compiling, if compiling is wrong, it is alert that foreground interface will pop up algorithm compile error It accuses;If compiling is correct, corresponding control parameter is inputted by the parameter input field at interface, and clicks button operation program, program The relevant parameter and simulation result for being included are uploaded onto the server database in real time by interface;After emulation, data wave The waveform diagram display field that shape figure is displayed in interface facilitates user to check;System is according to respective virtual operational process state index And 3 threshold values of virtual environment setup measures, 3 threshold values respectively represent that index is too low, index is normal, index is excessively high, again into Row scene verifying, if simulation result is more than or lower than the threshold value that system is arranged, thens follow the steps 4;If simulation result is index Normally, by first person roam mode, user energy Self-operating role observes the washing feelings of coal in virtual coal preparation industry scene The scene changes of the change of condition and intraluminal fluid position;
Step 4: simulation result is more than or lower than the threshold value that system is arranged, then coal separation operational process will stop in virtual scene Only, system pushes corresponding warning message to user, and user adjusts respective algorithms parameter according to prompt information and re-starts algorithm Verifying;
Step 5: user can download the various algorithm parameters and simulation result for being included from server-side database, and Data waveform figure and virtual coal separation scene changes situation are checked by way of step 3;
Step 6: checking the situation of change of system working order and simulation result by system log module, used if meeting The design object at family, then emulation experiment terminates;If being unsatisfactory for the design object of user, step 3 is repeated to 6, is used until meeting The design object at family.
Compared with prior art, the present invention uses virtual coal separation process monitoring device, variable/simulation result database and choosing Coal process control algorithm library combines mode, has the advantages that
1, virtual heavy media coal separation emulation platform of the invention contains the three-dimensional process process of coal separation process, passes through Unity3D simulates coal preparation technique scene true to nature, provides suitable coal separation research environment, and it is related to be very suitable to automation The experimental teaching of subject and the subject study of algorithm research person;
2, platform of the present invention uses Unity3D to simulate heavy media coal separation actual moving process as foreground boundary layer, and Provided with human-computer interaction function, reduce research and development cost, shortens the debug time of algorithm;
3, emulation platform of the present invention has good open and algorithm scalability, and researcher can grinding for oneself Study carefully object and write control algolithm in platform, this provides one effectively in fact for the verifying of heavy media coal separation process control algorithm Test platform.
Detailed description of the invention
Fig. 1 is system structure diagram of the invention;
Fig. 2 is software architecture diagram of the invention;
Fig. 3 is experiment flow figure of the invention.
Specific embodiment
The present invention will be further described below.
As shown in Figure 1, a kind of heavy media coal separation dummy emulation system based on Unity3D, including virtual coal separation process prison View apparatus, variable/simulation result database and coal separation process control algorithm library, further, which further comprises virtually Coal separation process servers end;
The heavy media coal separation three that the monitoring interface of the virtual coal separation process monitoring device is realized by Unity3D developing instrument Dimension virtual scene interface is built;Virtual coal separation process monitoring device and virtual coal separation process servers end are logical by socket News agreement carries out data transmission;Wherein virtual coal separation process monitoring device includes subscriber management function module, virtual coal separation scene First person roaming functions, more people's online function modules, virtual coal separation process operating animated function module, cleaning unit are looked into Ask functional module, coal separation process control algorithm design function module, system log module;
Variable/the simulation result database refers to the coal separation process control algorithm variable data built by Sql server Library and Simulation result data repository communicate script using C# composing software, and configure Unity3D/Sql server data Communications protocol, the algorithm control variable completed in dummy emulation system upload and emulate in real time reading data;Utilize Windows Odbc database under environment accesses driving, and database server is connected to Matlab data-interface, completes system algorithm ring Border configuration;
Coal separation process control algorithm library: refer to algorithm compiling and base of the dummy emulation system under Matlab environment Coal separation process control algorithm integrating documents under Matlab translation and compiling environment refer mainly to that local Matlab compiler is called to generate control Algorithm NameSpace processed, i.e. generation Unity3D/matlab compilation run module, recycle the C# script calling module of Unity3D Under algorithm interface complete system interface to the calling of algorithms library.
In embodiments of the present invention, the heavy medium coal preparation process based on Unity3D controls dummy emulation system software configuration Figure is as shown in Figure 2.User logs in initial interface and enters user management module progress system registry, logs in after succeeding in registration virtual imitative The true system first person roams interface, and user's moving method can be controlled up and down by WSAD, or pass through keyboard Directionkeys carries out mobile control.Environment parameter value in local scene is called out by hot key CTRL+Q, is called out by CTRL+F Coal separation process control algorithm Simulation Interface.If the test communication function pair host ip and network connection of clicking the interface lower left corner are matched It sets normally, user can exchange in scene with other users, can also be downloaded to the data in server.User By calling hot key to enter coal separation process control algorithm Simulation Interface, wherein algorithm environment is to have invoked Matlab translation and compiling environment, Algorithm compiling is carried out with modular form in interface.The algorithm designed in interface is passed to directly by way of port communication Matlab, and the related operation function of matlab internal library is called, control parameter of algorithm then passes through the incoming change of ActiveX module Database is measured, the DLL field of Relational database is introduced specifically inside Unity3D, and compile by the C# of local Unity3D It translates environment and writes communication identification code linked database transmission port.After database obtains the parameter of interface input, by configuring local Database server is connected Matlab translation and compiling environment, and introduces correlation conn field inside Matlab by ODBC data-driven It is docked with the tables of data in database.Foreground monitoring interface is once docked with Matlab translation and compiling environment successfully, clicks emulation It runs module and runs control algolithm.Related simulation result can be passed to by communication modes same as above in the algorithms library of backstage Simulation result database and foreground interface, and the control algolithm file of design is saved into system path, while algorithm automatically Program segment is saved into coal separation process algorithm library, and user can call control algolithm to make by the interface function in algorithms library With.User observes simulation result in the waveform diagram that virtual coal separation process monitoring interface includes, and clicks scene verifying observation virtual ring Scene changes and the variation of coal color in border etc. further understand the advantage place of coal separation process and algorithm for design.
It is specifically described the function of modules below.
Subscriber management function module carries out account registration to new user wherein clicking user management;It is straight if existing account Contact, which is hit, logs into heavy media coal separation dummy emulation system roaming interface;It clicks to nullify and can nullify active user's account, then Secondary click user management switches other account login systems, reads related corresponding operating record, facilitates being used for multiple times for user.
Virtual coal separation scene first person roaming functions provide the first visual angle in virtual coal separation scene for user and browse Function, in order to check that coal preparation industry process operation state and relevant device information, user can freely operate in factory Operational process in factory is observed, system software layer communication and network communication are tested in the test communication for clicking lower right.
More people's online function modules, more people's on-line modules provide system online exchange function for user, and are arranged Client and server architecture pass through setting request and respond module, using socket communication agreement, complete client and clothes The interaction of business device;User can in client real-time calling server database information, and simulation result is uploaded into data In library, data sharing is realized.User double-clicks enter key and opens system chat interface, if display in chat frame, host ip are matched It sets and is connected to the network normally, if display disconnects, it is wrong to need to check whether local IP configures, or network connection Whether abnormal phenomenon is had.
Virtual coal separation process operates animated function module, and the virtual coal separation process operating animated function module realizes mould The operating status and coal preparation industry process operation process environment of quasi- practical coal separation process, user are same in the virtual industrial process of observation When, some simple operations can be carried out, such as simulation worker selects raw coal particle, deepen understanding of the user for coal separation process; Corresponding virtual operation process status index and virtual environment index are concurrently set in the module, wherein the virtual operation Process status mainly includes 4 indexs, it may be assumed that content of ashes, sulphur content content, moisture content and the volatile matter for including in raw coal contain Amount;The virtual environment contains 2 indexs, it may be assumed that air environment (i.e. dust concentration contained by air), factory in virtual coal separation scene Interior noise intensity.Corresponding index option can be called out by hot key, any function button is clicked and shows corresponding real-time fortune Row state index either environmental index.System running state and environmental index there are 3 threshold values, respectively index it is too low, Index is normal, index is excessively high, if user calls the state value obtained after control algolithm below or above practical index, Huo Zheyong Family maloperation in virtual scene causes the environmental index in virtual coal washery that acute variation occurs, and system will provide warning, and be System enters red warning interface, and pops up error message, and entire virtual coal separation process shuts down.
Cleaning unit query function module, key is set during the cleaning unit enquiry module provides coal separation for user Standby title and corresponding function.The functional module includes the device model being shown in virtual scene, practical coal separation process The working principle of industry pattern and equipment.Remaining equipment user can with device name included in pointing device list into Row checks understanding.
Coal separation process control algorithm design function module module provides the design interface of control algolithm, control for user Parameter input, waveform diagram is shown, scene is verified, calls the function of example algorithm.The module, which passes through, calls Matlab algorithm environment, Way of compiling control algorithm, and designed algorithm is stored in a manner of .m file, and be integrated into algorithms library, under Matlab environment Complete encapsulation;Algorithm simulating result stores in the database, and sends data to foreground monitoring interface by communication interface, leads to The Graphmaker plug-in unit crossed in Unity3D carries out point-rendering to obtained data, and such as primary 2000 data of selection, which are read in, inserts Part connects to form waveform diagram, and in waveform diagram individualism and scene, which shows after reading data task, When exiting Simulation Interface or carrying out new algorithm design, waveform diagram will do it data initialization;It clicks in Simulation Interface Scene authentication function, emulation data will import the additional Run Script of equipment, by a scene initialization, virtual coal separation environment It will be operated according to new simulation numerical, intuitively understand algorithm effect for user.
System log module is the operating process and system working order of user in user record system operation, After user completes emulation experiment, the operating process of system emulation data and user in virtual scene is packaged into system log It is stored under system file, same day time+" .lod " suffix has been named for all system logs.
In one embodiment of this invention, the heavy medium coal preparation process based on Unity3D controls dummy emulation system By coal separation process control algorithm researcher either start-up operate, for coal separation process control algorithm design and Simulation results show experiment.
Specific emulation use process are as follows:
Step 1: opening heavy medium coal preparation process and control dummy emulation system, carry out user's registration in initial interface and log in System clicks " entering scene " function button and enters virtual the first visual angle of heavy media coal separation scene.
Step 2: clicked in virtual scene by mouse communication between each software layer of " test communicate " test and Whether network communication is in normal condition, if pop-up software layer communication warning, according to prompt check host odbc data source and Whether I/O driving equipment configures correctly;If popping up network communication warning, and observing system chat window shows " disconnection ", Check whether host ip setting or local network connection are in normal condition according to prompt.
Step 3: virtual coal separation process control algorithm editing interface being called out by hot key, can directly select and example is called to calculate Method carries out simple control algorithm validation, or according to user itself research direction, clicks any blank module and carry out control algolithm volume Volume.Algorithm after editting is synchronized to backstage algorithms library, and by calling Matlab translation and compiling environment to carry out program compiling, if compiling Translate it is wrong, foreground interface will pop up algorithm compile error warning;If compiling is correct, inputted by the parameter input field at interface corresponding Control parameter, and click " RUN " button operation program, the relevant parameter and simulation result that program is included pass through interface Real-time database of uploading onto the server.After emulation, it is convenient that data waveform figure is displayed on the waveform diagram display field in interface User checks.System respectively refers to according to 3 threshold values of respective virtual operational process state index and virtual environment setup measures It marks that too low, index is normal, index is excessively high, " scene verifying " is again tapped on, if simulation result is more than or is arranged lower than system Threshold value thens follow the steps 4;If simulation result is normal, by first person roam mode, user can Self-operating role observation void The scene changes such as change of the washing situation of coal and intraluminal fluid position in quasi- coal preparation industry scene.
Step 4: simulation result be more than or lower than system setting threshold value, coal separation operational process will stop in virtual scene Only, system pushes corresponding warning message to user, and user adjusts respective algorithms parameter according to prompt information and re-starts algorithm Verifying, wherein threshold triggers module is write using the C# script of Unity3D, and the setup module triggered time is 2000ms, mould System thresholds trigger function module will in a dormant state before block triggers;User clicks any key and returns to first person roaming, And coal separation process control algorithm Simulation Interface is opened by hot key, the algorithm column on right side is selected, clicks and abnormal algorithm mould occurs Block, and re-call Matlab translation and compiling environment and carry out modification of program;And parameter input field is clicked, new control ginseng is keyed in again It counts, and clicks simulation run column, again observing system situation and algorithm effect.
Step 5: user can download the various algorithm parameters and simulation result for being included from server-side database, And data waveform figure and virtual coal separation scene changes situation are checked by way of step 3.
Step 6: the situation of change of system working order and simulation result is checked by system log, if meeting user's Design object, then emulation experiment terminates.
In conclusion the present invention is based on the heavy medium coal preparation processes of Unity3D to control virtual emulation system using the above scheme System has the advantage that virtual heavy media coal separation emulation platform involved in this programme contains the three-dimensional process stream of coal separation process Journey simulates coal preparation technique scene true to nature by Unity3D, provides suitable coal separation research environment, is very suitable to automatic Change the experimental teaching of related discipline and the subject study of algorithm research person;Platform of the present invention uses Unity3D as foreground interface Layer simulation heavy media coal separation actual moving process, and it is provided with human-computer interaction function, reduce research and development cost, shortens algorithm Debug time;Emulation platform of the present invention has good open and algorithm scalability, and researcher can be directed to oneself Research object writes control algolithm in platform, this provides one effectively for the verifying of heavy media coal separation process control algorithm Experiment porch.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Anyone skilled in the art in the technical scope disclosed by the present invention, according to the technique and scheme of the present invention and its Inventive concept is subject to equivalent substitution or change, should be covered by the protection scope of the present invention.

Claims (7)

1. a kind of heavy media coal separation dummy emulation system based on Unity3D, which is characterized in that including virtual coal separation process monitoring Device, variable/simulation result database and coal separation process control algorithm library;
The monitoring interface of the virtual coal separation process monitoring device is three-dimensional empty by the heavy media coal separation that Unity3D developing instrument is realized Quasi- scene interface is built;Virtual coal separation process monitoring device includes subscriber management function module, virtual coal separation scene first People claims roaming functions, more people's online function modules, virtual coal separation process operating animated function module, cleaning unit inquiry function It can module, coal separation process control algorithm design function module, system log module;
Subscriber management function module, for storing account, password and the corresponding operating record of analogue system user;
Virtual coal separation scene first person roaming functions, for providing the first visual angle browsing function in virtual coal separation scene, User can check coal preparation industry process operation state and relevant device information in factory by the functional module;
More people's online function modules, for providing the online exchange of user and the database in invoking server in simulation process Information, and simulation result is uploaded in database;
Virtual coal separation process operates animated function module, for simulating operating status, the coal preparation industry process of practical coal separation process The part operation process of operational process environment and site operation people during coal separation;
Cleaning unit query function module, for providing in the virtual coal separation scene of user the title of each equipment and its is corresponding Function;
Coal separation process control algorithm design function module, for provide user's control algorithm design interface, control parameter input, Waveform diagram is shown, scene is verified, calls the function of example algorithm;
System log functional module, for recording the parameter feelings of the operating process of user and system operating in system operation Condition, and be stored under system file;
Variable/simulation result database is the coal separation process control algorithm variable data library that Sql server is built and emulation knot Fruit data repository communicates script using C# composing software, and configures Unity3D/Sql server data communication protocol, completes Algorithm control variable in dummy emulation system uploads and emulates in real time reading data;Simultaneously using under Windows environment Odbc database access driving, is connected to Matlab data-interface for database server, completes system algorithm environment configurations;
Coal separation process control algorithm library is that algorithm of the dummy emulation system under Matlab environment is compiled and compiled based on Matlab The coal separation process control algorithm integrating documents under environment are translated, it is empty by calling local Matlab compiler to generate control algolithm name Between, then using the algorithm interface completion system interface under the C# script calling module of Unity3D to the calling of algorithms library.
2. a kind of heavy media coal separation dummy emulation system based on Unity3D according to claim 1, which is characterized in that The virtual coal separation scene first person roaming functions call the character controller function library of Unity3D, Corresponding initial moving parameter is set, function library and the mobile script write based on C# are attached on main camera, it is complete The function of being roamed in virtual coal separation scene at user with first person.
3. a kind of heavy media coal separation dummy emulation system based on Unity3D according to claim 1, which is characterized in that More people's online function modules are equipped with client and server architecture, by setting request and respond module, utilize Socket Communications protocol completes the interaction of dummy emulation system client and server.
4. a kind of heavy media coal separation dummy emulation system based on Unity3D according to claim 1, which is characterized in that The virtual coal separation process operating animated function module carries out three-dimensional modeling to equipment required in scene by 3DS MAX software, And the tissue of equipment animation data is completed using Skeletal Skinned technology;Mould needed for configuring related three-dimensional modeling parameter and Unity3D Shape parameter is unanimously packaged afterwards and imports into virtual coal separation environment;Pass through the Animtation module and compiling phase of local Unity3D C# operation script is answered further to improve the human-computer interaction of equipment in user and virtual scene.
5. a kind of heavy media coal separation dummy emulation system based on Unity3D according to claim 4, which is characterized in that The virtual coal separation process operating animated function module further includes virtual operation process status index and virtual environment index, on Stating index is the main ginseng obtained by the material balance equation to practical coal separation collection in worksite data and analysis coal separation process Number index;Wherein virtual operation process status includes four indices, the content of ashes that respectively includes in raw coal, sulphur content content, Moisture content and volatile matter content;Virtual environment includes two indexs, dust contained by air in respectively virtual coal separation scene Concentration and in-plant noise intensity.
6. a kind of heavy media coal separation dummy emulation system based on Unity3D according to claim 1, which is characterized in that The coal separation process control algorithm Functional Design module will be designed by calling Matlab algorithm environment, way of compiling control algorithm Good algorithm is stored in a manner of .m file, and is integrated into algorithms library;Algorithm simulating result stores in the database, and by logical Communication interface sends data to foreground monitoring interface, is carried out by the Graphmaker plug-in unit in Unity3D to obtained data Point-rendering forms the waveform diagram of simulation result;Equipment operation process foot is carried out using the C# script translation and compiling environment that Unity3D is carried Script is attached to the equipment in virtual scene and carries out scene verifying by this compiling, the emulation data read.
7. a kind of application method of the heavy media coal separation dummy emulation system according to claim 1 based on Unity3D, It is characterized in that, specific steps are as follows:
Step 1: open heavy medium coal preparation process control dummy emulation system, initial interface by subscriber management function module into Row user's registration and login system click operation button and virtual coal separation scene first person roaming functions are called to enter void Quasi- the first visual angle of heavy media coal separation scene;
Step 2: being called between more each software layers of people's online function module testing in virtual scene by clicking testing button Communication and network communication whether be in normal condition, if pop-up software layer communication warning, according to prompt check host ODBC Whether data source and I/O driving equipment configure correctly;If popping up network communication warning, and observing system chat window is shown " disconnection " checks whether host ip setting or local network connection are in normal condition according to prompt;
Step 3: coal separation process control algorithm design function module being called by the keyboard hot key of setting, and then obtains virtual coal separation Process control algorithm editing interface can directly select and example algorithm is called to carry out control algorithm validation, or be ground according to user itself Study carefully direction, clicks any blank module and carry out control algolithm editor;Algorithm after editting is synchronized to backstage algorithms library, and is led to It crosses calling Matlab translation and compiling environment and carries out program compiling, if compiling is wrong, foreground interface will pop up algorithm compile error warning;If Compiling is correct, inputs corresponding control parameter by the parameter input field at interface, and clicks button operation program, and program is included Relevant parameter and simulation result uploaded onto the server in real time database by interface;After emulation, data waveform figure will The waveform diagram display field being shown in interface;System is set according to respective virtual operational process state index and virtual environment index Set 3 threshold values, 3 threshold values respectively represent that index is too low, index is normal, index is excessively high, scene verifying are carried out again, if emulation knot Fruit is more than or lower than the threshold value that system is arranged, thens follow the steps 4;If simulation result is that index is normal, unrestrained by the first person Trip mode, user energy Self-operating role observe the change of the washing situation of coal and intraluminal fluid position in virtual coal preparation industry scene Scene changes;
Step 4: simulation result is more than or lower than the threshold value that system is arranged, then coal separation operational process will stop in virtual scene, System pushes corresponding warning message to user, and user adjusts respective algorithms parameter and re-start algorithm and tests according to prompt information Card;
Step 5: user can download the various algorithm parameters and simulation result for being included from server-side database, and pass through The mode of step 3 checks data waveform figure and virtual coal separation scene changes situation;
Step 6: the situation of change of system working order and simulation result is checked by system log module, if meeting user's Design object, then emulation experiment terminates;If being unsatisfactory for the design object of user, step 3 is repeated to 6, until meeting user's Design object.
CN201811242427.7A 2018-10-24 2018-10-24 Dense medium coal preparation virtual simulation system and method based on Unity3D Active CN109543230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811242427.7A CN109543230B (en) 2018-10-24 2018-10-24 Dense medium coal preparation virtual simulation system and method based on Unity3D

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811242427.7A CN109543230B (en) 2018-10-24 2018-10-24 Dense medium coal preparation virtual simulation system and method based on Unity3D

Publications (2)

Publication Number Publication Date
CN109543230A true CN109543230A (en) 2019-03-29
CN109543230B CN109543230B (en) 2020-12-25

Family

ID=65844968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811242427.7A Active CN109543230B (en) 2018-10-24 2018-10-24 Dense medium coal preparation virtual simulation system and method based on Unity3D

Country Status (1)

Country Link
CN (1) CN109543230B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111140231A (en) * 2020-02-19 2020-05-12 太原理工大学 Coal seam roof and floor path virtual planning method oriented to space-time kinematics of fully-mechanized mining equipment
CN111985112A (en) * 2020-08-27 2020-11-24 宝武集团鄂城钢铁有限公司 Blast furnace digital twin system based on Unity3D
CN112101894A (en) * 2020-08-21 2020-12-18 南京业恒达智能系统股份有限公司 Coal dressing intelligent system
CN112632793A (en) * 2020-12-30 2021-04-09 中国矿业大学 Off-line calculation method for coal bunker coal material bulk density
CN113495542A (en) * 2021-05-10 2021-10-12 浙江工业大学 Industrial robot intelligent production line simulation system based on WebGL
CN113673172A (en) * 2021-09-06 2021-11-19 中国农业大学 Corn ear high-flux intelligent screening virtual simulation experiment system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392387A (en) * 2014-10-10 2015-03-04 华电电力科学研究院 Unity3D-based circular coal yard three-dimensional (3D) intelligent visualization display platform
CN106407624A (en) * 2016-11-23 2017-02-15 太原理工大学 Memory cutting method of virtual coal cutter

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392387A (en) * 2014-10-10 2015-03-04 华电电力科学研究院 Unity3D-based circular coal yard three-dimensional (3D) intelligent visualization display platform
CN106407624A (en) * 2016-11-23 2017-02-15 太原理工大学 Memory cutting method of virtual coal cutter

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
WEI DAI 等: ""Configurable Platform for Optimal-Setting Control of Grinding Processes"", 《IEEE ACCESS》 *
王文生 等: ""重介质选煤控制系统配置的发展及特点"", 《选煤技术》 *
赵春祥 等: ""重介质选煤过程控制模型及控制算法的研究"", 《煤炭学报》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111140231A (en) * 2020-02-19 2020-05-12 太原理工大学 Coal seam roof and floor path virtual planning method oriented to space-time kinematics of fully-mechanized mining equipment
CN111140231B (en) * 2020-02-19 2021-06-15 太原理工大学 Coal seam roof and floor path virtual planning method oriented to space-time kinematics of fully-mechanized mining equipment
CN112101894A (en) * 2020-08-21 2020-12-18 南京业恒达智能系统股份有限公司 Coal dressing intelligent system
CN111985112A (en) * 2020-08-27 2020-11-24 宝武集团鄂城钢铁有限公司 Blast furnace digital twin system based on Unity3D
CN111985112B (en) * 2020-08-27 2024-01-30 宝武集团鄂城钢铁有限公司 Digital twin system of blast furnace based on Unity3D
CN112632793A (en) * 2020-12-30 2021-04-09 中国矿业大学 Off-line calculation method for coal bunker coal material bulk density
CN112632793B (en) * 2020-12-30 2021-11-02 中国矿业大学 Off-line calculation method for coal bunker coal material bulk density
CN113495542A (en) * 2021-05-10 2021-10-12 浙江工业大学 Industrial robot intelligent production line simulation system based on WebGL
CN113673172A (en) * 2021-09-06 2021-11-19 中国农业大学 Corn ear high-flux intelligent screening virtual simulation experiment system

Also Published As

Publication number Publication date
CN109543230B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN109543230A (en) Heavy media coal separation dummy emulation system and method based on Unity3D
CN103634154B (en) The analog systems of network state and analogy method thereof
CN104391694B (en) Intelligent mobile terminal software public service support platform system
CN112051750B (en) Digital twin system of four-rotor unmanned aerial vehicle
Paternò et al. CTTE: an environment for analysis and development of task models of cooperative applications
CN104796416A (en) Botnet simulation method and botnet simulation system
CN106154865A (en) Vehicle-mounted bus simulation model self-generation method and system
CN112328374B (en) Comprehensive evaluation system and method based on virtualized real operation environment
CN110177139A (en) A kind of ostensible mobile APP data grab method
CN105719552A (en) Interactive simulation emergency exercise system
CN103646579A (en) Marine main engine local control simulation training system
CN107886821A (en) Towards the simulation test stand and its data communications method of PLC school duty rooms
Soares et al. A remote FPGA laboratory for digital design students
CN108768771A (en) Network equipments configuration automatic scoring method based on emulation data network equipment
CN112667072A (en) Virtual system and method for training development of professional behavior habits of college students
Göbel et al. A novel approach for generating synthetic datasets for digital forensics
CN115981259A (en) Industrial full-simulation method and system based on digital twin technology
CN112085988A (en) Virtual simulation experiment system and method for penetration attack
Ani et al. Design considerations for building credible security testbeds: A systematic study of industrial control system use cases
McDonald et al. Modeling and simulation for cyber-physical system security research, development and applications
CN115134127A (en) Electric power monitoring network safety test system
Fu et al. The internet of things in a laptop: Rapid prototyping for iot applications with digibox
CN109656830B (en) Software product performance test method
CN113160635A (en) Criminal investigation technology-based field investigation, operation and training assessment system and creation method
Plumley et al. Categorization of cyber training environments for industrial control systems

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
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20190329

Assignee: Nanjing dongchuangxin Internet of things Research Institute Co.,Ltd.

Assignor: China University of Mining and Technology

Contract record no.: X2021980001914

Denomination of invention: Virtual simulation system and method of dense medium coal preparation based on unity3d

Granted publication date: 20201225

License type: Common License

Record date: 20210322

EE01 Entry into force of recordation of patent licensing contract