Skip to content

MorcilloSanz/HeatEquation-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HeatEquation-JS πŸ”₯

In mathematics, if given an open subset U of R 2 and a subinterval I of R , one says that a function u : U Γ— I β†’ R is a solution of the heat equation if

βˆ‚ u βˆ‚ t = Ξ± Ξ” u

Where Ξ” u is the Laplacian of the function u

Ξ” u = βˆ‘ i = 1 n βˆ‚ 2 u βˆ‚ x i 2 = βˆ‚ 2 u βˆ‚ x 2 + βˆ‚ 2 u βˆ‚ y 2

where ( x , y ; t ) denotes a general point of the domain. It is typical to refer to t as "time" and x , y as "spatial variables," even in abstract contexts where these phrases fail to have their intuitive meaning. For any given value of t , the right-hand side of the equation is the Laplacian of the function u ( x , y ; t ) : U β†’ R

Ξ± is the diffusivity constant

Demo

Simulation

alt text

Dependencies

p5.js for drawing