Added support for internal patches/baffles

Also added example script with layers growing both in solid and in fluid.