djsilva99 / heatrapy

Python library for simulating heat transfer processes
https://djsilva99.github.io/heatrapy
MIT License
72 stars 14 forks source link

Spatial discretization #9

Closed EgQuent closed 3 days ago

EgQuent commented 3 years ago

Dear Mister Silva,

I get the impression that inside the 2D sub-folder, the classes Object and SingleObject are asking for 'dx', 'dy' as space steps along the x- and y-axis, respectively. However when defining the material properties, temperatures, etc... on the calculation matrix, its the parameter 'size' that is used. Same to export the results. I cannot find in the code, where 'dx' and 'dy' have been taken into account.

In my case I want to to perform the calculation on an oven 800mm x 600mm, but I would like to perform the calculation on a 10mm square grid. What do I don't understand?

Thanks, Best regards

djsilva99 commented 3 days ago

Sorry for the very, very late reply.

The dx and dy are used by the solvers. For example: https://github.com/djsilva99/heatrapy/blob/f5a2ff55d517b22edf087ad022a1ea50e6ba73d4/heatrapy/dimension_2/solvers/explicit_general.py#L59-L61

djsilva99 commented 3 days ago

Since this is an old issue, I will close it for now.