CN108304524B - The lightweight webpage method for visualizing and system of extensive fire dynamic smog field - Google Patents

The lightweight webpage method for visualizing and system of extensive fire dynamic smog field Download PDF

Info

Publication number
CN108304524B
CN108304524B CN201810072414.3A CN201810072414A CN108304524B CN 108304524 B CN108304524 B CN 108304524B CN 201810072414 A CN201810072414 A CN 201810072414A CN 108304524 B CN108304524 B CN 108304524B
Authority
CN
China
Prior art keywords
smoke
data
lightweight
fire
visualization
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
CN201810072414.3A
Other languages
Chinese (zh)
Other versions
CN108304524A (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.)
Jilin Animation Institute
Jilin Jidong Pangu Network Technology Co ltd
Original Assignee
Tongji University
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 Tongji University filed Critical Tongji University
Publication of CN108304524A publication Critical patent/CN108304524A/en
Application granted granted Critical
Publication of CN108304524B publication Critical patent/CN108304524B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to the lightweight webpage method for visualizing and system of a kind of extensive fire dynamic smog field; the described method comprises the following steps: 1) raw flue gas data are carried out light-weight technologg using voxelization mode by server end, obtain lightweight flue gas data;2) browser end receives the lightweight flue gas data and is rendered, and realizes real-time webpage visualization.Compared with prior art, the present invention has many advantages, such as automation, actualization, precision, lightweight, it can be achieved that the extensive smog field real-time visual of webpage grade.

Description

大规模火灾动态烟雾场的轻量级网页可视化方法及系统Lightweight webpage visualization method and system for large-scale fire dynamic smoke field

技术领域technical field

本发明涉及火灾场景模拟技术,尤其是涉及一种大规模火灾动态烟雾场的轻量级网页可视化方法及系统。The invention relates to a fire scene simulation technology, in particular to a lightweight web page visualization method and system for a large-scale fire dynamic smoke field.

背景技术Background technique

火灾产生的动态烟气的数据量巨大,扩散时形态变化复杂,使得烟气可视化渲染的计算量与存储量均很大,所以动态烟雾场的实时可视化一直都是一个难题。即便是单机版,目前在大规模场景中进行烟气可视化,还是需要耗费巨大的硬件资源。而在网页上进行大规模烟气可视化,在硬件内存上受到了更多的限制,网页的渲染能力也是远远低于单机上的渲染能力。由此,轻量级的大规模火灾烟雾场景的可视化实现,长期以来一直没有得到解决。The data volume of dynamic smoke generated by fire is huge, and the shape changes are complicated when it diffuses, which makes the amount of calculation and storage of smoke visualization rendering very large, so the real-time visualization of dynamic smoke field has always been a problem. Even if it is a stand-alone version, it still requires huge hardware resources to visualize smoke in large-scale scenes. However, large-scale smoke visualization on the web is more limited in terms of hardware memory, and the rendering capability of the webpage is far lower than that of a single computer. As a result, the visualization of lightweight large-scale fire smoke scenes has not been solved for a long time.

目前烟气表现形式多种多样,从Stam J等人开始就对烟雾的蔓延问题进行了研究,美国Zhu B等人利用自适应网格来凸显烟雾蔓延细节,燕山大学唐勇利用欧拉法以及GPU加速在PC机器上实现了实时有效的烟雾融合动态蔓延模型,能精准模拟真实世界中多火源烟雾蔓延过程。以上研究偏重于烟气蔓延的计算过程,而面向场景内烟气轻量级可视化的方法,目前尚未出现。At present, there are various forms of smoke expression. From the beginning of Stam J et al., the research on the spread of smoke has been carried out. Zhu B et al. in the United States have used adaptive grids to highlight the details of smoke spread. Tang Yong of Yanshan University has used the Euler method and GPU acceleration realizes a real-time and effective smoke fusion dynamic spread model on the PC machine, which can accurately simulate the multi-fire source smoke spread process in the real world. The above research focuses on the calculation process of smoke spread, but the method for lightweight visualization of smoke in the scene has not yet appeared.

在烟气可视化中,由于烟气的不规则动态变化,国内外学者先后提出了基于过程纹理函数模型、基于分形几何的模型、细胞自动机模型、基于物理的模型、基于粒子系统的模型等。In the visualization of flue gas, due to the irregular dynamic changes of flue gas, scholars at home and abroad have successively proposed models based on process texture functions, models based on fractal geometry, models based on cellular automata, models based on physics, and models based on particle systems.

基于过程纹理函数模型不方便模拟外力作用,基于分形几何模型可以定义几个规则,利用无穷回归的自相似性仿真烟气蔓延过程,缺点是逼真度和精确度较低。而细胞自动机模型是冯诺依曼和乌兰于1950年提出来的一种模型,利用格子细胞在某时刻的状态以及邻居格子细胞的状态,进行烟气的填充,结构简单,但是组合效果复杂。基于物理的模型,例如Jos Stam从热力学定律出发,提出了用扩散过程描述气体现象及其传播的方法,虽然烟气蔓延计算精度高,但是该模型算法都很复杂。基于粒子和基于体素化的可视化方式是主流。这是因为粒子系统是公认的模拟不规则物体最成功的方法之一,采用图元来定义物体的体积而不是采用多边形的方法。然而,基于粒子的方式中,需要确定每个烟雾粒子的位置及其可视化,占据了大量的运算资源。Based on the process texture function model, it is not convenient to simulate the external force. Based on the fractal geometry model, several rules can be defined, and the self-similarity of infinite regression is used to simulate the smoke spreading process. The disadvantage is that the fidelity and accuracy are low. The cellular automata model is a model proposed by von Neumann and Ulan in 1950. It uses the state of grid cells at a certain moment and the state of neighboring grid cells to fill the smoke. The structure is simple, but the combination effect complex. Based on physics models, for example, Jos Stam proposed a method to describe the gas phenomenon and its propagation by the diffusion process based on the laws of thermodynamics. Although the calculation accuracy of smoke spread is high, the algorithm of this model is very complicated. Particle-based and voxel-based visualization methods are mainstream. This is because the particle system is recognized as one of the most successful methods for simulating irregular objects, using primitives to define the volume of objects instead of polygons. However, in the particle-based method, it is necessary to determine the position and visualization of each smoke particle, which occupies a large amount of computing resources.

发明内容Contents of the invention

本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种大规模火灾动态烟雾场的轻量级网页可视化方法及系统。The object of the present invention is to provide a lightweight webpage visualization method and system for large-scale fire dynamic smoke fields in order to overcome the above-mentioned defects in the prior art.

本发明的目的可以通过以下技术方案来实现:The purpose of the present invention can be achieved through the following technical solutions:

一种大规模火灾动态烟雾场的轻量级网页可视化方法,包括以下步骤:A lightweight webpage visualization method for large-scale fire dynamic smoke field, including the following steps:

1)服务器端采用体素化方式将原始烟气数据进行轻量化处理,获得轻量级烟气数据;1) The server uses voxelization to lighten the original smoke data to obtain lightweight smoke data;

2)浏览器端接收所述轻量级烟气数据进行渲染,实现实时网页可视化。2) The browser receives the light-weight flue gas data for rendering to realize real-time web page visualization.

优选地,所述轻量化处理具体为:Preferably, the lightweight treatment specifically includes:

101)获取经火灾动力学模拟工具计算的封装的原始烟气数据;101) Obtain the packaged original smoke data calculated by the fire dynamics simulation tool;

102)将火灾场景空间划分为三维矩阵式体素化场景,进而将所述原始烟气数据转化原始体素化烟气数据;102) dividing the fire scene space into three-dimensional matrix voxelized scenes, and then converting the original smoke data into original voxelized smoke data;

103)对所述原始体素化烟气数据依次进行去冗余、数据归一化和数据去重处理,获得轻量级烟气数据。103) Perform de-redundancy, data normalization and data de-duplication processing on the original voxelized smoke data in sequence to obtain lightweight smoke data.

优选地,所述原始烟气数据的获取过程为:Preferably, the acquisition process of the original smoke data is:

火灾动力学模拟工具设置不同的易起火的火源点,在火源点根据实际情况下的可燃材质进行火灾模拟,并采用火灾流体力学算法进行火灾烟气的动态蔓延计算,从而获得烟气的蔓延过程数据,形成封装的原始烟气数据。The fire dynamics simulation tool sets different fire source points that are easy to catch fire, and performs fire simulation at the fire source point according to the combustible material in the actual situation, and uses the fire fluid dynamics algorithm to calculate the dynamic spread of fire smoke, so as to obtain the smoke distribution. Spread process data to form encapsulated raw smoke data.

优选地,步骤103)中,冗余处理具体为:Preferably, in step 103), the redundancy processing is specifically:

去除掉原始体素化烟气数据中烟气浓度为0以及烟气浓度数据小于0.00001数据。Remove the data whose smoke concentration is 0 and smoke concentration data less than 0.00001 in the original voxelized smoke data.

优选地,步骤103)中,数据归一化处理具体为:Preferably, in step 103), the data normalization process is specifically:

Step301:针对去冗后的烟气数据,对烟气数据进行大小的比较,获得最大的烟气数据max,获得最小的烟气数据min;Step301: For the flue gas data after deduplication, compare the size of the flue gas data to obtain the largest flue gas data max and the smallest flue gas data min;

Step302:计算Δ=max-min,获得10个级别的烟气数据段数据集,这10个烟气数据段是Δ/10、2Δ/10、3Δ/10、4Δ/10、5Δ/10、6Δ/10、7Δ/10、8Δ/10、9Δ/10和Δ;Step302: Calculate Δ=max-min to obtain 10 levels of smoke data segment datasets, these 10 smoke data segments are Δ/10, 2Δ/10, 3Δ/10, 4Δ/10, 5Δ/10, 6Δ /10, 7Δ/10, 8Δ/10, 9Δ/10 and Δ;

step303:将所有的烟气数据归一化为上述10个级别。step303: Normalize all smoke data to the above 10 levels.

优选地,步骤103)中,数据去重处理具体为:Preferably, in step 103), the data deduplication processing is specifically:

Step311:根据某一归一化后的烟气数据所在位置,比较该烟气数据是否和周围的烟气数据值是在同一个级别上,记录和该位置相邻的位置上有同一层级的烟气数据,并记录新的烟气位置;Step311: According to the position of a certain normalized smoke data, compare whether the smoke data is at the same level as the surrounding smoke data, and record the smoke at the same level at the position adjacent to this position gas data, and record the new gas position;

Step312:将新加入的烟气位置作为对象,继续向其周围遍历同一级别的烟气数据,如果还有同一级别的烟气数据,则记录该烟气数据的位置;Step312: Take the newly added smoke position as an object, continue to traverse the smoke data of the same level around it, and record the position of the smoke data if there is smoke data of the same level;

Step313:不断重复step312,直到周围没有同一级别的烟气数据为止,从而获得一个同一级别烟气数据的位置数据组;Step313: Repeat step312 until there is no smoke data of the same level around, so as to obtain a position data set of smoke data of the same level;

Step314:将所述位置数据组作为一个整体。Step314: Take the location data set as a whole.

优选地,步骤2)中,所述网页可视化包括烟雾可视化和毒气可视化。Preferably, in step 2), the webpage visualization includes smoke visualization and poisonous gas visualization.

优选地,步骤2)中还包括:Preferably, step 2) also includes:

在进行渲染时进行纹理粒子可视化模拟,实现图片纹理方式可视化。Perform texture particle visualization simulation during rendering to realize image texture visualization.

本发明还提供一种应用所述的轻量级网页可视化方法的大规模火灾动态烟雾场的轻量级网页可视化系统。The present invention also provides a lightweight webpage visualization system for a large-scale fire dynamic smoke field using the lightweight webpage visualization method.

与现有技术相比,本发明提供一种自动化、真实化、精确化、轻量化的网页级大规模烟雾场实时可视化方法,节约硬件资源和烟气渲染资源,具有如下有益效果:Compared with the prior art, the present invention provides an automatic, realistic, accurate and lightweight method for real-time visualization of large-scale smoke fields at the web page level, which saves hardware resources and smoke rendering resources, and has the following beneficial effects:

①自动化:本发明可以自动地针对重量级的原始烟气数据,进行轻量化工作,可以将重量级的烟气数据进行轻量化处理,从而自动地实现目前亟待解决的烟气自动化的数据处理。其中数据去重处理中,将同一级别烟气数据的位置数据组作为烟气可视化时的数据矩阵,可以减少很多体素烟气绘制的次数。①Automation: The present invention can automatically carry out lightweight work on the heavyweight original flue gas data, and can carry out lightweight processing on the heavyweight flue gas data, so as to automatically realize the data processing of flue gas automation that needs to be solved urgently at present. Among them, in the data deduplication process, the position data group of the same level of smoke data is used as the data matrix when the smoke is visualized, which can reduce the number of voxel smoke drawing.

②真实化:烟气数据无论是其可视化效果还是用于其它方面计算的需要,都是需要对烟气的真实性有着非常高的要求,如此一来方能够在场景中仿真真实的火灾和烟气蔓延的场景和情景,本发明能够保证烟气数据的真实性。② Realization: No matter the visualization effect of smoke data or the need for other calculations, it needs to have very high requirements for the authenticity of smoke, so that real fire and smoke can be simulated in the scene The present invention can guarantee the authenticity of the smoke data.

③精确化:本发明不仅需要能够保证烟气数据的真实性,同时还使烟气具备精确属性,这样在虚拟现实火灾逃生中,才能够获得精确的数据,从而进行精确的路径规划,完成有效的逃生导航。③Precise: The present invention not only needs to be able to ensure the authenticity of the smoke data, but also to make the smoke have precise attributes, so that in the virtual reality fire escape, accurate data can be obtained, so as to carry out accurate path planning and complete effective escape navigation.

④轻量化:目前还没有一种烟气轻量化方法,本发明可以在网页上呈现轻量级的烟气数据可视化,将目前重量级的烟气数据进行有效轻量化处理,从而实现烟气可视化的核心需求。本发明还可通过对烟气纹理图片方式,进一步减轻烟气情景渲染的缓存负载以及计算负载。④ Lightweight: At present, there is no method for reducing the weight of flue gas. The present invention can present lightweight flue gas data visualization on the webpage, and effectively reduce the weight of the current heavyweight flue gas data, thereby realizing flue gas visualization core needs. The present invention can further reduce the cache load and calculation load of smoke scene rendering by means of smoke texture pictures.

附图说明Description of drawings

图1为本发明的流程示意图;Fig. 1 is a schematic flow sheet of the present invention;

图2为实施例中双层地铁站的场景模型示意图;Fig. 2 is a schematic diagram of a scene model of a double-deck subway station in an embodiment;

图3为实施例中双层地铁站内烟气轻量化后浓度值;Fig. 3 is the concentration value of the flue gas in the double-deck subway station after lightweighting in the embodiment;

图4为轻量化的体素化烟雾可视化效果图;Figure 4 is a visual rendering of lightweight voxelized smoke;

图5为轻量化的体素化毒气可视化效果图;Figure 5 is a visual effect diagram of lightweight voxelized poisonous gas;

图6为基于纹理粒子烟雾可视化情景效果图;Fig. 6 is a visual scene effect diagram based on texture particle smoke;

图7为基于纹理粒子的毒气可视化情景效果图。Figure 7 is an effect diagram of the poisonous gas visualization scene based on texture particles.

具体实施方式Detailed ways

下面结合附图和具体实施例对本发明进行详细说明。本实施例以本发明技术方案为前提进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is carried out on the premise of the technical solution of the present invention, and detailed implementation and specific operation process are given, but the protection scope of the present invention is not limited to the following embodiments.

本发明提供一种大规模火灾动态烟雾场的轻量级网页可视化方法,包括以下步骤:The present invention provides a lightweight webpage visualization method for large-scale fire dynamic smoke field, comprising the following steps:

1)服务器端采用体素化方式将原始烟气数据进行轻量化处理,获得轻量级烟气数据。轻量化处理具体为:1) The server uses voxelization to lighten the original smoke data to obtain lightweight smoke data. The lightweight treatment is specifically:

101)获取经火灾动力学模拟工具计算的封装的原始烟气数据,原始烟气数据的获取过程为:101) Obtain the packaged original smoke data calculated by the fire dynamics simulation tool, the acquisition process of the original smoke data is:

火灾动力学模拟工具设置不同的易起火的火源点,在火源点根据实际情况下的可燃材质进行火灾模拟,并采用火灾流体力学算法进行火灾烟气的动态蔓延计算,从而获得烟气的蔓延过程数据,形成封装的原始烟气数据。The fire dynamics simulation tool sets different fire source points that are easy to catch fire, and performs fire simulation at the fire source point according to the combustible material in the actual situation, and uses the fire fluid dynamics algorithm to calculate the dynamic spread of fire smoke, so as to obtain the smoke distribution. Spread process data to form encapsulated raw smoke data.

102)将火灾场景空间划分为三维矩阵式体素化场景,进而将所述原始烟气数据转化原始体素化烟气数据。102) Divide the fire scene space into three-dimensional matrix voxelized scenes, and then transform the original smoke data into original voxelized smoke data.

这种体素化的方式,可以借助于将空间划分为3维矩阵式的体素化场景,划分地越细致,获得的体素块越细致,但是所耗费的计算机资源及需要花费的时间就越多。考虑到人眼可视化效果的需要,本实施例可以将烟气可视化体素规定在0.25m,不仅大大减少了渲染计算量,而且也减轻了内存的负担。This voxelization method can divide the space into 3D matrix voxelized scenes. The more detailed the division, the more detailed the voxel blocks obtained, but the computer resources and time it takes more. Considering the needs of the visualization effect of the human eye, this embodiment can set the smoke visualization voxel at 0.25m, which not only greatly reduces the amount of rendering calculation, but also reduces the burden on the memory.

103)对所述原始体素化烟气数据依次进行去冗余、数据归一化和数据去重处理,获得轻量级烟气数据。103) Perform de-redundancy, data normalization and data de-duplication processing on the original voxelized smoke data in sequence to obtain lightweight smoke data.

烟气数据去冗步骤:Flue gas data deduplication steps:

step1:输入原始烟气数据;step1: Input the original flue gas data;

step2:去除掉烟气浓度为0的数据,去除掉烟气浓度数据小于0.00001的烟气数据;Step2: Remove the data whose smoke concentration is 0, and remove the smoke data whose smoke concentration data is less than 0.00001;

step3:将得到的烟气数据,开始准备进行烟气数据的归一化处理。Step3: Prepare the obtained flue gas data for normalization processing of the flue gas data.

烟气数据归一化步骤:Smoke data normalization steps:

step1:针对去冗后的烟气数据,对烟气数据进行大小的比较,获得最大的烟气数据max,获得最小的烟气数据(通常选取为min=0.00001);Step1: For the flue gas data after deduplication, compare the size of the flue gas data, obtain the largest flue gas data max, and obtain the smallest flue gas data (usually selected as min=0.00001);

step2:计算出来Δ=max-min,然后获得10个层级的烟气数据段数据集,这10个烟气数据段是Δ/10,2Δ/10,3Δ/10,4Δ/10,5Δ/10,6Δ/10,7Δ/10,8Δ/10,9Δ/10,Δ。Step2: Calculate Δ=max-min, and then obtain 10 levels of smoke data segment datasets, these 10 smoke data segments are Δ/10, 2Δ/10, 3Δ/10, 4Δ/10, 5Δ/10 ,6Δ/10,7Δ/10,8Δ/10,9Δ/10,Δ.

step3:将所有的烟气数据完成上面的10段归一化处理。Step3: Complete the normalization process of the above 10 paragraphs for all the flue gas data.

烟气数据去重步骤:Smoke data deduplication steps:

step1:根据归一化后的烟气数据所在位置,比较该烟气数据是否和周围的烟气数据值是在同一个级别上,记录和该位置相邻的位置上有同一层级的烟气数据,并记录新的烟气位置;Step1: According to the position of the normalized smoke data, compare whether the smoke data is at the same level as the surrounding smoke data, and record the smoke data at the same level at the position adjacent to this position , and record the new smoke position;

step2:将新加入进来的烟气位置作为对象,继续向其周围遍历同一级别的烟气数据,如果还有同一级别的烟气数据,则记录该烟气数据的位置;Step2: Take the newly added smoke position as an object, continue to traverse the smoke data of the same level around it, and record the position of the smoke data if there is smoke data of the same level;

step3:不断重复step2,直到周围没有同一级别的烟气数据为止,从而获得一个同一级别烟气数据的位置数据组;Step3: Repeat step2 until there is no smoke data of the same level around, so as to obtain a position data set of smoke data of the same level;

step4:将该位置数据组作为一个整体的烟气数据,作为烟气可视化时的数据矩阵,可以减少很多体素烟气绘制的次数。Step4: The position data group is used as a whole smoke data, and used as a data matrix when the smoke is visualized, which can reduce the number of voxel smoke drawing.

2)浏览器端接收所述轻量级烟气数据进行渲染,实现实时网页可视化,包括烟雾可视化和毒气可视化。2) The browser receives the light-weight smoke data for rendering to realize real-time webpage visualization, including smoke visualization and poisonous gas visualization.

在某些实施例中,步骤2)中还包括:在进行渲染时进行纹理粒子可视化模拟,实现图片纹理方式可视化。In some embodiments, step 2) further includes: performing texture particle visualization simulation during rendering to realize image texture visualization.

上述方法在烟气轻量化上突破了三个难点:首先,它是完全自动地针对烟气数据进行轻量化处理,不需要每次针对烟气数据进行手工轻量化,并且数据量大,手工轻量化也不现实;同时,该方法在获得了可靠的真实的烟气数据之后,经过了一系列轻量化处理,最终得到了轻量化烟气数据,该数据是精确的;在此基础上,进一步地将轻量化烟气数据,应用到实际的地铁站内人群逃生中,并且可以实现实时的烟气可视化。The above method breaks through three difficulties in the light weight of flue gas: first, it performs light weight processing on the flue gas data completely automatically, and does not need to manually light weight the flue gas data every time, and the data volume is large, and manual light weight processing is not necessary. Quantification is also unrealistic; at the same time, after obtaining reliable and real smoke data, the method undergoes a series of lightweight processing, and finally obtains lightweight smoke data, which is accurate; on this basis, further The light-weight smoke data is applied to the actual crowd escape in the subway station, and real-time smoke visualization can be realized.

本发明还提供一种应用所述的轻量级网页可视化方法的大规模火灾动态烟雾场的轻量级网页可视化系统。The present invention also provides a lightweight webpage visualization system for a large-scale fire dynamic smoke field using the lightweight webpage visualization method.

以双层地铁站的烟气模拟为例说明上述方法。如图2所示,首先根据场景的CAD电子数据地图,搭建出来FDS内的场景模型,该场景模型具有高精确度的特点。烟气经过轻量化后,形成的体素化烟气,不同体素块中具有不同的烟气浓度,如图3所示为地铁站内烟气轻量化后浓度值。图3中,每一行的数据中的前三个数代表对应于场景中x,y,z体素下的坐标,后面的数值代表每个时间点上该位置的烟雾浓度,两个时间点之间间隔的时间长度一致。The above method is illustrated by taking the smoke simulation of a double-deck subway station as an example. As shown in Figure 2, firstly, according to the CAD electronic data map of the scene, the scene model in FDS is built, and the scene model has the characteristics of high precision. After the smoke is lightened, the voxelized smoke formed has different smoke concentrations in different voxel blocks. Figure 3 shows the concentration of the lightened smoke in the subway station. In Figure 3, the first three numbers in each row of data represent the coordinates corresponding to x, y, and z voxels in the scene, and the latter values represent the smoke concentration at the position at each time point. The intervals are of the same length.

1)首先,从数据中可以看到,场景中浓度数据的变化是在0-3之间,此外,大部分的数据都是0.1以下,而在模拟过程中,0.1以下的数据是几乎不可见的。所以可以据此将数据离散分层,在这套数据中,将数据分为16个阶段:0-0.1,0.1-0.3,0.3-0.5,0.5-0.7,0.7-0.9…,2.7-3。其中第一阶段是不作为渲染的数据,即数据小于0.1时当作0来处理。只有数据超过0.1之后才开始产生浓度时间变化。1) First of all, it can be seen from the data that the change of the concentration data in the scene is between 0-3. In addition, most of the data are below 0.1, and during the simulation process, the data below 0.1 is almost invisible of. Therefore, the data can be discretely stratified accordingly. In this set of data, the data is divided into 16 stages: 0-0.1, 0.1-0.3, 0.3-0.5, 0.5-0.7, 0.7-0.9..., 2.7-3. The first stage is the data that is not rendered, that is, when the data is less than 0.1, it is treated as 0. Only after the data exceeds 0.1 does the concentration time change start to occur.

2)在创建体块时,如果当前体块的浓度为0(当烟气浓度ρ<0.1)时,不创建该位置下的体块,当浓度大于0.1时,再创建对应位置下的体块模型。从而保证场景中模型数量尽量少。通过以上优化算法,基于体素化的火灾场景就能较为流畅的运行。2) When creating a block, if the concentration of the current block is 0 (when the smoke concentration ρ<0.1), do not create a block at this position, and create a block at the corresponding position when the concentration is greater than 0.1 Model. In order to ensure that the number of models in the scene is as small as possible. Through the above optimization algorithm, the voxel-based fire scene can run more smoothly.

在对烟气浓度进行二进制转换后,可以快速的在场景中进行绘制渲染。通过对烟气数据中的烟雾数据,进行剥离,可以获得单独的烟雾数据,接下来可以在场景中对烟雾进行可视化渲染,渲染后的情景如图4所示。After the binary conversion of the smoke concentration, it can be quickly drawn and rendered in the scene. By stripping the smoke data in the smoke data, separate smoke data can be obtained, and then the smoke can be visualized and rendered in the scene. The rendered scene is shown in Figure 4.

烟雾的可视化是基于实际场景中,烟雾浓度,借助计算机完成的可视化效果。而烟毒是看不见但也是在具体扩散的。根据FDS获得烟毒数据,可以通过图1中的轻量化方法,获得基于体素的轻量化烟毒气体。The visualization of smoke is based on the actual scene, the smoke concentration, and the visualization effect completed by computer. The tobacco poison is invisible but is also spreading in a concrete way. Tobacco data obtained according to FDS can obtain voxel-based lightweight tobacco gas through the lightweight method in Figure 1.

由于烟毒气体往往是不可见的,所以更加具有危害性,毒气也更有杀伤性。所以,对烟毒气体进行可视化呈现,可以在时空上,随时看到烟气所蔓延到的位置,以及烟气在该位置上的浓度情况,并可以根据这些情况,进行逃生人员的路径规划,指导逃生人员的逃生行为。Since poisonous smoke gas is often invisible, it is more harmful and poisonous gas is more lethal. Therefore, by visually presenting the toxic gas, the position where the smoke spreads to and the concentration of the smoke at that position can be seen at any time in space and time, and the path planning of the escaped personnel can be carried out according to these conditions. Guide the escape behavior of the escaped personnel.

根据FDS获得的烟气数据中,可以剥离出烟毒气体,根据烟毒气体的原始重量级数据,可以进行轻量化处理,将获得的轻量化烟毒数据,使用体素可视化技术,根据烟毒气体的浓度,进行可视化渲染,可以达到如图5的效果。According to the smoke data obtained by FDS, the toxic gas can be stripped out, and according to the original heavyweight data of the toxic gas, it can be light-weighted. The gas concentration can be visualized and rendered as shown in Figure 5.

FDS在进行烟气计算前,就给出了具体燃烧物释放的烟毒气体类型,例如火灾中会有co,so2,那么具体的烟毒剥离算法如下:Before calculating the smoke, FDS gives the type of toxic gas released by the specific combustibles. For example, there will be co,so 2 in a fire, so the specific smoke and poison stripping algorithm is as follows:

step1:输入原始FDS烟气数据;step1: Input the original FDS flue gas data;

step2:将原始FDS烟气数据进行解压,并完成格式转换,获得语义文件;Step2: Decompress the original FDS flue gas data, complete the format conversion, and obtain the semantic file;

step3:将语义文件中属性为毒气的烟气数据全部抓取,并构建新的语义文件,并保存该语义文件;Step3: Capture all the smoke data whose attribute is poisonous gas in the semantic file, build a new semantic file, and save the semantic file;

step4:根据具体需要,可以将具体烟毒气体(例如:CO,SO2)从中分离出来;Step4: According to specific needs, specific toxic gases (such as: CO, SO 2 ) can be separated from it;

step5:输出所需要的烟毒气体。step5: Output the required smoke gas.

基于烟气轻量化的可视化目标,本发明也进一步进行了基于纹理粒子烟气的可视工作,也就是通过FDS计算出来的烟气的位置,以及烟气的浓度数据,采用烟气纹理图片的方式,进行纹理粒子可视化地模拟工作,使得体素化的烟气浓度的绘制方法,转化为图片纹理的渲染绘制方法,效果如图6和图7所示,使用该方法可以进一步减轻烟气情景渲染的缓存负载以及计算负载。Based on the visualization goal of the light weight of the smoke, the present invention further carries out the visualization work of the smoke based on the texture particle, that is, the position of the smoke calculated by FDS, and the concentration data of the smoke, and the smoke texture image is used In this way, the visual simulation of texture particles is carried out, so that the drawing method of voxelized smoke concentration is transformed into the rendering method of image texture, and the effect is shown in Figure 6 and Figure 7. Using this method can further reduce the smoke scene Rendered cache load as well as compute load.

本发明首次将重量级的烟气数据,进行基于体素化的轻量化处理,形成了数据量减轻了300倍的轻量化效果。并确保了烟气浓度数值范围的精确度,烟气所在位置的精确度,从而使得基于FDS的烟气的真实性也得到了非常好的保持。For the first time, the present invention performs voxel-based lightweight processing on heavyweight smoke data, forming a lightweight effect that reduces the amount of data by 300 times. It also ensures the accuracy of the numerical range of the smoke concentration and the location of the smoke, so that the authenticity of the smoke based on FDS is also very well maintained.

本发明首次将轻量级的烟气数据运用在网页上,并在网页上实现了可视化的效果以及精确寻路的效果,为火灾烟气情景下人群逃生提供了科学依据以及可行性的可视化方案。The present invention applies light-weight smoke data to the webpage for the first time, and realizes the effect of visualization and precise pathfinding on the webpage, providing a scientific basis and a feasible visualization scheme for crowd escape under the fire smoke scene .

本发明首次通过编码实现了服务器上重量级烟气数据的一系列轻量化处理方法,通过轻量化的技术完成了重量级烟气数据面向网页(包括移动互联网页)上的轻量化处理,并在用户端的网页上实现了轻量级烟气的渲染及呈现技术。For the first time, the present invention realizes a series of lightweight processing methods for heavyweight smoke data on the server through coding, and completes lightweight processing of heavyweight smoke data on web pages (including mobile Internet pages) through lightweight technology. The rendering and presentation technology of lightweight smoke is realized on the web page of the client.

本发明首次实现了大规模场景内的烟气轻量化处理及可视化呈现,结合大规模场景的可视化,进行了精确的烟气可视化,使得烟气所在起火的大规模场景中,无差错地呈现烟气的动态蔓延过程。The present invention realizes the lightweight processing and visual presentation of smoke in a large-scale scene for the first time. Combined with the visualization of large-scale scenes, accurate smoke visualization is carried out, so that in the large-scale scene where the smoke is on fire, the smoke can be presented without error. The dynamic spreading process of air.

本发明首次实现了大规模场景内基于纹理粒子的Web上的烟气数据轻量化处理后的可视化,同样结合大规模场景的可视化,进行精确的烟气可视化,可以更加轻量化地呈现烟气蔓延的过程。The present invention realizes for the first time the visualization of smoke data on the Web based on texture particles in a large-scale scene after lightweight processing, and also combines the visualization of large-scale scenes to perform accurate smoke visualization, which can present the spread of smoke in a more lightweight manner the process of.

以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本发明的构思作出诸多修改和变化。因此,凡本技术领域中技术人员依本发明的构思在现有技术的基础上通过逻辑分析、推理或者有限的实验可以得到的技术方案,皆应在由权利要求书所确定的保护范围内。The preferred specific embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative efforts. Therefore, all technical solutions that can be obtained by those skilled in the art based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art shall be within the scope of protection defined by the claims.

Claims (6)

1.一种大规模火灾动态烟雾场的轻量级网页可视化方法,其特征在于,包括以下步骤:1. a lightweight webpage visualization method of large-scale fire dynamic smoke field, is characterized in that, comprises the following steps: 1)服务器端采用体素化方式将原始烟气数据进行轻量化处理,获得轻量级烟气数据;1) The server uses voxelization to lighten the original smoke data to obtain lightweight smoke data; 2)浏览器端接收所述轻量级烟气数据进行渲染,实现实时网页可视化;2) The browser receives the lightweight flue gas data for rendering to realize real-time web page visualization; 所述轻量化处理具体为:The lightweight treatment is specifically: 101)获取经火灾动力学模拟工具计算的封装的原始烟气数据;101) Obtain the packaged original smoke data calculated by the fire dynamics simulation tool; 102)将火灾场景空间划分为三维矩阵式体素化场景,进而将所述原始烟气数据转化为原始体素化烟气数据;102) dividing the fire scene space into three-dimensional matrix voxelized scenes, and then converting the original smoke data into original voxelized smoke data; 103)对所述原始体素化烟气数据依次进行去冗余、数据归一化和数据去重处理,获得轻量级烟气数据,对烟气浓度进行二进制转换后执行步骤2);103) Perform de-redundancy, data normalization, and data deduplication processing on the original voxelized smoke data in sequence to obtain light-weight smoke data, perform binary conversion on the smoke concentration, and then perform step 2); 去冗余处理具体为:The de-redundancy processing is specifically as follows: 去除掉原始体素化烟气数据中烟气浓度数据小于0.00001的数据;Remove the data whose smoke concentration data is less than 0.00001 in the original voxelized smoke data; 烟气经过轻量化后,形成体素化烟气,不同体素块中具有不同的烟气浓度,在进行渲染时进行纹理粒子可视化模拟,实现图片纹理方式可视化,在创建体素块时,当烟气浓度大于0.1时,创建对应位置下的体素块模型。After the smoke is lightweight, voxelized smoke is formed. Different voxel blocks have different smoke concentrations. When rendering, the texture particle visualization simulation is performed to realize the visualization of the image texture. When creating a voxel block, when When the smoke concentration is greater than 0.1, create a voxel block model at the corresponding position. 2.根据权利要求1所述的大规模火灾动态烟雾场的轻量级网页可视化方法,其特征在于,所述原始烟气数据的获取过程为:2. the lightweight webpage visualization method of large-scale fire dynamic smoke field according to claim 1, is characterized in that, the acquisition process of described original smoke data is: 火灾动力学模拟工具设置不同的易起火的火源点,在火源点根据可燃材质进行火灾模拟,并采用火灾流体力学算法进行火灾烟气的动态蔓延计算,从而获得烟气的蔓延过程数据,形成封装的原始烟气数据。The fire dynamics simulation tool sets different fire source points that are prone to fire, performs fire simulation at the fire source point according to combustible materials, and uses the fire fluid mechanics algorithm to calculate the dynamic spread of fire smoke, so as to obtain the smoke spread process data, Form the packaged raw flue gas data. 3.根据权利要求1所述的大规模火灾动态烟雾场的轻量级网页可视化方法,其特征在于,步骤103)中,数据归一化处理具体为:3. the lightweight webpage visualization method of large-scale fire dynamic smoke field according to claim 1, is characterized in that, in step 103), data normalization processing is specifically: Step301:针对去冗后的烟气数据,对烟气数据进行大小的比较,获得最大的烟气数据max,获得最小的烟气数据min;Step301: For the flue gas data after deduplication, compare the size of the flue gas data to obtain the largest flue gas data max and the smallest flue gas data min; Step302:计算Δ=max-min,获得10个级别的烟气数据段数据集,这10个烟气数据段是Δ/10、2Δ/10、3Δ/10、4Δ/10、5Δ/10、6Δ/10、7Δ/10、8Δ/10、9Δ/10和Δ;Step302: Calculate Δ=max-min to obtain 10 levels of smoke data segment datasets, these 10 smoke data segments are Δ/10, 2Δ/10, 3Δ/10, 4Δ/10, 5Δ/10, 6Δ /10, 7Δ/10, 8Δ/10, 9Δ/10 and Δ; step303:将所有的烟气数据归一化为上述10个级别。step303: Normalize all smoke data to the above 10 levels. 4.根据权利要求3所述的大规模火灾动态烟雾场的轻量级网页可视化方法,其特征在于,步骤103)中,数据去重处理具体为:4. The lightweight webpage visualization method of the large-scale fire dynamic smoke field according to claim 3, characterized in that, in step 103), the data deduplication process is specifically: Step311:根据某一归一化后的烟气数据所在位置,比较该烟气数据是否和周围的烟气数据值在同一个级别上,记录和该位置相邻的位置上有同一层级的烟气数据,并记录该烟气数据的对应位置作为新的烟气位置;Step311: According to the position of a certain normalized smoke data, compare whether the smoke data is at the same level as the surrounding smoke data, and record the smoke at the same level at the position adjacent to this position data, and record the corresponding position of the smoke data as the new smoke position; Step312:将新加入的烟气位置作为对象,继续向其周围遍历同一级别的烟气数据,如果还有同一级别的烟气数据,则记录该烟气数据的位置;Step312: Take the newly added smoke position as an object, continue to traverse the smoke data of the same level around it, and record the position of the smoke data if there is smoke data of the same level; Step313:不断重复step312,直到周围没有同一级别的烟气数据为止,从而获得一个同一级别烟气数据的位置数据组;Step313: Repeat step312 until there is no smoke data of the same level around, so as to obtain a position data set of smoke data of the same level; Step314:将所述位置数据组作为一个整体。Step314: Take the location data set as a whole. 5.根据权利要求1所述的大规模火灾动态烟雾场的轻量级网页可视化方法,其特征在于,步骤2)中,所述网页可视化包括烟雾可视化和毒气可视化。5. The lightweight webpage visualization method of large-scale fire dynamic smoke field according to claim 1, characterized in that, in step 2), the webpage visualization includes smoke visualization and poisonous gas visualization. 6.一种应用如权利要求1所述的轻量级网页可视化方法的大规模火灾动态烟雾场的轻量级网页可视化系统。6. A lightweight webpage visualization system for a large-scale fire dynamic smoke field applying the lightweight webpage visualization method according to claim 1.
CN201810072414.3A 2017-10-16 2018-01-25 The lightweight webpage method for visualizing and system of extensive fire dynamic smog field Active CN108304524B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710958704 2017-10-16
CN2017109587043 2017-10-16

Publications (2)

Publication Number Publication Date
CN108304524A CN108304524A (en) 2018-07-20
CN108304524B true CN108304524B (en) 2019-12-03

Family

ID=62866681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810072414.3A Active CN108304524B (en) 2017-10-16 2018-01-25 The lightweight webpage method for visualizing and system of extensive fire dynamic smog field

Country Status (1)

Country Link
CN (1) CN108304524B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115239868B (en) * 2022-07-08 2023-08-01 同济大学 A lightweight online rendering method for large-scale Web3D instanced lighting

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075275A (en) * 2007-06-28 2007-11-21 上海交通大学 Multi-role distributed cooperating simulation drilling method
CN103020389A (en) * 2012-12-28 2013-04-03 上海创图网络科技发展有限公司 Fire fighting command training simulation method and system based on browser 3D visualization
CN103164587A (en) * 2013-04-12 2013-06-19 南京大学 Forest fire spreading geography cellular automaton simulation method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6709272B2 (en) * 2001-08-07 2004-03-23 Bruce K. Siddle Method for facilitating firearms training via the internet
US8289327B1 (en) * 2009-01-21 2012-10-16 Lucasfilm Entertainment Company Ltd. Multi-stage fire simulation
CN106776963B (en) * 2016-12-05 2019-11-29 同济大学 The online method for visualizing of light-weighted BIM big data and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075275A (en) * 2007-06-28 2007-11-21 上海交通大学 Multi-role distributed cooperating simulation drilling method
CN103020389A (en) * 2012-12-28 2013-04-03 上海创图网络科技发展有限公司 Fire fighting command training simulation method and system based on browser 3D visualization
CN103164587A (en) * 2013-04-12 2013-06-19 南京大学 Forest fire spreading geography cellular automaton simulation method

Also Published As

Publication number Publication date
CN108304524A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
Müller et al. Real time dynamic fracture with volumetric approximate convex decompositions
Liu et al. Real-time 3D fluid simulation on GPU with complex obstacles
CN104318056B (en) Soft tissue deformation and cutting simulation method based on position dynamics
CN110309458B (en) BIM model display and rendering method based on WebGL
Yan et al. Interactive WebVR visualization for online fire evacuation training
CN101706967A (en) Comprehensive simulation method for realistic cloud layer
CN106842983A (en) A kind of method for building up of the Three-Dimensional Dynamic monitoring system towards cogeneration
CN108304524B (en) The lightweight webpage method for visualizing and system of extensive fire dynamic smog field
CN103246779B (en) Method for constructing automatic detection simulation system of intelligent electric energy meter
Dey et al. Procedural feature generation for volumetric terrains using voxel grammars
Nuić et al. Algorithms for procedural generation and display of trees
CN112308975A (en) RVM binary model parsing method and system for 3D lightweight engine
CN103942376A (en) Collision correction method for real-time hair motion simulation
CN118681209A (en) A method for optimizing the interactive display performance of three-dimensional scenes based on WebGL game engine
CN117218284A (en) Three-dimensional simulation visualization method, system, equipment and medium for forest landscape
CN116721202A (en) Three-dimensional visual inversion method for harmful non-heavy gas leakage
CN108492371A (en) A kind of three-dimensional building model dynamic and visual method towards fire
CN112257132A (en) Data interaction method of simulation file
Chen et al. A GIS-based forest visual simulation system
Röpke et al. Thermonuclear supernovae: a multi-scale astrophysical problem challenging numerical simulations and visualization
CN119150406B (en) Railway BIM model light weight processing method
Gao et al. A survey of the virtual rebuilding of manufacturing process based on virtual and reality technologies
CN112712593B (en) Electric power tunnel three-dimensional design method based on irregular geometric modeling
CN114187316B (en) Cable head manufacturing simulation method based on virtual-real space conversion
CN115983142B (en) Regional population evolution model construction method based on depth generation countermeasure network

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191120

Address after: Room 804, block a, Jilin animation and game original industrial park, 2888 Silicon Valley Street, Changchun hi tech Industrial Development Zone, 130000 Jilin Province

Applicant after: Changchun Samai Animation Design Co., Ltd

Address before: 200092 Shanghai City, Yangpu District Siping Road No. 1239

Applicant before: Tongji University

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200617

Address after: 130012 Jilin province city Changchun well-informed high tech Industrial Development Zone, Road No. 168

Co-patentee after: Jilin Jidong Pangu Network Technology Co.,Ltd.

Patentee after: JILIN ANIMATION INSTITUTE

Address before: Room 804, block a, Jilin animation and game original industrial park, 2888 Silicon Valley Street, Changchun hi tech Industrial Development Zone, 130000 Jilin Province

Patentee before: Changchun Samai Animation Design Co.,Ltd.