LinkedIn

Monday, August 12, 2013

Nothing is Perfect - Especially Models

Teaching always involves learning and I just love to hear from the folks reading this blog.   A very thoughtful reader, who has asked to be identified only as a “retired US Air Force Bioenvironmental Engineer”, read the recent blogs on using tracer gas for ventilation measurements.   He had the following comments which I am including and addressing below:

1.       These computations work for gases and vapors, not particulates.
2.       The assumption that the vapor or gas will occupy all room volume is reasonable for a small  room, but in a large room (i.e., an aircraft hangar) the assumption may not be valid, especially  since most solvents used in paints and coatings are heavier than air.

Let’s take point 1 first.   It is correct that these computations will not work for many if not most particulates.  It is especially true for particulates in which a significant portion of the particulate population has an aerodynamic diameter (AD) greater than 10 microns.  This is primarily because these larger particles settle to the ground in a time frame that is comparable to the tracer testing time.   If the particles are very small – for example, AD less than 0.1 microns (e.g., fumes and  non-aggregated nano-particles) they could work because they will settle very slowly.   

Note:  Aerodynamic diameter (AD) is based on the settling velocity of any particle.   That is a particle with an AD =10 microns will fall at the same rate as a unit density sphere with a diameter of 10 microns.    Thus regardless of the shape of the particle we can characterize its size in an aerosol. 

Regarding number 2 above I have some experience and the point about the model not working in large rooms is right to the mark.   The room has to be reasonably small or enough tracer has to be released and mixed that the concentration is pretty even throughout the entire volume.   This is extremely difficult to do in a very large room (e.g. airplane hangar, large warehouse).   In these volumes it is probably easiest  and best to measure the volume of fresh air coming into or out of the volume by measuring the air velocity (Vel)  and the areas (A) of the opening(s) and using the Q   = Vel  x A equation to figure out how much ventilation is going into and coming out of the room.  Remember the average amount going in will always equal the amount coming out in any reasonable time frame.  

The issue of heavier than air solvents is something that I have thought about quite a bit.   I will use the rest of this blog to present the argument that I believe that it is a non-issue in the vast majority of what we do as exposure assessors.  

It is quite nature to think that all “heavier-than-air” vapors sink and sink quickly.   Indeed, we have all seen “dry ice” vapors pouring or spilling out of a vessel or block of dry ice and dropping quickly downward.    Air is 21% oxygen (MW 32) and 79% nitrogen (MW 28) for an average MW of 28.8.    Carbon dioxide MW is 44 g/mole.  Also, its vapors are much colder than most ambient air and thus even more dense.   Both of these factors cause the CO2 vapors to drop but perhaps the most important factor that causes the CO2 vapor cloud to fall quickly is that this emitting cloud is essentially 100% CO2  (because C02 is a gas at normal temperature and pressure) and a 100% CO2 gas emission is at its maximum density and tends to displace all of the air in its path.    The relative density of COversus air (not counting temperature effect):   (44/28.8)(100%)  = 1.53  or 153%.

Now consider typical solvents in VOC-based paint used to paint cars.   These materials are liquids at normal temperature and pressure and even under saturation conditions their vapor concentrations only get to a small fraction of 100%.    Let’s look at toluene as an example, even assuming the worst case of a saturated vapor of toluene, it only comprises 5% (40mmHg Vapor Pressure/760mmHg ATM)  of the molecules in any volume at normal temperature and pressure with the rest being air.  

To get some idea of the actual  VOC concentrations around workers during spray painting, we did and published a one year study evaluating worker exposures in a small “bump and paint” auto body shop. Please send me an email (mjayjock@gmail.com) if  you want a copy of this paper.   In doing this work we estimated that the average MW of these paint solvent mixtures was 125g/mole.   I measured the breathing zone of workers spraying cars in a small booth that was turned off (because of cold weather outside) with essentially NO ventilation.   The highest total VOC measured in the worker’s breathing zone was about 1500 ppmV. 

The relative density of vapors with 1500 ppmV total VOC with average MW = 125 (versus pure air) is (125/28.8)(1500/1,000,000) =  0.0065 or less than 1%.   It is worth mentioning that the painters we monitored did not wear PPE and were visibly intoxicated by these exposures.   Getting back to the point of heavier than air vapors, even at 4 times this concentration (i.e., 6000 ppm V) the difference in density and buoyancy between pure air and air highly contaminated with VOC appear to be relatively small.  

In conclusion, I believe that it is fairly safe to say that VOC emissions from evaporating liquid pools, spraying or from evaporating aerosol particles will be en-trained into the normally moving ambient air and not have a strong tendency to sink.

All of this reminds me of the wise statement that:  “All models are wrong but some are useful. “   We simply need to keep engaging our minds and allow the models to tell us something useful.











Sunday, August 4, 2013

Excel Regression Analysis for Ventilation Rate

This is a hopefully “bite-sized” lesson in tracer gas ventilation rate analysis.  It gets a little technical but I tried to break it down into little pieces and if you stay with me I think you will find it rewarding. 

In last week’s blog we went through a derivation of the first order kinetic model.   The primary equation is:   C = C0 e-kt.   Where C is the concentration at any time (t) and C0 is the starting concentration.   Here k is the rate of loss as proportion per unit time.  For example k = 0.5 means that 50% is lost every hour.  If you take the natural log of both sides of this equation you get:  ln(C) = -kt + ln(C0).    You may recognize this form as the straight line equation y = bx + c.  Here y = the point-in-time concentration (C) at any time (t) and c equals C0 or the starting or t=0 concentration.  The x value in this equation is time (t).  The slope b is equal to –k or the loss rate or Q/V.

Given this straight line form, a plot of ln(C) versus t data points should equal a straight line with negative slope k and y-intercept value equal to C0. 

The technique of linear regression is very valuable in that it takes the matched data pairs of values of  (y,x ) or  (ln(C), t) in this case and gives you the best straight-line equation that fits these data.   That is, it gives you k and CO in the equation:  ln(C) = -kt + ln(C0).    Once you have k you have a precise estimate of  the ventilation rate based on our tracer gas data.   The technique also tells you how well your data fit the first order decay model.

So how do we do this mathematical magic?  Doing it by hand can be a real pain but doing it by Excel spreadsheet is relatively easy.   First, you have to turn on “Data Analysis” and the Analysis ToolPak if they are not already activated in your copy of Excel (they are free but NOT activated by default).  You do this in Excel 2010 by going to the File tab then Options then Add-ins.  At that point you will see Analysis ToolPak.   You simply add it to Excel at this point and it shows up in the DATA tab.  If you have a different version of Excel or other problems then go to Google and look for YouTube presentations that show you step by step how to add this important tool.

Open a spreadsheet and let’s use the tracer gas data from the July 22 blog:   Concentration, t pairs:    16 ppm @ 0 hour,  12.5 @ 0.5,  9.7 @ 1, 7.9 @ 1.4 and 4.1 ppm after 2.8 hours.   Make a column in the spreadsheet for all the concentrations.    Thus cell A1 has 16 and A5 has 4.1.    Now go to cell B1 and put in =ln(A1).   This calculates the natural logarithm of 16 ppm or 2.7725.    Copy B1 down to B5 so that B5 now equals the ln(A5) or 1.410987  in this example.   In the C column put in the respective times for these concentrations; that is, 0 for C1 filling the cells in down to 2.8 hours for C5.

Now go to the DATA tab and then click “Data Analysis” to the right.   A small window opens entitled “Data Analysis” with many choices.  Go to “Regression” and hit OK.  Highlight the cells B1 thru B5.   Then go to the “input y range”: click the cursor into this window and then highlight B1 thru B5.   It will show up in the window as $B$1:$B$5.   You can also put this exact string in manually.  Now click the cursor into the Input X Range window and then highlight C1 thru B5.   It should show up as $C$1:$C$5.   At this point just hit OK and the magic happens.  A new worksheet opens up (Sheet 4) with all the analysis data.

Remember the straight line equation form we are using in the regression:  y = bx + c .  In this case straight line equation is ln(C)  = kt + ln(C0).      The calculated intercept is the model-predicted ln(C0).   In the regression model calculated by Excel this value is 2.76455 (in cell B17 intercept coefficient).  Taking e to this power is the model-predicted C0 = 15.9 ppm which is very close to the 16 ppm we actually measured at time equal zero.   The value for k is in cell B18 (X variable coefficient) and is -0.49 which is pretty close to the -0.5 that we estimated from looking at the data and assuming a first-order model without doing the regression analysis.    So we now have a reasonably precise analysis of ventilation from our tracer gas data because we now know that Q/V = 0.49/hr.

One of the neatest benefits from running the model is that it tells you how good the model fits the data using the first-order decay assumption.   In this case the R2 value (cell B5) in Sheet4 is 0.9996 which means that 99.96% of the data is explained or accounted for by the model and only 0.04% can be considered random error or noise.   

I will be happy to send a copy of this spreadsheet complete with the sheet4 analysis if you email me at mjayjock@gmail.com.   I will be away this week so it may take some time for me to get back to you with the spreadsheet.


I went a bit deep into the technical woods on this one but I thought it might be worth it because the first order decay model is very important for a number of exposure modeling situations.   This example was for ventilation rate but you can use it for modeling the time-dependent rate of an evaporating spill if you have data on the remaining weight or size of spill versus time.

Monday, July 29, 2013

A Simple Derivation of the First Order Kinetic Model for Ventilation


Last week I promised to really break down for you the details of the derivation of the equation for first order decay.   You will remember that this means that the amount or rate of decay is proportional to the amount remaining.   The basic equation describing this situation is below:

image

C is the concentration at any time (t),  C0 is the initial concentration and k is the rate of decay.  The units are mg/m3 for C and C0, hour for t and 1/hours for k.

Monday, July 22, 2013

A Simple Tracer Gas Technique to Measure Ventilation

A simple tracer gas technique can determine the ventilation rate in any room or volume of air.   Last week I discussed natural logarithms with base e.    One of the most useful equations involving natural logs is the equation for first-order decay.  This sounds complicated but all it really means that the rate of loss or decay of a concentration is directly proportional to the amount remaining.   Thus, for example, the rate of decay (or material loss) for a ventilated room volume concentration that is 10 ppm will be twice as high as the loss rate for a  room concentration of 5 ppm under the same ventilation conditions.  More important, the time it takes to get from 10 ppm to 5 ppm is the half-life.   Indeed, it is the same amount of time (i.e., the half-life) that it will take decay or go from 5 ppm to 2.5 ppm, 2.5 ppm to 1.25 ppm, etc.   That is really all there is to first-order kinetics.   Theoretically you never get to zero but after 7 half-lives the concentration is less than 1% of what you started with and after 10 or so it is vanishingly small.

The decay rate of a gas concentration put into a room typically follows a first order decay process driven by the ventilation rate.

The equation is:   - ln (0.5)/(Q/V) =  (0.693)(V/Q) = the half-life  = t1/2
Thus the ventilation rate (Q) = (0.693)(V/ t1/2)

Consider a room in a home that has a volume (V) of 20 m3.   We put a tracer gas into this room and mix it up for a few minutes with portable fans so that the average concentration is 16 ppm measured with a real time monitor.  We get the following data over the next few hours:  12.5 ppm at 0.5 hours, 9.7 at 1 hour, 7.9 at 1.4 hours and 4.1 at 2.8 hours.    You would typically have an automatic data-logger to take a reading every 5 minutes or so but the above data points tell the story.   The initial concentration goes in half after about 1.4 hours and in half again in the next 1.4 hours; the half-life is about 1.4 hours.   Put 20 m3 and 1.4 hours in the above equation and  Q = 9.9 m3/hr.   Another way of expressing this is the ratio Q/V or 0.50 air changes per hour.   This is a typical ventilation rate for a home with doors and windows closed in the winter.   Crack the windows open and this can go up 10 fold.   Industrial rooms are typically higher and in “hot” industrial settings or rooms with a lot of local exhaust ventilation it could be much higher.

What are good tracer gases to use?   Freon R-134a used in car air conditioners is easy to get and it works quite well with a portable flame ionization detector (FID).   If you are very careful not to release too much (say 10 ppm max), carbon monoxide (CO) could work well with a suitably sensitive real-time analyzer that can continuously output the concentration in ppm.   In industrial rooms with active gas fired fork lifts there is often enough ambient CO in the room that it represents a “built-in” tracer simply by having the folk lift operators stop for an hour or so (e.g. waiting for lunch or the end of the day) and measuring the CO concentration fall off will give you the data you need.

Next week I will show you more about “e” and natural logarithms; specifically, we will go over how the above equations and similarly useful algorithms are derived.  We will also get into how one can use an Excel spreadsheet to get a more precise estimate of half-life from tracer gas studies.

In the meantime, my friend and colleague Dr. Mark Nicas, who during his career has developed some really useful exposure models and also teaches at Berkeley, has kindly sent me a document which has 18 pages packed with quantitative math and science review notes.  I would be happy to send it to anyone who sends me an email request to mjayjock@gmail.com.    The stuff in this pdf is pretty concentrated with useful information and perhaps it would spawn some questions that I could address in future blogs.




Tuesday, July 16, 2013

A Simple Refresher of Logarithms

Some folks are intimidated by the mathematics of modeling.  I am here to tell you that by taking a little time to really understand a few basic concepts in math (which I am going to help you with) you are ready to approach and understand the mathematical underpinning of many models.  

When and where many of us went to school, math was not very well taught.  Indeed, many of us were taught to manipulate numbers to get answers but we were not schooled in exactly what the process meant in a larger sense.  We soldiered through math course with a good portion of us hating it but never really seeing what it was good for.   In this blog I am hoping to refresh our understanding of logarithms so that we can clearly understand and use them in models. 

The first thing to understand about logarithms is that they are just another way of expressing a number.  All logarithms have a BASE.   The one we see much of the time is BASE 10.    So the “power” or exponent that 10 is raised to is its logarithm or log.    So the log of 100 is 2 since base 102 is equal to 100.    The base10 log of 10 is equal to 1 for the same reason.    Similarly, if we know that the base 10 log is 3 we know the number is 103 or 1000.  Calculating logs are easy for simple integers but considerably more difficult for those numbers in between.   In the old days before calculators we had “log tables” to give us these numbers.  Today we just put the number in our calculator; for example, enter 15 and hit LOG to get the log of 15 or 1.1761.  Thus 101.1761 = 15.   

 Numbers less than 1 have negative logs. Log of 0.5 =   -0.3010 or   10-0.3010 = 0.5.   

Try putting in -0.3010 for x and hit the 10x button and wa-lah!    0.500 is calculated which is the  "antiLOG" of -0.3010.   

Logs are handy in that adding the logs of numbers is the same as multiplying the numbers.    Add -0.3010 to 1.1761 = 0.8751.  The antiLOG of 0.8751 =  100.8751 = 7.5 or the same as 0.5 x 15.    Similarly subtracting logs is the same as dividing the numbers.    Subtract -0.3010 from 1.1761 = 1.4771.   101.4771= 30 = 15/0.5.   Flip it around and Subtract 1.1761 from  -0.3010 =  -1.4771.   10-1.47711 = 0.03333 or the same as 0.5/15.   For us folks who have been around since before calculations,  this is how a slide-rule works because it has logarithmically-spaced scales, you are adding or subtracting logs by sliding the scales to do multiplication or division on the slide-rule.

You will see a lot of logs expressed as base 10 because that is our basic number system (a system based on 12 might be better) and that is how many fingers we have.   Logarithmic scales are convenient for compressing large ranges of numbers because in base10 the distance between each integer represents 10x.   For example, the difference in shaking amplitude between a Richter magnitude 7 earthquake is 10 times higher than a magnitude 6 because the scale is base 10 logarithmic.

Now that we understand algorithms in base 10 it is time to understand logarithms with the NATURAL base number.   This natural BASE number is 2.718281... or the italicized lower case letter “e”.   The only thing you need to know about “e”  is that it is an important number in mathematics and actually much more “natural” than 10.   Thus it is called the NATURAL log (sometimes called LN or ln).    The same rules apply, that is, the natural log of 10 is 2.3026 (it’s also on your calculator - sometimes with key named LN) which means that  e2.3026= 10.

Next week I am going to talk about the subject of integration and how it fits into modeling.   We are going to see “e” again and we will walk through a practical model using a tracer gas that lets us estimate the ventilation rate in any workplace room or any residential volume. 


  

Tuesday, July 9, 2013

Well mixed model vs Models that consider air concentrations close to the source

Well mixed box models are relatively easy to understand.  You start with a room (a box) and the same amount of fresh air goes into it as comes out of it.  If not it would explode or the folks inside would suffocate. You put a contaminant into the room air (emission rate G) and take it out with ventilation (Q).   Last week we saw that given a steady G and Q that the steady-state concentration (C) in the box will eventually equal G/Q.   There are other more complicated equations that determine C as it approaches steady-state but that is not important for this discussion.   In later blogs I will get into how you can determine or estimate G and Q but for now it is enough to know that this is a simple model and quite useful in many cases.  It is important to understand that the C determined by this model is the AVERAGE concentration within the room.  If the source G is relatively spread out within the room then this model works quite well.  An example of a spread out source would be paint emissions into a room with painted walls and ceiling.  If, however, the source is localized then there typically will be a much higher concentration (C) of the contaminant near the source than away from it.   An example would be someone using a volatile degreaser spray with TCE on a workbench to clean a part.  The larger the room the more the gradient or difference in concentration near the source versus the far corner of the room.  The well mixed box model does not work very well here since the average concentration in the room will be significantly lower than the breathing zone concentration of the person doing the cleaning.

Many years ago I approached this problem by assuming a virtual box within the real box of the room.  For example, I assumed that most of the contaminant would be in an area of an 8 foot cube around the source.   That is a volume of 512 ft3.   It did not matter how big the room was as long as it was larger than this virtual box.  The only thing I needed to know about the actual room was its volume (V) and its ventilation rate (Q).   Once I knew Q for the large room I would figure out the air changes per hour in that large room; that is, Q/V.   This has the units of 1/hr.   Once I had Q/V for the large room I assumed this relative exchange rate would be the same for the virtual box.   So that (Q/V)(512ft3) = Qb or ventilation rate in the virtual box in units of ft3/hr.   I'll let you do the conversion to m3/hr.  The predicted steady-state C  in this box = G/Qb.   If you want a copy of the original paper just email me (mjayjock@gmail.com) and I will send it to you.

Years later Mark Nicas came up with a much more elegant model called the 2 zone model (that considered the virtual box or NEARFIELD and the FARFIELD or rest of the room volume).  This model calculates the C in the virtual volume around the source AND the average concentration in the rest of the room.  This model and lots more are available in the freeware Excel spreadsheet IH MOD from the AIHA web site.
http://www.aiha.org/get-involved/VolunteerGroups/Pages/Exposure-Assessment-Strategies-Committee.aspx

There is another near source model known as the eddy diffusivity model which actually calculates a continuous gradient of exposure from a point source of emission (G) to any location within the volume.  To run this model one needs G and the eddy diffusivity coefficient (D).  Until recently D was hard to come by, but the very smart researchers at Stanford recently published a paper that allows one to estimate D from a room's dimensions and its ventilation rate.  Kai-Chung Cheng, et al,  Modeling Exposure Close to Air Pollution Sources in Naturally Ventilated Residences: Association of Turbulent Diffusion Coefficient with Air Change Rate.  Environ. Sci. Technol. 2011, 45, 4016-4022.  The calculation engine for the eddy diffusivity model is also available in IH MOD.

I appreciate the comments I receive on this blog and it helps me to determine what I am going to cover next.



Tuesday, July 2, 2013

A Simple Exposure Modeling Example as a way of Getting Started

One of the really nice things about doing a blog is the connection with colleagues.  As a prime example, I received the following note from Dr. Gurumurthy Ramachandran (Ram) about last week’s blog. 

“You hit the nail on the head when you said that all hygienists need to become explicit modelers, not subliminal ones.  Just the process of thinking about each input parameter to even a simple model will lead to a much better understanding of the workplace and the limitations in that understanding. I remember reading somewhere that these two elements correspond to knowledge and self-knowledge.”

Ram is a brilliant teacher and researcher at the University of Minnesota so I consider these words to be very heartening. Indeed they, along with the other comments I received last week, are enough to encourage me to hopefully provide more insight this week to newbies into the modeling process. 
  
The basic elements of all inhalation models are relatively simple.  In every case, you have a volume of air and a rate of contaminant input to that volume.  The model is simply using these elements to predict the concentration in the air that might be inhaled by a worker. 

The model I am going to discuss this week is one of the simplest but still very useful; namely, the well mixed box model at equilibrium.   Any room (or box of air) which is receiving a steady inflow of contaminant will reach a steady (or equilibrium) concentration of contaminant as the amount of contaminant that is put into the room is balanced with the amount that is leaving via ventilation removal.  All volumes or spaces in which we exist have some fresh air ventilation – even our well-insulated homes in winter exchange air with the outside via infiltration/ex-filtration through cracks and other openings.   This exchange typically occurs in the range of 30 to 60% per hour in the rooms of homes and is often well above 100-300% in industrial rooms.

At equilibrium the airborne concentration (C) in the box (room) is equal to the generation or emission rate (G) of contaminant into the box divided by the ventilation rate (Q).                 C = G/Q    G = wt/time.    Q = volume/time     C = wt/volume.   Pretty simple uh?

So how does one estimate G?   Let’s consider an example of a small (20m3) bedroom in which someone is painting with a water-based paint that has 0.5% ethylene glycol (EG) as a drying agent.  If they use 4,000 gram (4,000,000 mg) of paint, that is 20 grams (20,000 mg) of EG.   If it is assumed to take 8 hr to dry and that all of the EG comes out that is an average of 2,500 mg of EG being emitted into the room air per hour.   There are quite a few ways of estimating G and I can go over these in future blogs.

Estimating Q:  The 20m3 room with 60% ventilation/hr is (20 m3)(0.6/hr) = Q = 12 m3/hr.   There are a number of ways of getting a Q which could also be a topic of a future blog.

Using C = G/Q = 2,500/12 = 208 mg/m3 of EG at equilibrium.
That wasn't too bad was it?

This is a simple model – like all models it is a portrayal of reality but NOT reality.  The generation rate is most likely not constant but this exercise does give one some reasonable insight into the process and into the magnitude of the exposure potential.   If the EG comes out of the paint more quickly it could have a peak concentration higher than 200 mg/m3 but perhaps not very much higher.  The time-weight average concentration would always be lower than 200 mg/m3 if our assumption about all of the EG being vaporized in 8 hr is correct. 

If the EG takes much longer to come out it changes a lot of things.  Indeed, rework the above so that it takes 24 hours for all of the EG to come out and again assume that it comes out evenly.  Then the estimated equilibrium concentration for that 24 hour day would be about 70 mg/m3 and if one was only exposed during 8 hrs of that day their exposure could never be higher than about 25 mg/m3.  

There are a number of assumptions here in this simple model but I hope you can see how it might be helpful and how it might encourage you to go and manipulate the inputs to gain more insight or go to more sophisticated models.    IH MOD is a freeware Excel spreadsheet available on the AIHA web site that can do all of the math with ease and it provides a graphical output so that you can better see what is happening.   

I am again at a point where I need some feedback.   Do you good folks need or want information on:

  • Specifically where to get IH MOD and exactly what does it do?
  • Some of the math background that you may want to brush up on to help you with modeling (Note: It’s not a lot)
  • The difference between equilibrium, point-in-time and time-weight average airborne concentrations
  • Well mixed models versus models that consider air concentrations close to the source
  • How to do source estimation (G)
  • How to measure or estimate ventilation rates (Q)
  • All or none of the above
Send your wishes/comments to me at mjayjock@gmail.com or in comments to this blog.  Absent any feedback I will go back to talking in generalities about risk assessment, risk management and modeling which many or most of you may find to be preferable.