update foam model