Code, Notes

Convert Movie or Animation to Animated Gif

mkdir frames ffmpeg -i input -vf scale=320:-1:flags=lanczos,fps=10 frames/ffout%03d.png convert -loop 0 frames/ffout*.png -fuzz 20% -layers OptimizePlus output.gif Thanks to: http://superuser.com/questions/556029/how-do-i-convert-a-video-to-gif-using-ffmpeg-with-reasonable-quality

Notes

Unbounded Kinetic Energy in Forward-Euler Inviscid Flows

Observation When using a forward-Euler method for the time integration of the momentum equation for an inviscid-flow, it appears that the kinetic energy of the flow grows unbounded in time, regardless of the timestep size. Problem Statement Estimate the change in total kinetic energy when using forward-Euler to integrate the Euler momentum equations in a periodic box. Approach To …

Notes

Some Regex Notes

I happened to be dealing with a bunch of mallocs that look like this double* f =  (double*)malloc(sizeof(double)*nx*ny*nz); double* g = (double*)malloc(sizeof(double)*nx); double* h = (double*)malloc(sizeof(double)*nx*nz); I wanted to convert all of those those to use new, i.e. double* f = new double[nx*ny*nz] Using regex made all this possible search for: \(double\*\)malloc\(sizeof\(double\)\*(.*)\) replace with: new …

Notes

How to Sync Zotero with a Box Sync Enterprise Account

So the University of Utah provides us with 50 GB of storage with Box Sync. Box Sync supports webdav natively. On another note I use Zotero for my citation management. The great thing about Zotero is that it allows your to store your library on your own webdav. Combining the above I am able to …

Peer Reviewed, Publications

A Class of Exact Solutions for Population Balances with Arbitrary Internal Coordinates

Saad, T., Abboud, A. W., Smith, S. T., & Ring, T. A. (2015). A class of exact solutions for population balances with arbitrary internal coordinates. AIChE Journal, published online first. http://doi.org/10.1002/aic.14739
Peer Reviewed, Publications

Some Thoughts on the Pressure Integration Requirements of the Navier-Stokes Equations

Saad, T., & Majdalani, J. (2012). Some thoughts on the pressure integration requirements of the Navier–Stokes equations. Fluid Dynamics Research, 44(6), 065508. http://doi.org/10.1088/0169-5983/44/6/065508
Peer Reviewed, Publications

Verification and Validation of the Maximum Entropy Method for Reconstructing Neutron Flux, with MCNP5, Attila-7.1.0 and the GODIVA Experiment

Crawford, D. S., Saad, T., & Ring, T. A. (2013). Verification and validation of the maximum entropy method for reconstructing neutron flux, with MCNP5, Attila-7.1. 0 and the GODIVA experiment. Annals of Nuclear Energy, 53, 188-191. (DOI: 10.1016/j.anucene.2012.09.010).