Fluid simuation - domain cube turning into small rectangle

I have this issue intermittently in both 2.69 and 2.7

I create a cube in wireframe mode, then a uv sphere which is inside it. For the sphere I put the fluid type to ‘fluid’, and for the cube I put it to ‘domain’. More often than not the cube then turns into a small rectangle, which if I run the animation drips fluid rather than fluid coming from the sphere and filling the base of the cube. I’ve attached a screenshot which will explain that better than I probably have.

The fact this is not always happening suggests that it’s something I’m getting wrong, but I can’t work out what mistake I’m making. It makes no difference if I put the settings on the sphere before the domain or the other way around.

tia
andy

Updating this one in case anybody finds it useful in either a definitive solution or because they’re having the same issue and find this thread…

I’ve found that it ‘never’ happens if the directory to which it’s going to bake the simulation is empty - if there are old bake files in it then a variety of different unwanted things happen when I tell the cube to be the domain. I haven’t seen the need for the directory to be empty made explicit anywhere I’ve looked; though I’m sure it is somewhere… :wink:

It happens because blender is still “pointed” at the previous render cache. With the domain selected, in the physics panel, fluid window, change the name of the cache file (i.e C:\Users\John\AppData\Local\Temp\cache_fluid, change to C:\Users\John\AppData\Local\Temp\cache_fluid1), and the domain box will return. Either that, or delete the files in the cache folder.