Skip to content

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

Notifications You must be signed in to change notification settings

lkwinta/Finite-element-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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$

$$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 <N>

where N is the number of base functions. If not given, the default value is 10.

About

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

Topics

Resources

Stars

Watchers

Forks