djsilva99 / heatrapy

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

Temperature #38

Closed ArtemioA closed 2 weeks ago

ArtemioA commented 3 weeks ago

Hi, Can tell me how to change Temperature of the bodies? Not the ambient temperature?

djsilva99 commented 3 weeks ago

Hello!

Let's say that you instantiate a single object in 2D:

object2D = SingleObject2D(...)

You can access the temperature matrix like this:

object2D.object.temperature`

Then you can assign any value in each matrix element. For example,

object2D.temperature[2][2] = 300
ArtemioA commented 3 weeks ago

Thank you so Much!

El jue, 31 oct 2024 a las 18:14, Daniel Silva @.***>) escribió:

Hello!

Let's say that you instantiate a single object in 2D:

object2D = SingleObject2D(...)

You can access the temperature matrix like this:

object2D.object.temperature`

Then you can assign any value in each matrix element. For example,

object2D.temperature[2][2] = 300

— Reply to this email directly, view it on GitHub https://github.com/djsilva99/heatrapy/issues/38#issuecomment-2450826774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUOOUEI5C7ONWPUZX7I4JTZ6KMUNAVCNFSM6AAAAABQ5DBTYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQHAZDMNZXGQ . You are receiving this because you authored the thread.Message ID: @.***>