I want to simulate basic thermodynamic.
I already have most functions that work in the same way as in real life.
But I now stuck with creation of ‘proper’ model which should handle whole process of heat transferring in volume of a body.
I already have working model which works using cellular automates model. I.e. I divide whole body on blocks, each block have its own specific heat capacity, if temperature of neighbors blocks are lower than self temperature calculate amount of energy current block should transfer, otherwise do nothing.
But such approach have problems specific to concept of cellular automates. Like discreteness of a process of heat transferring, energy losses on some edge cases, etc
Of course it possible to add safeguard for all such situations. But that wont fix the core of an issue, which is a bad model.
So, maybe someone here tried to simulate same thing and can help me to make it work ‘right’?