Preferences on developing system

Hi there,

Can anyone please give their thought on this?

I am trying to write simulation software that can simulate heat transfer from a solar panel to a storage tank. Before doing anything I wanted to know if there is any preference or way of design.

I just want to make sure I am going in the right direction.

Thank you

There is no correct way to start making it. It is a matter of preference.

Personally, I will do it in this order:

  1. Enumerate the input parameters (e.g. sun position, amount of clouds, external temperature, pump turned on/off, elapsed time etc) and the output parameters (temperature in pipes, temperature in water tank, color of water, etc).
  2. Formalize the mathematical model – this is how the output parameters are calculated from the input parameters. This model could be a single formula, or an algorithm. It depends on how complex the calculation is.
  3. Design the visual appearance in terms of 3D (or 2D) objects, their positions, sizes and all other properties. This is where Three.js (or any other modelling software) plays role. You can even use Canvas2D.
  4. Finally, build the simulation by converting your mathematical model and your 3D/2D design into code.

Good luck with your project.

3 Likes

Way to go @PavelBoytchev - I couldn’t have put it better!

1 Like