<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Paul Jacob on Medium]]></title>
        <description><![CDATA[Stories by Paul Jacob on Medium]]></description>
        <link>https://medium.com/@tomam2885?source=rss-61c8d1851173------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*oJ5Z9HE6WLVd3Y7D</url>
            <title>Stories by Paul Jacob on Medium</title>
            <link>https://medium.com/@tomam2885?source=rss-61c8d1851173------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 21:21:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomam2885/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to simulate heat-transfer in python]]></title>
            <link>https://medium.com/@tomam2885/how-to-simulate-heat-transfer-in-python-f78350cb745d?source=rss-61c8d1851173------2</link>
            <guid isPermaLink="false">https://medium.com/p/f78350cb745d</guid>
            <category><![CDATA[thermodynamics]]></category>
            <category><![CDATA[enginnering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[thermal-engineering]]></category>
            <dc:creator><![CDATA[Paul Jacob]]></dc:creator>
            <pubDate>Tue, 06 Dec 2022 21:32:43 GMT</pubDate>
            <atom:updated>2022-12-06T21:34:09.196Z</atom:updated>
            <content:encoded><![CDATA[<p>To simulate heat transfer in python, you can use the finite difference method. This involves discretizing the region over which the heat transfer is occurring, and using a numerical scheme to solve the heat equation at each point on the discretized grid.</p><p>Here is the example of how this could be done:</p><p># Import necessary libraries</p><p>import numpy as np</p><p># Set simulation parameters</p><p>dx = 0.1 # Grid spacing in x-direction<br>dy = 0.1 # Grid spacing in y-direction<br>dt = 0.1 # Time step</p><p>k = 0.1 # Thermal conductivity</p><p># Set initial conditions</p><p>T = np.zeros((100, 100)) # Temperature field</p><p>T[50, 50] = 295 # Initial temperature at center of domain<br> # Iterate over time<br>for t in range(1000):</p><p># Compute the Laplacian of the temperature field</p><p>lap_T = (T[1:-1, :-2] + T[1:-1, 2:] - 2*T[1:-1, 1:-1])/dx**2 + (T[:-2, 1:-1] + T[2:, 1:-1] - 2*T[1:-1, 1:-1])/dy**2</p><p># Update the temperature field using the heat equation</p><p>T[1:-1, 1:-1] = T[1:-1, 1:-1] + k * lap_T * dt</p><p>This code will simulate heat transfer over a 100x100 grid, with a grid spacing of 0.1 in the x and y directions and a time step of 0.1. The thermal conductivity is set to 0.1, and the initial temperature is set to 100 at the center of the domain. The code iterates over time, computing the Laplacian of the temperature field and updating the temperature at each point on the grid according to the heat equation.</p><p>Of course, this is just one example of how to simulate heat transfer in python. There are many other ways to simulate it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f78350cb745d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>