I was thinking about a little puzzle today, considering the flow of air in a network of connected chambers.
Picture.
The basic idea is that the chambers are fairly big compared to the thin tubes connecting them.
Imagine some random setup like this, and then drop a heater into one of the chambers and you get a build up of heat --> pressure --> flow. The flow should then stabilize and be totally driven by the convection of heat, as depicted by my coloured arrows.
The tubes at the top connect to the "outside", allowing the hot air to escape and cold air which will enter to displace it through a different tube.
Superficially, it all looks simple thermodynamics: Volume, pressure, temperature, density in each chamber. Pressure differences drive flow through each of the tubes. Gravity gives a potential gradient to displace the different gas densities over. Where fluid enters a chamber, it mixes with the gas already there, gently blending the temperatures and densities.
I want to simulate these flows, but I can't seem to get my head around it.
Does anyone here have any ideas?
Picture.

The basic idea is that the chambers are fairly big compared to the thin tubes connecting them.
Imagine some random setup like this, and then drop a heater into one of the chambers and you get a build up of heat --> pressure --> flow. The flow should then stabilize and be totally driven by the convection of heat, as depicted by my coloured arrows.
The tubes at the top connect to the "outside", allowing the hot air to escape and cold air which will enter to displace it through a different tube.
Superficially, it all looks simple thermodynamics: Volume, pressure, temperature, density in each chamber. Pressure differences drive flow through each of the tubes. Gravity gives a potential gradient to displace the different gas densities over. Where fluid enters a chamber, it mixes with the gas already there, gently blending the temperatures and densities.
I want to simulate these flows, but I can't seem to get my head around it.

Does anyone here have any ideas?