foam model