Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 984 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 984 Bytes

Methods for solving Poisson's equation Δu(x,y) = g(x,y)

Build

mkdir build
cd build
cmake ..
cmake --build . --config Release

Results

g(x,y) = 0; boundary condition: ∂u/∂x = 0 ∂u/∂y = 0 additional conditions u = 2 if x ∈ [-2; 2], y ∈[0.5, 0.6]; u = - 2 if x ∈ [-2; 2], y ∈[-0.6, -0.5];

g(x,y) = 0 boundary condition: ∂u/∂x = 0 ∂u/∂y = 0 additional conditions u = 2 if x ∈ [-3; -2], y ∈[-1.5, -1.2]; u = 2 if x ∈ [2; 3], y ∈[-1.5, -1.2]; u = -2 if (x + 0.9)^2 + (y + 1.3)^2 < 0.1; u = -2 if (x - 0.9)^2 + (y + 1.3)^2 < 0.1; u = 1 if x^2 + (y + 1.3)^2 < 0.1;

g(x,y) = - 2 * π^2 * sin(π * x) * sin(π * y) boundary condition: ∂u = 0