Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lkwinta/finite-element-method

Finite element method numeric solver for Differential Equation course at AGH UST
https://github.com/lkwinta/finite-element-method

differential-equations finite-element-methods heat-transfer rust

Last synced: 24 days ago
JSON representation

Finite element method numeric solver for Differential Equation course at AGH UST

Awesome Lists containing this project

README

        

# Finite elements method solver
Small rust util that solves heat transfer differential equation using finite element method. Equation is as following:

$-(k(x)u'(x))' = 100x$

$u(2) = 0$

$u(0) + u'(0) = 20$

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

# Usage
To build program use:
```
cargo build --release
```

To solve equation use:
```
cargo run --release
```
where N is the number of base functions. If not given, the default value is 10.