Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkawula/heat-transfer-fem

Differential equation solver
https://github.com/kkawula/heat-transfer-fem

Last synced: about 2 months ago
JSON representation

Differential equation solver

Awesome Lists containing this project

README

        

# Finite Element Method (FEM) for Heat Transfer Equation

$$
\frac{d}{dx} \left( k(x) \frac{du(x)}{dx}\right) = -100x
$$

$$
u(2) = 0
$$

$$
\frac{du(0)}{dx} + u(0) = 20
$$

$$
k(x) = \begin{cases}
1 & \text{for } x \in [0,1] \\
2x & \text{for } x \in (1,2]
\end{cases}
$$

$$
\text{Where } u \text{ is the function you are looking for}
$$

$$
[0,2] \ni x \mapsto u(x) \in \mathbb{R}
$$

### Requirements

Python, `numpy`, `matplotlib`, and `scipy`.