Archive for NIST

How to compile CFAST on Mac OS X and Linux

The Consolidated Model of Fire and Smoke Transport (CFAST) model is a two-zone fire model developed by NIST. From the NIST website, you can download the Windows version of CFAST, which includes a graphical user interface frontend (CEdit) for the creation and execution of CFAST cases. However, there are no downloadable CFAST binaries or user interfaces for the Mac and Linux platforms; you must compile CFAST yourself.

This guide will help you compile the CFAST executable on Mac OS X and Linux. This is useful for running CFAST cases on Mac or Linux machines, which is especially useful for scripting CFAST runs for optimization problems or running CFAST on a large number of cases in batch mode.

You will need the Intel Fortran compilers (ifort) and a copy of the CFAST source code from the CFAST Google Code site. You can try to use other free compilers, but I find that the Intel compilers are the most compatible and produce the most optimized (fastest) binaries. Note: there are heavily discounted Intel compilers for students.

To download the CFAST source code, the easiest way is to install subversion on your Mac or Linux machine and issue the following command:

svn co http://cfast.googlecode.com/svn/trunk/ cfast

Once you have the CFAST source code on your machine, you can perform the following steps to compile the CFAST executable.

1. In the cfast/CFAST/ directory, edit the makefile_linux file and make the following changes:

  • Replace ‘radation’ with ‘radiation’; this is a typo
  • Add ‘cyl_conduct.o’, ‘datamodules.o’, and ‘ssHeaders.f’ to the obj_serial section
  • Add the following lines to the Object Dependencies section:
    • cyl_conduct.o : cyl_conduct.f
    • datamodules.o : datamodules.f90
    • ssHeaders.o : ssHeaders.f
  • Add ‘cyl_conduct.f’, ‘datamodules.f90′, and ‘ssHeaders.f’ to the cfast.o line

Note: The corrected makefile can also be downloaded from here.

2. Copy datamodules.f90 from the cfast/CFAST/Include/ directory to the cfast/CFAST/Source/ directory

3. Change to the cfast/CFAST/Source/ directory

4. Run the command ‘ifort -c datamodules.f90′ to compile the datamodules and iofiles modules

5. Finally, run the command ‘make -f ../makefile_linux intel_osx_64’ to build CFAST

5b. If you are running Linux, the command is ‘make -f ../makefile_linux intel_linux’

Using these steps, I was able to build CFAST on an Intel Macbook Pro running 10.6 (Snow Leopard) as well as a Linux machine running CentOS release 5.6 with the 64-bit Intel Fortran Compiler version 12.0.4.184.

With your new CFAST executable file (cfast_osx_intel_64), you can run a CFAST case using the following syntax:

./cfast_osx_intel_64 casename

where casename is the name of your CFAST casename.in file (notice the .in file extension is omitted from the command).
Happy modeling!

Leave a comment »


The Big Move to MA

WPI

Welp, I’ve been accepted to start my M.S. and eventually start my Ph.D. at Worcester Polytechnic Institute this fall! I will be studying fire protection engineering, a continuation of my bachelor’s degree. The school is populated with just under 4,000 students and it is a private engineering school. Not only does this school house one of the top fire protection engineering programs in the US, but the faculty and their work align closely with my values and passions in life.

The big move will look something like this in 8 weeks:


Some cool info about the school includes the fact that Robert Goddard went there and graduated in 1908 – he was the gradnfather of modern rocketry with the first liquid fueled rocket. Also, the fire protection engineering department has about 150 masters of science students and 4 (!) doctoral students. This is quite the opportunity I smell.

What I did during the summer of 2008

So far this summer I’m being funded by UHD as a last request to make a catalog of fire models for various textbooks. The work is very refreshing and I love to work when I learn much more than I expected. :) Another cool side effect of this work is that I can include the FDS models and example writeups on my website, free for anyone else in the world to see and learn from. The technical writeup is located here and it gets updated automatically anytime I change a single word in there. Eventually it will have links to FDS files for FDS users and students around the world to download and use on their own – I love technology.

FDS MESH Size Calculator tool

Finally, to finish off a nice post about fire protection engineering and FDS: I updated my FDS Mesh Size calculator on my other website to include some awesome and never-before-done functionality! It now takes in x, y, and z dimensions and an expected heat release rate and gives the user three MESH lines (coarse, moderate, and fine) to guide them on making an FDS file that has an adequately resolved MESH.

The tool can be found here on my FDS/sciency website and the nice folks at NIST gave me a link on their third-party tools page of the FDS website: http://fire.nist.gov/fds/thirdparty.html

—–

I know I post out-there stuff like this on my blog here sometimes, but this is what is on my mind and taking up my mental cycles and daily days. Jump in and read the linked pages or play with the tools of my creation!

Leave a comment »


Drop drop drop

It’s raining pretty hard here, the rain that lets you know that the earth is still here. I have been thinking a lot lately. Even the past two days. Which I haven’t been working much in the past two days, or crossing off things from my GTD to do lists. Just being.

And in that I find confusion, like the mind wasn’t made to think without a pen and paper. It just walks repeatedly in circles.

Texas

University of Maryland. Maybe not. Mountains in Virginia. Culture in DC. My favorite research firm down the street. Maybe not. Damnit.

The other university in Massachusetts. I realize that I need mountains and a motorcycle season and a season of deep relationships and culture. That I am not the person who thrives on just one branch of life, but a life of Renaissance. All of the arts come together, the sciences. Traditional and new age. What’s next then?

An internship at a place like Google? Teaching at UHD for a few years? Work at an actual job? Who knows. Questions bring more questions, and that’s usually a comforting thing for me. Except when it’s real.

A draft of wind just blew by from the Northeast direction of the water-soaked sky. And it smelled deeply of endearment. Of where I should be. Where Every Part of Me Wants To Be. And the next breath smells of the past. The air is cool and full in my lungs; they can think too, you know.

My lungs are full, but nervously anticipating what is to come. They know. The heart knows. But does the world know?

“We need to find a balance.” The phrase of a lifetime.

Leave a comment »