modeling and visualizing fire without getting burned
play

Modeling And Visualizing Fire Without Getting Burned MCSD Seminar - PowerPoint PPT Presentation

Modeling And Visualizing Fire Without Getting Burned MCSD Seminar June 29, 2005 Glenn P. Forney Overview Fire Models Fire modeling applications Gaining insight through visualization Smokeview Visualization Team FDS


  1. Modeling And Visualizing Fire Without Getting Burned MCSD Seminar June 29, 2005 Glenn P. Forney

  2. Overview • Fire Models • Fire modeling applications • Gaining insight through visualization

  3. Smokeview Visualization “Team” FDS computational model Smokeview visualization Kevin McGrattan Glenn Forney Howard Baum Ron Rehm Urban-wildland interface problem Kuldeep Prasad – multi-mesh Ruddy Mell Chuck Bouldin - parallelization Ron Rehm Anthony Hamins – experimental validation Fire reconstructions Steve Kerber – forced ventilation Dan Madrzykowski Greg Linteris – fundamental fire Physics Bob Vettori Doug Walton and others…

  4. The Purpose of Computing is Insight Not Numbers - R. W. Hamming Influence on visualization and Smokeview

  5. Fire Models •Can provide insight into complex phenomena within a fire scenario including Flame spread Gas Conc. Fuel package Smoke HRR Ventilation Suppression Radiation •Can provide a tool for understanding Fire behavior under various ventilation conditions

  6. Single Equation Models Hand (or simple computer) calculations – Heat release rate – Flame height – Minimum Flashover HRR – T-squared Fire Growth - Predicting Time to Flashover

  7. Flame Height & 2 / 5 = 0 . 23 - 1 . 02 L f Q D P 138 JQ Trash can HRR = 50 kW Trash can diameter = 0.3 m (1 ft) Estimated Trash Can Flame Height = 0.8 m (2.5 ft)

  8. Zone Models (ODE models) - Divide room into two zones Hot Upper Zone Cool Lower Zone

  9. Zone models • Two primary control volumes – Upper / lower layers • Conditions assumed uniform in each layer • Correlations – Combustion – Plume flow – Vent flow (entrainment) Hot Upper Zone Cool Lower Zone

  10. Zone models & q & v q & & q m c convection r v & & radiation q m f f y lay entrainment & q v & m v

  11. Zone Modeling Equations Conservation of mass and energy State Equations work dm dE dV = & U + = m & U U Ideal Gas Law P q U dt U dt dt P = ρ = ρ T T Internal energy enthalpy L L U U R Internal Energy dm dE dV E = = + = c m T & & L L L m P q L V L L L L dt dt dt E = c m T U V U U

  12. Zone models Governing Equations: γ - 1 dP Pressure: = ( + ) & & q L q V U dt - 1 dy dP lay = ( - ) & Layer interface: q V A γ U U dt P dt room abs 1 dT dP X = (( - c m T ) - V ) & Upper/Lower Layer & q p X X X X dt c m dt Temperature: p X

  13. Zone Modeling Equations dx = ⎛ ⎞ P ⎜ ⎟ ( x ) f ⎜ ⎟ V = U x ⎜ ⎟ dt T ⎜ ⎟ L ⎜ ⎟ ⎝ ⎠ T U “Small” changes in P, V U , T L , T U Large changes in dP/dt Stiff ODE solvers required for solution (use DASSL)

  14. Zone model visualization

  15. Zone to Field Models

  16. Field models

  17. Fire Dynamics Simulator and Smokeview Version 1 release, February 2000 Version 4 release, November 2004 http://fire.nist.gov/fds

  18. Fire Modeling Applications

  19. Fuel Spray (Walton, Floyd)

  20. Rack Storage Fire

  21. FDS Validation Experiment 3 MW Fire, 23’x12’x12’ Compartment, 1 hour burn 1000 WTC Phase 1, Test 5, West Aspirated TCs 800 Temperature (C) 600 365 cm (Exp) 215 cm (Exp) 34 cm (Exp) 400 365 cm (FDS) 215 cm (FDS) 34 cm (FDS) 200 0 0 1000 2000 3000 Time (s)

  22. Visualizing Fire Data Fire Dynammics Simulator (FDS) - Modeling Fire Data

  23. Software Used With Smokeview • OpenGL – 3D low level graphics API • GLUT – g raphics l ibrary u tility t oolkit • GLUI – user interface toolkit implementing dialog boxes using GLUT and OpenGL • C • Fortran 90

  24. Software Used With Smokeview (Cont) • GD – image library • Pnglib – image library • Zlib – compression library • Jpeglib – image library

  25. Who is Using FDS and Smokeview? 1) Developers Diagnose problems with Physics and Numerics of FDS

  26. Who is Using FDS and Smokeview? 2) Engineers/Scientists Study effects of fire dynamics Cherry Road LODD Incident December 1999 Litigation, Forensic studies, Fire Protection Engineers, Architects, Regulatory agencies NRC, DOE, …

  27. Who is Using FDS and Smokeview? 3) Fire Fighters (trainees) Fight fire “on the computer”

  28. Visualization Overview 1 L M M x • load data n • specify geometry M i – rotation, translation or scaling •Light scene matrix transformations • move, translate x – position vector and scale geometry Motion Color Structure

  29. Drawing • Specify vertices • Draw objects (connect vertices) • Move objects • Project objects onto 2D plane • Transfer 2D plane onto a portion of the computer screen

  30. Drawing Shapes

  31. Lighting

  32. Smokeview Shading Example Unshaded Shaded

  33. Smokeview Shading Example Shaded isosurface Unshaded slice

  34. Lighting/Shading Light source Lighting • Adds more realism to 3D scenes • Computed using normal vectors normals light source direction vectors Observer

  35. Specifying Normals (Perpendiculars) One normal glNormal3f(nx,ny,nz); per triangle glVertex3f(ux,uy,uz); glVertex3f(vx,vy,vz); glVertex3f(wx,wy,wz); u n (facet shape) n = (u-v) x (w-v) v w

  36. Specifying Normals (Cont) (Perpendiculars) glNormal3f(nx1,ny1,nz1); One normal glVertex3f(x1,y1,z1); per vertex glNormal3f(nx2,ny2,nz2); glVertex3f(x2,y2,z2); glNormal3f(nx3,ny3,nz3); glVertex3f(x3,y3,z3); u (smooth shape) v w

  37. Drawing a Smokeview Scene • Particles • Shaded contours (slice files) • 3D contours (isosurface files) • 3D Smoke

  38. Particles glPointSize(partpointsize); glBegin(GL_POINTS); for (n = 0; n < nsmokepoints; n++) { glColor4fv(rgb[itpoint[n]]); glVertex3f(xplts[xpoints[n]], yplts[ypoints[n]],zplts[zpoints[n]]); } glEnd();

  39. Slices - 2D Contours

  40. 0 5 2D Contours (Cont) 5 10 10 5 0 5

  41. 2D Contours (Cont) 0 5 5 0 5 10 10 5 Triangulate so that all hypotenuses follow level curves

  42. Slices 2D Contours - Example

  43. Computing 3D Contours (isosurfaces) Marching Cube Algorithm • Divide domain into a number of cubes • For each cube determine where isosurface crosses cube • At each corner of cube data is either above or below isosurface level – 256 cases - Above isosurface level 3 of 15 cases

  44. 3D Contours - Example Outline Solid

  45. 3D Contours - Example Multiple normals Single normal for for each vertex each vertex

  46. Transparency - Example Transparent Solid

  47. Visualizing Smoke 3d contours realistic/3D smoke tracer particles

  48. Simple Smoke Visualization Strategy Assume “ambient” light source behind smoke Background scene Mix smoke color with background scene color Observer

  49. Advanced Smoke Visualization Strategy “Ambient” light source behind smoke Background scene Directional light source Mix smoke color with background scene color Observer

  50. Examples Sun above clouds Sun behind clouds Diffuse/Ambient Light

  51. 3D Smoke Using Transparency to Visualize Smoke Physics-based computation of smoke transparency Side View Front View

  52. 3D Smoke Using Transparency to Visualize Smoke Physics-based computation of smoke transparency α − ο bscuration Δ x - distance between adjacent grid planes s i - soot density α i = 1 - exp(-ks i Δ x) - Beer’s law

  53. 3D Smoke Smokeview adjusts each α i • in real time for non-axis aligned view distances using: Δ x Δ α = − − α ˆ / ˆ 1 ( 1 ) x • Smoke may be drawn faster by skipping planes (need to adjust α ’s for planes that remain) α = − − α = α − α ˆ 2 2 1 ( 1 ) 2 ˆ Δ Δ = / 2 X X

  54. Benchmark Exercise: Under-ventilated Compartment

  55. 3D Smoke Reality Check

  56. Future Work Possible future directions for Smokeview

  57. Representing Data With Color

  58. Representing Data With Color

  59. Representing Data With Color 3D color “space”

  60. Representing Data With Color 3D color “space” “rainbow colorbar”

  61. Simulating Thermal Imagers Determine colorbar appropriate for use with a thermal imager How does a thermal imager respond to • temperature, • gas composition

  62. Exploiting Texture Mapping and Tours

  63. Beyond the CPU Programming the GPU Use the video card ( GPU ) to perform scientific computations Why? Pseudo code for 3D smoke visualization for(i=0;i<ni;i++){ for(j=0;j<nj;j++){ correct α at each grid node { } CPU - serial GPU - parallel

  64. Summary •Not enough to run a fire model (or any model) •Visualization is a useful tool for analyzing data and gaining insight into the phenomena being studid glenn.forney@nist.gov

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend