Tuesday, 26 August 2014

Post post doc

Continuing what has become a quarterly theme here is summer's post:

One reason for a drop in blogging productivity is that I have been severely distracted by that thing that many postdocs are -- career. It's a pretty neat job being a postdoc. Like a PhD you've got more time to dig deep into a topic but you're more on top of your skills. It's flexible, it's a great way to get work abroad, you can wear a T-shirt to work and so on. It's a nice job.

Eventually you do start to want a permanent position. Now in academia these are hard to get and there's very little geographic control. Many have written long and angrily about this, that's not what I want to get into. It is what it is. From a practical point of view it as an excellent time to think about whether you really want that academic job -- do you want to stick of twist? In my case I've gone for twist.

This autumn I'll be making the move from statistical physics to statistical, er, statistics. My physics work was gradually slipping towards data science and I can't resist any longer (it's the sexiest job of the 21st century don't you know!). Actually I want to post about that physics/data work at some point but need to wait for reviews etc.

I'm really excited about my new position and all the new things I'll be learning. If possible I'd like to keep this blog going, I think there's a decent cross over with what I'll be doing next. The themes might switch more towards data than soft matter but statistics are statistics. It'll be a little sad leaving physics but I'll always see the world through a stat-mech lens, which is no bad thing for anyone in my opinion.

Thursday, 15 May 2014

Journals for e-readers

One thing that makes me cross is that despite the terrifying amount of money our library pays to buy back our research in the form of journals, they're still not terribly easy to read. I've got an e-reader now and I'd like to read things on that, just the sort of value-added that the publishers could do. Unfortunately everything is still just a pdf file only to be printed on A4.

There are some utilities for coping with this but it's not really ideal.

I wanted to see how tough it is. So I tried to convert my last paper into something that would look nicer on an e-reader (in my case a kindle). The paper was written for an APS journal using the REVTeX 4.1 package. This makes it very easy to write papers formatted for APS (and possibly some others as well). The answer is that this was the best I could get it using REVTeX.

Ashton2014_ereader.pdf
which originally looked like this:
http://arxiv.org/pdf/1401.2064v1.pdf
or here if you have access

It's actually not too bad! The abstract's gone a little wrong and the font is not strong enough, but it's not a disaster. It proves to me that the guys who make REVTeX could quite easily make a beautiful e-reader mode full of useful options. I made the citations clickable links for example.

To get this working I simply replaced this line
\documentclass[aps, prl, twocolumn,superscriptaddress,amsmath,amssymb,floatfix]{revtex4-1}


with these lines
\documentclass[12pt,a5paper,superscriptaddress,amsmath,amssymb,floatfix]{revtex4-1}

\usepackage[papersize={4.5in,6in},margin=0.5cm]{geometry}

Without the second one it doesn't seem to work very well. If you've got a better (and just as easy method) then leave a comment. I could have made it better by dropping REVTeX and customising every detail. Frankly that was proving a lot of work and that's not what I believe LaTeX should be about.

From now on I'll be uploading an e-reader version as well as an A4 version for my papers.

UPDATE:
Royal Society of Chemistry, with a bit of fiddling looks fantastic on the kindle:
Ashton2013_ereader.pdf
Had to dig about a bit to get this one-column (there's a \twocolumn[ half way down the page in the template that needs removing). Fiddled with the margins and widths a lot. See the .tex file here. Might go back to the APS paper and reduce the paper size even more. This seems to work quite nicely:

\usepackage[papersize={9cm,12cm},margin=0.5cm]{geometry}

UPDATE2:

Got the RSC send-to-kindle button working and this just sends the two-column pdf. I guess the best hope is converting the html version then.

FINAL UPDATE:
I've found the best way I think now. It's to skip pdf altogether and go via html. Using htlatex I compiled the same original latex file into this webpage:
http://people.bath.ac.uk/da246/papers/Ashton2014/
It's a bit broken here and there (you must use revtex4 and not revtex4-1, one day I'll go back through and work out all the settings needed to properly convert a revtex made file. Mostly it works.

Next step was to download the KindleGen utility and use that to convert the html to a .mobi file format. This is what I then put onto my kindle. If you download this and put it onto your kindle
http://people.bath.ac.uk/da246/papers/Ashton2014/Ashton2014.mobi
you'll see that this is basically perfect for what you want from a Kindle version of a paper. For sure some things need fixing, for example the equations are a bit small. I'll work all of that out and make a separate post.

The bottom line for this whole thing is that if I, a mostly lazy man, can get half way decent conversions of my LaTeX files onto an e-reader in an evening, then the journals could easily do this.

Friday, 14 June 2013

Networks of networks

This week the Bath centre for "Networks and Collective Behaviour", of which I'm a member but by no means an official spokesman, had its official launch event. A fun two day meeting on "Uncertainty in interaction networks". For people such as myself who are in to statistical mechanics and the collective behaviour of systems with many parts, networks are a natural extension to what we do. It's a wonderfully interdisciplinary field with lots of cool problems to solve. Besides, networks is where I started out.

So, due to all this, my first few posts on my return from paternity leave might be networks based. From this week's meeting one thing that got me interested was people who are turning their attention to "multiplex networks". This is a word that means lots of things to me so to be more clear we're talking about separate networks that interact (this interaction is key). Usually it is assumed it is the same set of nodes with different sets of edges representing different relationships between them.

Cartoon of a multiplex network with two different types of link


An example given at the meeting was the power grid which is interacts with the water supply network and other services. Another example could be your social network where you distinguish between work colleagues and friends or family. Transport networks (for example bus and tube in London) will clearly interact in their function even though they are separate networks. 

Ginestra Bianconi from Queen Mary's gave a nice talk, in which she cited this PNAS on a network of computer gamers in a massively multiplayer online game. Data can be obtained for different types of interaction. Things such as friendship, trade, communication (positive) or enmity and attacks (negative). The authors claim that in order to properly understand the social structure one must consider all these different types on interaction. Among the things they found was that positive relationships tended to be clustered exponential networks whereas negative networks were not clustered and had powerlaw degree distributions. This means that a small number of players have a large number of negative connections. Also, different players had important roles in different networks. It certainly seems that with this extra layer of data one is in a better position to fully understand the network.

Ginestra's own work (in this EPL) was concerned with political affiliation networks. This imagined two networks representing social connections in two political parties. Nodes can be active in both networks but will tend to become inactive in the opposite network to their current opinion closer to an election. There is a stat-mech model where "tend to" is represented by a field (call it temperature) that couples to how happy a node is (call it energy). I'm going to come back to this theme.

I think multiplex networks are going to be really fun to work with. Seeing as networks are a useful simplification of reality multiplex networks seem to represent the next level of detail.


Wednesday, 30 January 2013

Back in the summer

I realise things have gone pretty quiet around here. It turns out having a baby takes away pretty much any spare time you thought you had.

I still have big plans for this blog and as the number of times I'm wide awake at 3am decreases I can see the light at the end of the sleep deprived tunnel. So I'm planning to have a quiet relaunch in the summer when I'll hopefully get some regularity back.

See you soon.

Monday, 7 May 2012

Journal Club: A New Blog

I've just started a new blog www.scmjournalclub.org. It's definitely in what you'd call the beta phase right now. I will certainly be changing the layout and gradually adding more permanent content over the next few weeks.

Contributions welcome to submissions@scmjournalclub.org.

While I do sometimes get a bit technical, Kinetically Constrained is hopefully of interest to people inside and outside of the field. The idea for the journal club is that it is aimed at people working in the area of soft matter and statistical mechanics. In particular I want it to be useful for postgraduate students who would find it helpful understanding papers they may have found a bit impenetrable otherwise.

How it will all work will hopefully evolve. I hope one day enough people check it out that the following scenario happens. A PG student presents a paper as best they can that they might be having trouble understanding. A comment thread follows and the problems get sorted out. Everyone wins.

I also suspect that hundreds of journal clubs happen each week in different universities. While I understand people might not want this to be public, for those that don't mind they could put their presentation on SCM journal club where it can benefit even more people.

To kick things off I've started with a recent paper on the arXiv by AndrĂ©s Santos on one of my favourite topics – hard spheres.
Brief Summary
In liquid-state theory the hard sphere equation of state is of particular importance because it is a fantastic reference system for a whole host of molecular and in particular colloidal liquids. The hard sphere equation of state (EoS) tells you what pressure you need to compress a your spheres to get a given density. With an analytical form for the EoS one can calculate any thermodynamic property one desires.
Percus-Yevick (PY) is a way to close to the Ornstein-Zernicke (OZ) equation – an exact relation between correlation functions – and is usually solved by either the compressibility route or the virial route. You’re basically choosing how your approximation enters. Here Santos has taken a different route, following the chemical potential, and it gives a slightly different closure to OZ.
Carnahan-Starling is an incredibly simple EoS for hard spheres which is in common use (fluid phase). It can be written as a 1/3-2/3 mix of the compressibility and virial PY routes. In a similar way Santos writes a 2/5-3/5 mix of compressibility and chemical potential routes and gets a similarly simple expression – which is ever-so-slightly better than Carnahan-Starling.
I'm more than happy to take contributions. I think it's nicer if people say who they are but I'll hold back the name if that's the barrier to submitting (provided it's not an anonymous destruction of a rival's paper). You can submit via submissions@scmjournalclub.org. For interested regulars I can look into direct posting via blogger.

Wednesday, 25 April 2012

The Renormalisation Group

A new video which more or less completes the critical phenomena series. Jump straight to it if you want to skip the background.

One of my favourite topics is the critical point. I've posted many times on it, so to keep this short you can go back here for a summary. In brief, we're looking at a small point on the phase diagram where two phases begin to look the same. The correlation length diverges and all hell breaks loose. Well, lots of things diverge. At the critical point all length scales are equivalent and, perhaps most remarkably, microscopic details become almost irrelevant. Different materials fit into a small number of universality classes that share broad properties such as symmetry or dimensionality.

For a long time this universal nature was known about but it couldn't be said for sure if it was a truly universal thing, or just a really good approximation. Then along came the renormalisation group (RG), which gave a strong theoretical basis to critical phenomena and sorted everything out.

The renormalisation group is usually at the back end of an advanced statistical mechanics course, and that is not the level I'm going for with this blog. However, when making the videos for the demonstration of scale invariance and universality it became apparent that, even just making the pictures for these videos, I had to use RG. Even if I didn't realise it.

First I'll try to explain schematically what RG aims to do. Then I'll show how this is similar to how I make my pictures, and finally we'll get to a demonstration of RG flow at the end. I'll try not to dumb it down too much but I also want to be as quick as possible.

Renormalisation group

Let's look at how we do this with the Ising model. A simple model for a magnet where spins, sigma, (magnetic dipoles) can point up or down, $latex \sigma=\pm 1$, and like to align with their neighbours through a coupling constant, $latex J$. The energy is a sum over nearest neighbour pairs

$latex \displaystyle E=\sum_{ij} -J \sigma_i \sigma_j$

Where RG enters is to say that, if the physics is the same on all length scales, then we should be able to able to rescale our problem, to cast it on a different length scale, and get back the same thing. In real-space RG this is done by blocking. We bunch a group of our spins up together and form a new super spin that takes on the majority value of its constituents. It's as though the spins in the block get together and vote on how they want to be represented, and then we can deal with them as one.

Here's what it looks like. Take an Ising model configuration
Block them together

And vote

We're left with a pixelated version of the first picture. Now here I will slightly deviate from RG as standard. The next step is to ask, if these super spins were a standalone Ising model, what temperature would they have? If our initial system is right on the critical point then the renormalised (blocked) system should have the same temperature because it should look exactly the same – scale invariance. If you're even slightly off then the apparent temperature, let's call it $latex T_{RG}$, will flow away from the critical point towards a fixed point.

These fixed points are the ferromagnet (all spins the same, $latex T_{RG}=0$) or the paramagnet (completely random, $latex T_{RG} \rightarrow \infty$) as shown below.


Normally RG is done in terms of coupling constants rather than temperature. However, I think in our case temperature is more intuitive.

Zooming out

By now the link between RG and the pictures I make may already be clear. The configurations I will show below are made of something like $latex 10^{10}$ spins. Clearly I can't make a 10 Giga pixel jpeg so I have to compress the data. In fact the way I do it is an almost identical blocking process. Spins are bundled into $latex b \times b$ blocks and I use a contrasting function (a fairly sharp tanh) that is not far away at all from majority rule as described above.

If we start by zooming in to a 768x768 subsection then each pixel is precisely one spin. As we zoom out we eventually need to start blocking spins together. In the video below there are three systems: one ever-so-slightly below $latex T_c$, one ever-so-slightly above $latex T_c$ and one right on the money. At maximum zoom they all look pretty much the same. If you had to guess their temperatures you'd say they're all critical.

As we start to zoom out we can see structure on  length scales, and the apparent temperatures start to change, in fact they flow towards the fixed point phases. Video below, recommend you switch on HD and watch it full screen.



So there it is. RG in action. If you're not precisely on the critical point then you will eventually find a length scale where you clearly have a ferromagnet or a paramagnet. At the critical point itself you can zoom out forever and it will always look the same. The renormalisation group is a really difficult subject, but I hope this visualisation can at least give a feeling for what's going on, even if the mathematical detail is a bit more challenging.



Wednesday, 18 April 2012

The thermodynamic limit

This post has been at the back of mind for a while and written in small, most likely disjoint pieces. I wanted to think about connecting some of the more formal side of statistical mechanics to our everyday intuitions. It's probably a bit half baked but this is a blog not a journal so I'll just write a follow-up if I think of anything.

I'm often accused of living in a rather idealised world called the thermodynamic limit.

This is completely true.

To see why this is a good thing or a bad thing I should probably say something about what I think it is. I'll start at the colloquial end and work up, first let's say that in the thermodynamic limit everything is in equilibrium.

Nothing ever changes around here

If you put enough stuff in a jar, keep it sealed in a room that stays the same temperature, and give it enough time then it will eventually end up in its equilibrium state. One could argue that the real equilibrium is the grey mush at the end of the universe so clearly I'm going for some time scale that's enough to let everything in the jar settle down but not so much that I get bored waiting for it. For atoms and molecules this usually gives us a window between roughly a picosecond (10^-12 seconds) and lets say a 100 seconds (I get bored pretty easily). Once it is in equilibrium the contents of the jar will stay in the same state forever – or until it gets kicked over. The point is that in equilibrium nothing changes.

Or does it? To our eyes we may see no change, but the atoms inside the jar will be wriggling furiously, perhaps even diffusing over great distances. How could such great change on the small scale be consistent with eternal boredom on the macroscopic length scale? The answer has two parts. Firstly, the atoms that make up the world are all frighteningly similar. So if one diffuses away it will quickly be replaced by an indistinguishable substitute. The second part motivates the "enough stuff" part of the previous paragraph.

Listen to a group of people talking and the conversation will ebb and flow, and sometimes go completely quiet. Sit in a busy cafe and all you can hear is general noise. A sort of hubbub that you can easily identify as conversation, maybe you can even get a feel for the mood, but you can't tell what anyone is saying. In the thermodynamic limit there are so many atoms that all we can see is a sort of average behaviour. We can tell what sort of state it is (a liquid, a solid, a magnet – the mood) but the individuals are lost.

So as we lumber towards a stricter definition of the thermodynamic limit we should think about what we mean by a state. I've talked about this before. In statistical mechanics there is a huge difference between a 'state' and a 'configuration'. By configuration we mean the exact position (and sometimes velocity) of every particle in the jar. We're doing this classically so we won't worry about uncertainty. A state, in the stat-mech sense, is an ensemble of configurations that share some macroscopic property. For example their density, or magnetisation, or crystal structure.

To be the equilibrium state, the corresponding configurations must satisfy at least one of two criteria (ideally both). Firstly they should have a low energy compared to the other configurations. If particles attract they should be close, if dipoles point the same way they should try to do that. This is intuitive, balls roll down hill, systems like to lower their potential energy. Secondly there should be a lot of them. An awful lot of them. This is often referred to as entropy, but really I'm just saying you need to buy a lot of tickets to guarantee winning a prize.

A bit more mathematical

This combination of potential energy, U, and entropy, S, is known as the free energy. You can write it down as:
High temperatures, T, favour high entropy (lots of configurations), low temperatures favour low energy. In statistical mechanics, unlike normal mechanics, systems lower their free energy and not just their energy. The state with the lowest free energy is the equilibrium state. No exception.

The aim with statistical mechanics is to write down equations that take interactions on the individual particle level and relate this to the probability of finding the particles in a particular configuration. In the mathematical sense the final step is known as "taking the thermodynamic limit", and this means taking the number of particles in your equation, N, to infinity.

It is these infinities that make states formally stable, and give us phase transitions. Infinitesimal changes in conditions, such as temperature, can lead to dramatic changes to the equilibrium state. Of course there are not infinity particles in the real world. However, with roughly 10^24 water molecules in my cup of tea it's a pretty good approximation.

To be in the thermodynamic limit, therefore, we an infinite amount of stuff sitting for an infinite amount of time. The system must be able to explore all configurations to decide which state to settle on. You can see where we're going to run into problems.

Back to the real world

Getting back to the start of this post, why are my accusers being so accusatory? Most likely because the real world, for the most part, is massively out of equilibrium. From stars and galaxies, down to swimming bacteria. Then there are materials, such as glasses, where the relaxation time has become so long that the equilibrium state can't be reached in times longer than the age of the universe. Or some say forever – but I'll come back to ergodicity at a later date.

In colloid land things get quite interesting. As mentioned in a previous post, colloids that are big enough to easily see take about a second to move around enough to start equilibrating. That's very close to me getting bored, so if it's a dense system or there are strong attractions one can expect colloids to quickly fall out of equilibrium.

The theoretical framework for life out of equilibrium is hugely more complicated that at equilibrium. Even quantities such as temperature start to lose their meaning in the strictest sense. In fact, while people are working hard and no doubt making progress, it's safe to say that it will never be as elegant – or let's say as easy – as what we have in the thermodynamic limit.

All is not lost

So this means everything we study in equilibrium is useless? It clearly doesn't exist. Well it's true nothing in the universe meets the strict definition of infinite time and infinite stuff, but in reality it's usually alright to have a lot of stuff and enough time. In fact we regularly study systems with only hundreds of particles and correctly predict the phase behaviour. It's usually the enough time part that is the problem.

Knowing what the equilibrium state should be is a bit like knowing the destination but not the journey. In many many cases this is enough, atoms can rearrange themselves so quickly that it doesn't really matter how they get where they're going. Of course in many cases that we worry about today we need to know both where the system is going, and how it will get there. It could be that on the way to the true equilibrium state we get stuck in a state with low, but not the lowest, free energy. A bit like settling on your favourite restaurant before going to the end of the street and trying them all. In this case we can maybe plot a different route through the phase diagram with controls such as pressure and temperature.

Increasingly these pathways to self-assembly are the focus for many in the statistical mechanics community. We want to design new materials with exotic thermodynamic ground states (equilibrium states), so it is really important to know what will happen in the thermodynamic limit – we will always need phase diagrams. But with colloids, they're pretty impatient and will easily settle for the wrong state, so we also need to think carefully about how we will get to the ground state. It's an exciting time right now because experimentally we're even able to mess around with the fundamental interactions between particles in real time, numbers that we usually take as constants can suddenly be changed. it really is possible to control every stage of the assembly process from the start all the way to the end.

Friday, 13 April 2012

Less ill

My spritely return has been a bit slower than I thought. However, thanks to the lovely people who work in the Dutch medical system I'm pretty much back.

Long winded post on the thermodynamic limit coming very shortly, then a follow up on ergodicity that I've been toying with. I've also got a new spin on the criticality videos that demonstrates the renormalisation group in action – I'm really really pleased with this video. Oh, and I'm at a conference next week so I'll round up some of the nice talks. There are a couple on critical Casimir forces so I may be compelled to put something down about that.

So lots coming up.

Tuesday, 6 March 2012

been ill

Apologies for yet another reader-losing break in posts. I've been ill. Nothing terrible, but I'm not getting as far down my priority list as I might otherwise.

Hopefully a spritely return in the next few weeks.

Saturday, 21 January 2012

Just hurry up and sit down!

As a semi frequent flyer, and incredibly impatient stand-behinderer I couldn't resist linking to this - Time needed to board an airplane: A power law and the structure behind it from a Norwegian group, Vidar Frette and Per Hemmer.

Boarding strategy is of great importance to airlines, where the turn around time of planes – especially short haul – can make a real dent in profits. For the authors of this paper, however, it seems they just think it's a neat model to test out 1D problems where the particles are distinguishable, rather than the more common indistinguishable particles. In a traffic model the cars are usually identical, whereas here the passengers have a specific seat booking. Statistically this makes a difference.

Of course many people do look at specific strategies. For example here, it seems that it's difficult to think up a strategy that beats random loading. One would think that loading back-to-front would be better but this is not the case. A quick google search finds this nice page from Menkes van den Briel. There you can see videos of all the different strategies.

Unfortunately the best strategy seems to involve seating people in order of window/middle/aisle. Not great if you're sitting next to your kids.

All of which did remind me that it is much quicker boarding when you don't have seat bookings. When I fly to England using a certain orange-themed airline, that doesn't book seats, there's an initial mĂªlĂ©e followed by reasonably rapid sitting down. On a certain royal blue-themed airline it takes forever for a plane half the size to get sat down.

My suggestion is that I should be allowed to starting poking, with increasing frequency and verbal abuse, anyone that I deem to be taking too long to put their bag away.

Sunday, 15 January 2012

Clustering in sea-ice floes

I started writing this post as a long winded account of the difference between equilibrium and non-equilibrium statistical mechanics. It turns out that that is hard to discuss without waffling on, so instead I will just talk about an interesting paper from the world out of equilibrium - which is most of the real world.

I've been walking around with this interesting paper, "Molecular-dynamics simulation of clustering processes in sea-ice floes" by Agnieszka Herman, in my bag since November. It was picked up in the spotlight section, in Phys. Rev. E (loosely the stat-mech/complexity section). My attention was grabbed by the idea that simple ideas in granular gases could hold sway in the icy seas of the Arctic.

Marginal ice zone

Roughly speaking, it's always icy at the top of the earth and then as you go south it turns into ocean. Around the transition between icy and not icy (only the best technical explanations for my readers) is the so called marginal ice zone (MIZ). This is where bits of ice break away from the main ice pack and float around in the sea. Understanding how this ice moves around, and the effect of external forcing, is important if we're to best understand the impact of global climate change.

The ice-floes studied in this paper are in an intermediate region between densely packed and very low density. The sizes of the ice fragments are roughly distributed with a power-law tail and they float about and hit each other inelastically. It is here that one can make the link to something closer to my own field, it is a 2D granular gas.

Granular gases

In the world of the small everything is constantly being battered by random thermal noise. It's so random that it, in fact, becomes rather predictable and Boltzmann distributed. In the world of a bit bigger, this thermal noise doesn't really affect the individual particles any more and we're now dealing with grains. I've talked about this before in the context of colloids – the last bastion of thermodynamics before everything goes granular.

In a granular context the ice fragments are particles that move ballistically in between collisions, and when they collide energy is lost. This system, of dissipative colliding grains is known to have interesting dynamics including the clustering of particles and other complicated correlations.

The really nice thing about this paper is that what Agnieszka Herman has done is to simulate such a granular gas, but adding in realistic numbers for all sorts of effects such as friction, wind, currents, restitution coefficient (how inelastic it is) and to see if it can reproduce what is observed in the oceans. This can not have been easy to set up!

Comparing to real life

The image below is the sort of sea ice clustering that is seen in the MIZ. One sees that the smaller floes tend to accumulate on one side of the larger floes.

This is also seen in the simulations results. This is because, as well as losing energy in collisions, the floes are being driven by wind and currents. The larger floes catch up with the smaller ones pushing them along for a while until they fall off. The colour bar shows the velocities of the different floes.
At higher densities – more collisions – you can still see the gaps behind the large floes, although the distribution of velocities is now narrower.
I don't know how rigid this system is, it'd be interesting to know if there's a breakout point where the ice floes can suddenly escape. It's really neat to think that you can connect such different systems, not to mention such different scales, and still be able to say something sensible.

Big thanks to Agnieszka for providing the colour images. Images, copyright APS, are reproduced with permission from the paper Phys. Rev. E 84, 056104 (2011).

Thursday, 22 December 2011

Networks in Nature Physics

For those with access, looks like Nature Physics has a complexity issue. With articles by BarabĂ¡si and Newman and the likes, it looks like it has a solid networks bent.

There's a paper on community structure by my favourite physicist, Mark Newman, that I'm looking forward to reading.

Enjoy!

Tuesday, 15 November 2011

We all do economics

The very interesting blog, Mind Hacks, has a post on a theory of a bipolar economy.
A 1935 Psychological Review article proposed a ‘manic-depressive psychoses’ theory of economic highs and lows based on the idea that the market has a form of monetary bipolar disorder.
I find it quite interesting how people like to reframe the problem of economic crashes in their own subject. In psychology it seems perfectly natural to ascribe the behaviour to individual human behaviour. As a physicist I'm completely convinced that it's a collective effect that arises from many relatively simple individuals, trying to win a game, interacting in a highly complex system. Of course one could possibly say the same about the brain itself.

I wonder if biochemists have some hormone explanation and neuroscientists some neurotransmitter reason. Perhaps all these perspectives are equally right (or wrong) – I guess the only thing for sure is that we don't really know!

Monday, 7 November 2011

A phase diagram in a jar

One of the things I love about colloids is just how visual they are. Be it watching them jiggling around under a confocal microscope, or the beautiful TEM images of crystal structures, I always find them quite inspirational, or at least instructional, for better understanding statistical mechanics.

Sedimentation

Just to prove I'm on the cutting edge of science, I recently discovered another neat example from 1993. At the liquid matter conference in Vienna Roberto Piazza gave a talk titled "The unbearable heaviness of colloids". As a side note there was a distinct lack of playful titles, maybe people were too nervous at such a big meeting. Anyway, the talk was about sedimentation of colloids.

Sedimentation is something I don't usually like to think about because gravity, as any particle physicist will agree, is a massive pain in the arse. Never-the-less, my experimental colleagues are somewhat stuck with it (well, most of them). As is often the way it turns out you can turn this into a big advantage. What Piazza did, and then others later, was to use the sedimentation profile of a colloidal suspension to get the full equation of state, in fact the full phase diagram, from a single sample.


The nicest example is from Paul Chaikin's lab (now in NYU, then in Princeton), where they used a colloidal suspension that was really close to hard spheres. They mixed a bunch of these tiny snooker balls in suspension, and then let it settle for three months. What they got is this lovely sample, with crystal at the bottom (hence the strange scattering of the light), and then a dense liquid which eventually becomes a low density gas at the top. It's as though the whole phase diagram is laid out before you.

Equation of State

This is a very beautiful illustration, but it's not the best bit. In the same way that atmospheric pressure is due to the weight of the air above you, if you can weigh the colloids above a particular point in the sample then you can calculate the pressure at that point. This is exactly what they did. There are many different ways to measure the density of colloids at a particular height, if you can do it accurately enough (which was the big breakthrough in Piazza's 1993 paper) then you can calculate the density as a function of pressure. In a system where temperature plays no role such as this, this is exactly the equation of state (EoS).
When compared with theoretical calculations for hard spheres the experimental data lies perfectly on the theory curves, complete with first order phase transition where it crystallises. This is really a lovely thing. EoSs are very sensitive to exact details, so in the same way that in my group we compare our simulation of the EoS to check our code, this showed very accurately that their colloids really were hard spheres.

So I think this is all very nice. I nicked the above images from Paul Chaikin's website, I recommend having a poke around, there's loads of great stuff (you really need to see the m&ms).


Friday, 4 November 2011

Back from the dead

Can't remember the number of times I've said I've been away because I've been busy, but this time it'll be different. Well it probably won't be different, it looks like I'm destined to be an inconsistent blogger!

It's now been three months since I arrived in the Netherlands for my new job and I'm enjoying it a lot here. The pace is much faster in the group than I'm used to but I'm enjoying the buzz of lots of interesting things getting done. Now I'm more settled I'm hoping for a spectacular return to blogging - there's certainly enough to talk about here!

The Dutch are good at science

In general the Netherlands has a fantastic history in the sciences. I was watching Carl Sagan's Cosmos the other day (best telly ever made), he loved the Netherlands it would seem. There's a whole episode where people dress up in pointy hats and reenact bits from Dutch scientific history.


I'm no historian so there's no point making a huge list. Some notable greats though include Cristiaan Huygens, famous for the wave theory of light, he worked on telescopes and even the pendulum clock. The microscope was invented in the Netherlands, allowing the Antonie van Leeuwenhoek to discover "a universe in a drop of water".

What about statistical mechanics?

Closer to the focus of this blog, the name Johannes van der Waals is never far away. His theories allowed us to begin to understand why matter undergoes phase transitions.Two names that are important for us here in Utrecht are Peter Debye and Leonard Ornstein.

Peter Debye is another one of those names that just seems to pop up all the time. It's littered through my thesis because of his work on phonons. Debye was professor at the university of Utrecht for a very short time. I believe the university didn't deliver on his startup money so he left. The picture is from our coffee room in the Debye Institute.

As well as working in the Debye Institute I also work in the Ornstein Lab, after Leonard Ornstein. For me his name is most famous from the Ornstein-Zernike relation in liquid state theory, however, I think he did a lot of varied stuff. He followed on from Debye at Utrecht in 1914 where he remained until 1940. Ornstein was Jewish and at the beginning of the war was dismissed from his position at the university. Only six months later he died. Seems to me it should be the Ornstein Institute, anyway, we also have his picture up.
Enough history
So the Dutch weren't too bad at science. The living ones aren't too shabby either. So hopefully lots of interesting things to be posted in the coming weeks.

Saturday, 9 July 2011

Universality at the critical point

Time for more critical phenomena.

Another critical intro

I've talked about this a lot before so I will only very quickly go back over it. The phase transitions you're probably used to are water boiling to steam or freezing to ice. Now water is, symmetrically, very different from ice. So to go from one to the other you need to start building an interface and then slowly grow your new phase (crystal growth). This is called a first order phase transition and it's the only way to make ice.

Now water and steam are, symmetrically, the same. At most pressures the transition still goes the same way – build an interface and grow. However, if you crank up the pressure enough there comes a special point where the distinction between the two phases becomes a bit fuzzy. The cost of building an interface goes to zero so there's no need to grow anything. You just smoothly change between the two. This is a second order, or continuous, phase transition and it's what I mean by a critical point.

As I've demonstrated before, one of the consequences of criticality is a loss of a sense of scale. This is why, for instance, a critical fluid looks cloudy. Light is being scattered by structure at every scale. This insight is embodied in the theory of the renormalisation group, and it got lots of people prizes.

Universality

A second feature of critical phenomena is universality. Close to the critical point it turns out that the physics of a system doesn't depend on the exact details of what the little pieces are doing, but only on broad characteristics such as dimension, symmetry or whether the interaction is long or short ranged. Two systems that share these properties are in the same universality class and will behave identically around the critical point.

At this stage you may not have a good picture in your head of what I mean, it does sound a bit funny. So I've made a movie to demonstrate the point. The movie shows two systems at criticality. On the left will be an Ising model for a magnet. Each site can be up or down (north or south) and neighbouring sites like to line up. The two phases at the critical point are the opposite magnetisations represented here by black and white squares.
On the right will be a Lennard-Jones fluid. This is a model for how simple atoms like Argon interact. Atoms are attracted to one another at close enough range but a strong repulsion prevents overlap. The two phases in this case are a dense liquid and a sparse gas.

One of these systems lives on a lattice, the other is particles in a continuous space that are free to move around. Very different as you can see from the pictures. However, what happens when we look on a slightly bigger length scale? Role the tape!


At the end of the movie (which you can view HD) the scale is about a thousand particle diameters across containing about 350,000 particles and similar for the magnet. At this distance you just can't tell which is which. This demands an important point: These pictures I've been making don't just show a critical Ising model, they pretty much show you what any two-dimensional critical system looks like (isotropic, short range...). Even something complicated from outside of theory land. And this is why the theory of critical phenomena is so powerful, something that works for the simplest model we can think of applies exactly - not approximately - to real life atoms and molecules, or whatever's around the kitchen.

Wednesday, 15 June 2011

Meeting is good

Once again I find myself making some excuse as to why it's been over a month since my last post. My first reason is I'm finishing up my current postdoc. My other reason is I've been doing lots of travelling. This is much more exciting as I've been finding out more about all the cool soft matter / stat-mech work that is going on in the UK. Some of which I will blog about in time. I've also learned that half the people in soft matter in the UK have worked at some point in the Netherlands, which is handy because I'm moving to the Netherlands!

Getting to the point

All this travelling is related to the topic I wanted to get to today - the value of meeting. I was started off thinking about this thanks to Alice Bell's article in the THE on the value of the seminar. Here Alice calls for seminars to be posted online, something I agree with very much, as a way to reach more people (and to improve the standard a bit). From my experience I've had to use hundreds of pounds of grant money touring the country giving the same seminar. While I value that experience - meeting the people in the groups, direct interaction and so on - it's a shame that people at other universities can't see the talk as well.

Of course if people knew it was online they may not turn up, but hopefully not. I might start sticking mine up here.

The more efficient way of way of reaching many like-minded academics is of course the conference. A good conference can do wonders for your creativity and enthusiasm, it can give you an instant snapshot of the state-of-art and you can meet future employers/collaborators.

But they can be a bit stuffy and long. And expensive. So I'd like to fly the flag for a third kind of academic interaction, the informal science "retreat". Not long ago we had our annual Cornish Soft Matter weekend. A small group of physicists and chemists from a couple of universities got together for a more relaxed meeting. Talks were projected onto a sheet, we were sitting on sofas or the floor, and the start of a talk would be delayed due to people making a last minute cup of tea (usually this was me). All this in a really nice setting.

The demographic was largely PhD students and postdocs, and everyone had to give a short talk. If it overran, fine, if people had questions they'd asked them right away. Students were encouraged to ask as many questions as possible and academics resisted the urge to tear anyone to bits with their sharpened critical skills.

Scientifically it's great. I got to hear from the people who make all these synthetic colloids that I always cite. Their concerns weren't always about phase diagrams or dynamic arrest, sometimes it was simply how much stabiliser or chemical X do I need to get the polydispersity down. These are problems I don't usually get to hear about and it's particularly nice to get it from the people at the coal face.

Because the atmosphere is more relaxed you can give a different kind of talk. In a conference you're so worried about being jumped on that you tend to take out all the personality from a talk, all the wild speculation and, well, then fun side of science. Here we could kind of let rip. If we wanted.

Socially it is also a good thing. It's easy to get a little isolated with your own little problem, especially when your doing a PhD, so it's nice to mix a bit. Science, like most jobs, requires a degree of networking. While I hate this word and all that it implies, these informal gatherings are a much better way to get to know people than conferences. People at conferences are always trying to look smart and generally suck up to the established professors. Makes me shiver just thinking about it.

A snappy conclusion

The main thing that made this meeting nice was the atmosphere. I highly recommend anyone to organise something similar if it's possible. Sure, it was no Copenhagen, but the science was good and it helped create that sense of being in a scientific community.

While it's not free it's a lot cheaper than a conference. I guess you don't need to go all the way to Cornwall but it is nice to get out the department for a couple of days - especially when you usually sit at a desk all the time.

Wednesday, 27 April 2011

An early look at simulation

While I was putting together the post on 2D disks I came across a lovely paper from 1962 on 2D melting by Alder and Wainwright. From there I found this paper from 1959: Studies in Molecular Dynamics. I. General Method by the same authors.

They describe the "event driven" molecular dynamics (MD) algorithm. Normally, with MD you calculate forces, and thus accelerations, and update this way. Hard disks or spheres behave more like snooker balls, the forces are more or less instantaneous impulses that conserve momentum so it's better to deal with collision events and leave out the acceleration part.

The paper gives a fascinating insight into the early days of computer simulation (they still refer to them as "automatic computers"), what their limitations were and what details were worth worrying about. To give you an idea, in 1959 they say:
With the best presently available computers, it has been possible to treat up to five hundred molecules. With five hundred molecules it requires about a half-hour to achieve an average of one collision per molecule.
So in their case it was CPU speed that was the problem, they get about thousand collisions per hour. To put that in perspective, a modern event-driven simulation of a similar system will maybe hit about a billion collisions per hour on a reasonable desktop [source]. I don't say this to mock their efforts, these are the giants on whom's shoulders we stand. I'll come back to why that number is so comparatively big these days, first I want to look at visualisation.

Visualistion

In 1959 there were no jpegs or postscripts and certainly no Povray or VMD, I'm not sure they even had printers. So how do you visualise your simulation? Well they had a rather elegant answer to that. They could output the current state of the system to a cathode-ray tube as a bunch of dots in the positions of the particles. Then they pointed a camera at the screen and left the shutter open while they ran a simulation. What you get is these beautiful images below showing the particle trajectories. Firstly in a crystal phase you can see the particles rattling around their lattice sites


This is a projection of the FCC lattice (the squares confused me at first). In the fluid phase they do a little bit of cage rattling and then start to wander off.

[Figures reprinted with permission Alder and Wainwright, J. Chem. Phys. 31, 459 (1959). Copyright 1959, American Institute of Physics].

I honestly couldn't show it better today. Some people dismiss visualisations as pretty pictures that only exist to attract attention. Perhaps this is sometimes true but it only takes one look at this to see how they can stir the imagination and shape the intuition – and that's what creates new ideas.

Algorithms

I'd quickly like to come back to the speed difference between 1959 and today. A lot of the difference can be put down to Moore's law. After an annoying amount of Googling I can't really say how much faster modern CPUs are. A lot probably. However, I'd like to focus on an often overlooked factor – the development of algorithms.

A general event driven algorithm calculates the collision time for each pair of particles and, if it is under a cutoff, stores it in an event queue. It then fast forwards to the shortest time whereupon it will need to update the queue with new events that appear after the collision. Initially this requires checking all pairs, Alder and Wainwright call this the "long cycle", and this has complexity of order N-squared, O(N^2). This means that if you double the number of particles, N, then you have four times as many calculations to perform.

After a collision you only need to update events involving the particles that collided so you can get away with doing N updates. This is the "short cycle" and is O(N). It's not mentioned in this paper but I think there's an issue with sorting the event queue so this is probably still O(N^2). Either way, for their early simulations the total number of collisions per hour tanked as N was increased.

And this is where algorithms come in. You can use all sorts of tricks. In dense systems you can use a cell structure to rule out collisions between pairs far away. Modern algorithms focus largely on keeping the event queue properly sorted. A binary tree will sort with O(log(N)) and here they claim to have it O(1). Of course the complexity is not the only important factor, there may be other more important overheads, but it gives an idea of the limitations.

In equilibrium statistical mechanics specialised computer algorithms have made a spectacular impact. Techniques such as the Wolff algorithm, Umbrella sampling, and many many more, have outstripped any speed up by Moore's law by many orders of magnitude. I could go on about algorithms for hours (maybe a post brewing), instead I'll just make the point that it doesn't always pay to just sit and wait for a faster computer.

We've come a long way

These early simulation studies weren't just important for developing methods, they were able to answer some serious questions that were hopelessly out of reach at the time. Since then simulation has firmly established itself in the dance between theory and experiment, testing ideas and generating new ones. And it shows no sign of giving up that position.

Friday, 15 April 2011

Lipid membranes on the arXiv

A while ago I discussed lipid membranes and how they could exhibit critical behaviour. There were some lovely pictures on criticality on giant unilamellar vesicles (GUVs) which are sort of model cell walls. That work was done by Sarah Keller and friends in Seattle.

This morning on the arXiv I saw this new paper, also by Sarah:

Dynamic critical exponent in a 2D lipid membrane with conserved order parameter

They look at the critical dynamics of the GUV's surface. Being embedded in a 3D fluid does have its consequences so they've attempted to account for the effect of hydrodynamic interactions. I haven't poured over their model but the paper looks really nice.

Wednesday, 13 April 2011

Paper review: Hexatic phases in 2D

I'm doing my journal club on this paper by Etienne Bernard and Werner Krauth at ENS in Paris:

First-order liquid-hexatic phase transition in hard disks

So I thought that instead of making pen-and-paper notes I'd make them here so that you, my huge following, can join in. If you want we can do it proper journal club style in the comments. For now, here's my piece.

Phase transitions in 2D

Dimension two is the lowest dimension we see phase transitions. In one dimension there just aren't enough connections between the different particles – or spins, or whatever we have – to build up the necessary correlations to beat temperature. In three dimensions there are loads of paths between A and B and the correlations really get going. We get crisp phase transitions and materials will readily gain long range order. Interestingly, while it should be easier and easier to form crystals in higher dimensions there do exist pesky glass transitions that get worse with increasing dimension. But I digress.

In two dimensions slightly strange things can happen. For one thing, while we can build nice crystals they are never quite as good as the ones you can get in 3D. What do I mean by this? Well in 3D I can give you the position of one particle and then the direction of the lattice vectors and you can predict exactly where every particle in the box will sit (save a bit of thermal wiggling). In 2D we get close, if I give you the position and lattice vectors then that defines the relative position and orientation for a long way – but not everywhere.

By "a long way" I mean correlations decay algebraically (distance to the power something) rather than exponentially (something to the power distance), which would be short ranged. We can call it quasi-long ranged.

Never-the-less, this defines a solid phase and this solid can melt into a liquid (no long range order of any kind). What is very interesting in two dimensions is that this appears to happen in two stages. First the solid loses its positional order, then it loses it's orientational order as well. This is vividly demonstrated in Fig 3. of the paper. The phase in the middle, with quasi-long range orientational order but short range positional order, is known as the hexatic phase.

When the lattice is shifted a bit the orientation can be maintained but the positions become disordered.