a selected portfolio

Main menu

Post navigation

A presentation introducing the COCO simulator (www.cocosimulator.org) for chemical engineering students. (here). Most examples shown are from the Koretsky textbook, Engineering and Chemical Thermodynamics.

This is one approach to using Gnuplot 4.6 to create a gif animation from a separate text file
that has one time column and eight data columns. The Gnuplot text file could look like this:

# Gnuplot seven-channel time series animation generator (gif)
# gnuplotscript.txt
# 12/2012
# Assumes a data text file (myfile.dat) with eight columns of data, the first being the time, and the other seven being normalized data
# The data (text) file is assumbed to be named myfile.dat
# The data file must have all preamble infomration deleted so the first row in the file myfile.dat is time series data, not text
unset key
unset ytics
unset xtics
set style data lines
set yrange[-1:11]
set terminal gif size 1000,800 animate delay 2
set output “myanimation.gif”
do for [t=1:1500]{
set xrange[((t/100.)-1):((t/100.)+1)]
plot “myfile.dat” using 1:2 lw 2, “myfile.dat” using 1:3 lw 2, “myfile.dat” using 1:4 lw 2, “myfile.dat” using 1:5 lw 2, “myfile.dat” using 1:6 lw 2, “myfile.dat” using 1:7 lw 2, “myfile.dat” using 1:8 lw 2}

and this file is run by entering the following command in the command line (after using cd to change to the correct directory):

gnuplot gnuplotscript.txt

which will create the file called myanimation.gif in the same directory

This slide show looks at the use of statistical software called Stat-Ease in order to gain insight into direct methanol fuel cell (DMFC) dynamics and optimization. The presentation was made using the Palo Alto theme in Beamer

New publication! Thanks to Dr. Bin Chen of UCSC and the Ames research center, I was able to take part in this exciting supercapacitor research, the result of which was recently published in a special edition of the Journal of Vacuum Science and Technology B. The article can be found here

(1) Use bootcamp to create a partition (just create the partition and then quit bootcamp; don’t let it do anything else)

(2) Insert the linux distro of your choice (download the .iso file and use disk utility to burn it to a dvd) in the dvd drive

(3) Restart the computer while hold the alt key

(4) Choose “Windows” and follow the instructions to install the linux system (the Mac will always identify it as Windows and never Linux)

(5) configure a special file so linux can use the sound card as follows:

$ cd /etc/modprobe.d/

$ sudo gedit alsa-base.conf

when gedit opens the file, write this at the bottom of the file:

options snd-hda-intel model=imac24

(yes, I know you have a mac pro and not an imac, but that’s the expression that will work)

then re-start the computer. I’m running 64-bit Linux Mint now with sound working and two monitors displaying everything well. The only part of the system that isn’t streamlined is that I have to use the “alt startup” everytime I want to boot into linux, whereas I expected it to automatically give me the option. Not too big of a deal. More to come later on the comparisons between Mint and OS X.

4/29/12 Update- after some further tweaks (removing all partitions), my Mac Pro is unable to install OS X, but runs Linux Mint 12 just fine… now a pure Linux Mint machine, which boots directly into Mint without refit, bootcamp, VMware, or anything like that.