Saturday 09 July 2011

Inductor

I bought an inductor today at Pusterla and decided to measure its inductance. It brought back memories of the second year physics lab course. Having access to an oscilloscope again is awesome.

R = 988Ω and C = 102.5 nF as measured by a multimeter.
A least squares fit gives L = 92 μH and RL = 2.8 Ω.
Yes I know, there are no error bars. I am lazy.

Saturday 23 April 2011

Quick test of snappy compression

The snapshots from cosmological simulations can get quite large. It's easy to accumulate several terabytes with a 10243 simulation. It would be useful to compress the output if the running time is not significantly affected. This might be a good job for snappy compression.

As a quick test, I compressed a single shard from a small simulation:
SizeTime
original98 MB
snappy32MB0.2s
gzip9.6MB3.3s
bzip25.6MB28s

In this case, snappy was 17 times faster than gzip but the result was 3.3 times larger. The snappy compression rate is 490 MB/s which is almost twice as large as the value claimed on their site (but of course this strongly depends on the hardware).

Saturday 01 January 2011

Saturday 04 December 2010

A New Corrective Scheme for SPH

Timothy Stranex and Spencer Wheaton, A New Corrective Scheme for SPH, Computer Methods in Applied Mechanics and Engineering 200 (2011) 392-402.

"A new corrective scheme for Smoothed Particle Hydrodynamics (SPH) is introduced which greatly improves its accuracy, particularly in regions of particle deficiency or when particles are irregularly distributed. The scheme is based on the Taylor expansion of the SPH kernel estimates. The corrective equations are derived up to the second derivative in an arbitrary number of dimensions. Test applications for the new scheme include the interpolation of functions and the numerical solution of the heat equation in one and two dimensions."

Rigi, Geneva, Paris

From Christopher's Visit

Friday 16 July 2010