Sunday, October 28, 2012

Fun With Office Supplies - Geometric Cohesion and Staples

After the small rash of tape theft resulting from my suggestion at a talk that the audience go home and unroll scotch tape to see the resulting electrical dischange (which deserves a blog post soon) it's time for another attempt to make Swingline Co. stock soar.

In a recent Physics Today article "Geometric Cohesion in Granular Materials", Scott Franklin of the Rochester Institute of Technology showed some very interesting data regarding how the shape of a material effects how likely it is to stay together as a coherent mass.  Before we delve into the article though, let's talk about cohesion in general.  Then we can come up with a couple of fun experiments that you can do at home.

Cohesion is just the tendency of a material to stick together.  This is different than adhesion though.  Consider a water drop on a dish in your dish drainer.  The water drop is sticking to another material (the ceramic) which is adhesion.  The water drop is also a coherent mass; water molecules are sticking together to form a raised droplet on the surface of the plate.  In essence the water is 'sticking to itself', which is due to electrostatic forces of water being a polar molecule.  Electrostatic forces give water a property of surface tension that causes lots of wonderful things that can make up a whole other post at some point.



Other things can cause a material to stick to itself though.  Remember playing the old pickup sticks game as a kid? The object was to extract a stick from a pile of sticks on the table without disturbing other sticks.  This turns out to be pretty challenging.  Your pile of sticks appeared to be stuck together or interconnected, which is cohesion in a macroscopic or broad sense.  In the case of the sticks electrostatic forces certainly aren't the cause.  Electrostatics forces are relatively weak, and the sticks don't have enough mass for their gravitational attraction to cause this cohesiveness of the pile.  What is the mysterious factor then? It's just their shape. When objects act cohesive because of their geometry or shape it's called geometric cohesion.

First grab a couple of tablespoons of sugar, place it in a small container (an old medicine bottle works great) and turn the container upside down on the table.  Now remove the container... the sugar spreads out in a small pile.  The roughly spherical grains of the sugar don't stick together that well and the pile isn't very tall.  The angle of the pile from horizontal is called the angle of repose, and is around 30-35 degrees for lots of things.  My pile of sugar sat at about 30 degrees.  The angle of repose really tells us how hard it is for the grains to slide past one another.  If it's easy, the pile is a very low angle, and if the pile is made of large, angular hunks of rock, it becomes more steep.



The angle of repose can even be thought of as a proxy for the coefficient of static friction, or how hard it is for the grains to move past each other from a dead stop.  A mathematical relationship can be derived from some geometry, but it turns out the tangent of the angle is about the coefficient of friction. So the tangent of 30 degrees is about 0.6, which is the general number for static friction of lots of materials.  This result means all is well in the world of static newtonian physics and we can think about something more interesting than approximate spheres of sugar.

What about rods? Going back to our game of pickup sticks, the shape of the long, narrow rods seems to be the main factor holding things together.  It's easy for lots of objects to interact and become 'locked together'.  Who cares about rods locking together? Manufacturers often have automated assembly machinery that may have large hoppers of screws, and when things get locked together it costs money.  The long narrow shape of screws can jam hoppers in seconds and hold up the entire line.  While not many people have a pile of tiny screws at home, I bet you have staples.

Staples are a funny shape really.  Standard office staples are about 7mm along the long upper shank and  around 5mm at the two barbs.  These measurements give the staple a barb to shank ratio of about 0.7, which as it turns out, is a governing number describing how well staples can stick together.  Franklin's group did a whole series of experiments with staples of different barb ratios and found that staples with a ratio near 0.4 were the most cohesive.  Even though our staples aren't the ideal ratio let's repeat the sugar experiment.



Using a stapler, eject a bunch of staples into the same container (or one with a slightly larger mouth if you have it).  Now shake the container up for a bit, turn it upside down, and remove the container.  This time the mass didn't spread like the sugar, but retained the relatively sharp edges of the container shape.  Retention of shape tells us that the staples are cohesive, and their high angle of repose means that the coefficient of static friction is very very high.  Franklin's group is currently seeing how strong these piles are by pulling on the ends, but they are actually pretty robust.



The big question is why does any of this matter other than being interesting? Well, cohesion is a big deal when we study soils.  Cohesion can determine if the ground can support a building, if a landslide is due, or if the machine powder coating your morning doughnuts gives you a plain doughnut.  While some of these are more life threatening that others, it's import to study cohesion to keep tabs of impending disasters, especially avalanches and landslides. I know that there aren't that many staples in soils generally, but there are clays which are shaped like plates.  Different minerals/materials in the soil with different shapes can greatly change the strength of the soil and how likely it is to slide as a mass.

Saturday, September 15, 2012

3D Printing in the Lab - Will Lab Hardware Follow Software into Open-Source?


Today I read the article "Building Research Equipment with Free, Open-Source Hardware" by Joshua Pearce from a recent Science Perspectives section.  I'd like to share some thoughts on the article as I thought it introduced what may be the next "want" item in many labs.

In the modern scientific lab there is a large assortment of sophisticated hardware necessary to conduct increasingly complex research.  Generally scientific hardware is some combination of turn-key or off the shelf equipment and equipment designed and built in house.  In recent years laboratory software has progressively become part of the free and open-source software (FOSS) movement; hardware is now following the same trend with the advent of open-source 3D printers from the hobbyist community.

Open-source hardware became popular in the late 90’s with the basic stamp “board of education” microcontroller circuit boards, but the Arduino has taken over the hobby market with its $30 price tag.  Arduino has a number of modules, or shields as they are called, ready built with significant code libraries available.  With the Arduino circuit boards scientists can perform basic hardware control with digital and analog outputs in addition to basic analog-to-digital conversion.  

The RepRap open-source 3D printer is driven by the Arduino and can be constructed for <$1000.  The machine prints the parts required to make another RepRap printer, so building a machine is approached by entering the RepRap community with a parts request.  Users also post 3D designs on Thingiverse for download and printing by anyone.  A sufficient amount of laboratory equipment from test tube racks and filter wheels to Dremel tool adapters are already online.  

Printing laboratory equipment may not only reduce the cost of research, but allow the same flexibility, innovation, and rapid development cycle enjoyed by scientific software.  Being able to create a custom bracket, holder, mold, or sample jig could be advantageous to almost any laboratory and allow research to be conducted more efficiently with less focus on coordinating development with engineers at commercial manufacturers.  The open-source nature of the parts library will reduce duplication of work between those in a common field of research and allow cross-lab standardization of sample preparation techniques.  

There are limitations to what can be easily constructed in the lab, such as 3D printing with metal.  The technology to do this exists, but is too complex and expensive at the present time for individual applications.  While working at Oak Ridge National Laboratory I got the opportunity to see 3D printing with titanium.  The video below is a titanium ball... bouncing. (Apologies for the portrait video and quality, this was taken several years ago with an early iPhone.)




Like all community projects, the RepRap is being updated to have greater capabilities.  According to the project website a major milestone will be printing with electrical conductors to manufacture rapid prototype circuit boards without milling away copper clad board material.  

Just as sometimes labs must use commercial software, it is likewise not expected that all lab hardware will become open source.  Some tolerances are too tight for the parts to be constructed by simple printers and some materials are not practical to print in the lab.  With all this in mind it is worthwhile to monitor the progress of open-source hardware such as the RepRap, Arduino, and the new RaspberryPi single board computer.  These tools may provide teaching support also as controlling and displaying data from classroom demonstrations is easier than ever and does not require the resolution/precision of research grade instruments.

Saturday, September 8, 2012

The Scientific Workspace

Today I'd like to discuss the evolution of the scientific workspace, but before that I need to address a few comments and recent happenings.  The fluxgate magnetometer project is done, I decided to not build a bandpass filter in the unit.  Hopefully I can get the schematic drawn up nicely and post a PDF on my website content section.  Website, oh yes, there is a new website for my academic life.  I'll still be doing blog posts here, but the website will have all my static content, research, etc.




Awhile back I read an interview with Adam Savage of the popular discovery show Mythbusters.  This interview was mostly getting at how Adam works and the productivity tools he utilizes.  The question/answer that caught my attention was the following:


Q: What's your workspace setup like?

A: I have several desks: One at home, one at work, and one in my own shop. I spend little time at any of them. My workplace is wherever I'm making something, which could be in a field in gold country, or in an abandoned warehouse on a military base.

The part of the statement in bold is what I want to discuss.  Scientists are often viewed as working hard in their lab with test tubes, beakers, and bunson burners (as evidenced by a colleague asking his geoscience intro class to draw a scientist on their first day of class).  This view is really valid for only a small sector of the sciences; as geologists we are often making a workspace in the field on an outcrop of rock, working on a laptop in the office or at a coffee shop, or doing an experiment in the lab. So what is the workspace and how has it changed? 





First: Do people (not just scientists or geologists) view the workspace differently than they did in the 1960's? I think so.  With the advent of mobile computing and being able to walk around with 1000+ PDF files and books on an iPad the office is becoming less and less important.  Until the late 90's the office was the place where all your paper lived, without this support it was impossible to do much work.  Now that this isn't the case, I believe the office is becoming occupied more infrequently and being replaced with the mobile office.  The internet is also making telecommuting easier each year.  While in Houston I could occasionally see updates to spacecraft flight software coming into the repository from a colleague who programed at a Starbucks frequently.   Just a few years ago that was impossible and during the Apollo days out of the question.


Next, can the creative (yes, scientists are creatives that won't admit it) work in a single workspace like an office or lab? While they could this is a severely limiting strategy.  There are several times I've found it useful to go into the shop or lab and tinker with things and setup a laptop and work there.  Sometimes I spend the majority of the week at the desk, but sometimes I'll setup for a paper reading or programming marathon in another building or at a restaurant.  



Why would you want to work somewhere that doesn't have the big monitor and files you enjoy at your desk? Chance encounters.  While working in the traditional office should still be a component of our days, some of the most useful conversations I've had occurred with people in other buildings on campus or at a coffee shop.  

For example: in December of last year I was working in a tea shop near Denver programming an image analysis code (for the laser cave mapper).  While coding away the owner of the shop (Damon) came over to refill my glass and noticed I was writing software on a Mac.  He inquired about what I did, asked if I could answer a Mac question for him, and then from the view of an outsider to the geosciences made a comment that ended up making me think a lot about other applications for this technology.  These kind of chance encounters have happened several times and even ended up in some good professional relationships being formed.


The physics rock star Richard Feynman would have loved this notion of many workspaces I believe.  Feynman loved new ways to look at things and could be looking at a complex problem from a new angle while in the outdoors, at a blackboard, or submerged in a tub of water on hallucinogenic drugs (to see Feynman's unique mind I highly suggest his book Surely You're Joking Mr. Feynman).  


I suppose the biggest point I want to make with these examples and from the quote is that as scientists it's easy to get comfy in our office surrounded by a couple of giant computer screens and full of distractions.  We shouldn't throw that office out, but be sure to go into the lab (even if you're not an experimentalist) and tinker, go into the field and observe connections, or go to a coffee shop and make that a temporary office.  Anywhere can be your workspace and it's enriching to switch between them and look at the same problem with another set of tools and surroundings. 



Sunday, June 10, 2012

Teaching Field Camp - Starry Nights

The geophysics students have given their final presentations and gone home.  I'll be finishing up a couple of posts (mostly waiting on graphics) about their last weeks of work and a few interesting study areas, but for now we will break from geology.  The geologists will be doing geophysics for the next few days (hence I'll still be in Cañon City), but now I'll have slightly more free time to do some photo experiments!

Saturday night another TA rushed in to tell me that the milky way was out and nicely visible.  I grabbed my camera, but sadly the moon was rising and it was hard to get great shots.  The wind was gusty, but a moon shot turned out okay, and we staged a photo with the dining hall, OU vans, and star trails.  Look for more geology posts in the next few days before I depart for my desert loop on the way to Arkansas.



Saturday, June 2, 2012

Teaching Field Camp Week 2 - Ground Penetrating Radar

Week 2 of camp for the geophysics students was at the new University of Oklahoma Bartell Field Camp. Students were split into three groups and each group rotated through three main geophysical methods: gravity, magnetics, and ground penetrating radar (GPR).  I was responsible for the GPR all week, but we'll briefly discuss everything they did and some problems we had along the way.

Monday the students went on an intro field trip to learn about the geology of the area.  First students walked up the road to 'high camp' noting the sediment basement contact (and what we interpret as a large fault breccia) on the way.  When into the granitic basement there are many mafic dikes, some locations even have dikes crosscut by later intrusions.  The students this year really seemed well prepared to tie the geology into their reports and were very careful in noting/interpreting features.  Next we drove to Tunnel Drive, a short hike that exposes lots of basement deformation and some classic fault examples.  There were also a couple fun stops like Skyline Drive where dinosaur footprints have been preserved as trace fossils.  In the picture below we are looking up at the bottom on an impression likely left by a foot of an ankylosaurus.


The next three days the groups rotated through the geophysical methods.  In this post I'm only going to discuss the GPR collection and data.  The gravity data is currently being processed (so expect a post about it early next week) and the magnetics are posing problems.  Our main magnetometer has an internal problem that prevents us from downloading the data collected.  It is being sent back to the factory and the students will collect new data with an older system next week.  There is also a special magnetic surprise I found in an outcrop that I want to discuss in a more detailed post.

Ground penetrating radar is a technique we haven't really used much recently at OU, but I'm hoping to make a come back with it! The system needed lots of tweaking, adjusting parameters, and fiddling with; after that it obtained some really interesting data.  A ground penetrating radar sends a signal into the rock, which is reflected from various objects/interfaces, so data is interpreted similar to seismic data (only at a different time scale).  Seismic waves travel through rock at around 2200km/second while radar waves are much faster at about 0.1m/nanosecond.  GPR is used extensively in archeology to look for near surface targets and to find bodies during criminal investigations (we have in fact used this system over a mass grave before in Norman... but that's another post all together).

The first day we had students experiment with different parameters over a known target (a metal culvert under a road).  While the target isn't necessarily geologic, we know what it is, where it is, and how big it is.  Using this we setup an ideal parameter set to then examine more interesting geologic features.  Other groups during the week also targeted the culvert for practice, then picked more interesting areas to examine.

First I had to patch together some codes to convert the GPR data from the proprietary DT1 format to a more standard SEGY format.  We then worked up some seismic unix command flows to process that data.  The images shown are not migrated and could benefit from migration, spiking deconvolution, etc.

The first image shown is on the high camp road.  There was a culvert near the surface, but below that are other diffractions from some interesting geological structures.  I'll currently not say any more so students can think about what these are.  The second image shows why this tool could be so valuable.  There was little geology at the surface, but according to the data there is a dipping reflector just under our feet.  What could it be? Maybe with a few more trips up there I'll be able to find it in outcrop somewhere.  There were also some diffractions deeper in this image.  While I do have lots of comments about the GPR parameters, setup, etc I don't think it's so important to discuss.  My goal is to show that there is so much beauty in the complexity of what happened here.  The basement rock is very very old (without an extensive literature search we'll say pre-cambrian, which is ~540 Million years ago).

Friday we took the students on another field trip.  Early in the morning I had to take our other TA, Cullen Hogan, to the airport.  He is leaving us for an internship and will be greatly missed in the last week of the course.  After returning from the Colorado Springs airport the students piled in to drive to one of my favorite views in southern Colorado, Spiral Drive in Salida.  On the way to Salida from Cañon City small sedimentary 'hanging basins' can be found in the mountain sides as we drive through a thrust zone between sediment and basement.  Salida lies in the San Lúis Valley, part of the slow Rio Grande Rift.  The view is always amazing and some complex geology is observed on the way.  Below is a panorama overlooking the collegate peaks I took at this location last year (there wasn't as much snow this time).




Sunday, May 27, 2012

Teaching Field Camp Week 1 - Norman, OK

For the next 3.5 weeks I'll be a teaching assistant for the University of Oklahoma geophysics field camp.  The point of the camp is to teach senior geophysics students how field data is collected, processed, interpreted, and applied to the problem.  This is an important capstone class because prior to now students just see geophysical data as equations, numbers, and options in software and on paper.  Now they must hike in the field, observe the geology, collect the data, and finally figure out what it all means.

Week 1 was done in Norman, OK back at the school.  Monday the students listened to lecture on geophysical methods, were introduced to the equipment, and finally were tasked with using differential GPS on the North Oval of campus.  Differential GPS is much more sophisticated than the GPS in your car.  Each unit costs ~$80,000, and one is mounted on a tripod and remains stationary throughout the day.  This station is referred to as the base, and is the most crucial link in any geophysical survey.  The second station is mounted in a backpack and is the rover.  Students walk around with the rover collecting data points, then at the end of the day the base station is used to calibrate the rover data.  We know the base station doesn't move during the day, but it appears to in the data.  This is because GPS locations are highly susceptible to changes in atmospheric humidity, irregularities in the satellite orbits, and a number of other factors.  Without going into more detail, look below at the Excel plot of the oval before and after correction.  Data points are much closer (within centimeters) after correction, and those centimeters make all the difference in some survey environments.  This plot came from one of our students reports that was turned in during the week.

The next objective was to collect a seismic line over a branch of the fault system that slipped during the earthquake sequence of November 2011 in central Oklahoma.  Setting out a seismic line is a long, arduous task, so the students needed a practice day.  We setup a short (~300m) line by the school's duck pond.  Below is a time-lapse video I took of the practice session on Tuesday.


The next two days were collecting the real data in Prague, OK with Friday reserved for processing.  Without going into great detail of how we setup and collected that data I'll say that 72 geophones were deployed every 10m.  Geophones are small seismometers effectively that only measure the motion of the ground in one direction (up and down in this case).  After processing the data we get an 'image' of what's going on underground.  Are the rocks bent (folded), broken (faulted), or otherwise layered/interesting.  We expected to cross the branch of the fault responsible for some of the stronger aftershocks.

Below are some of the processed images from a student.  This is a rough processing and can be improved with more time, but that is beyond the scope of what is expected in the field.  The faults are marked by yellow lines and indicated places were the rock has broken and slipped.  Also notice the folded layers to the left of the section.  More work and interpretation is needed to obtain further geologically useful interpretations.




Expect more posts as we re-group in Cañon City, CO and begin working on gravity, magnetics, and ground penetrating radar.


Wednesday, December 21, 2011

Laser Cave Profiling - The Beginning

Inspired by caving friend Nathan Williams photos of this technique I decided to try to duplicate his results and then write some great software.  The idea is to make profiles of cave tunnels known as cross sections very easily and accurately.  Cross sections are commonly sketched by a cave mapper by eye with a very rough scale.  Sometimes the passage is measured in height and width with a tape.

Here we use a motorized laser level and a DSLR camera to try to construct profiles.  After seeing Nathan's photos I got the laser level from Harbor Freight Tools (~$60) and used my Nikon D40X in a local Arkansas cave.

Today I just did a quick test about 100 ft. into the passage.  Below is a picture looking toward the level with flash so the tunnel profile can be seen.  Then I did a 20 second exposure with the level running and all lights off.  There was a small amount of light from the entrance, but negligible.


I then read the image into python, remove tripod reflections by subtracting the average of the blue and green channels from the red and then inverting the resulting monochrome image.  The result is seen below:

The big thing I need is the software to then produce a set of points that describe the profile so I can implement routines to compute area and make a pseudo 3-D model of the cave by stacking many closely spaced profiles.  I also tested the scale of the image by counting how many pixels wide the level appears and then determined the pixels/cm count to get the size of the tunnel.  This process will be improved and automated as the software develops.

I'm open to suggestions from cavers and numerical methods folks.  I have a contouring algorithm (Moore-Neighbor Tracing) coded, but it doesn't handle the breaks in the profile.  Any ideas on making it continuous and possibly minor smoothing? I plan to build a "T" shape device with 4 dim LEDs to provide a larger scale target.