FEM to solve for 2D Laplace's Equation
Version 1.0.0 (2.24 KB) by
Roche de Guzman
FEM solution to a steady-state PDE (example: Laplace's) applied to an electric potential
%% Laplace's Equation: nabla^2 u = 0 (version 2: acquire matrix results)
% 2 space dimensions: uxx + uyy = 0, where u = V (electric potential)
% by Prof. Roche C. de Guzman
clear; clc; close('all');
%% Given
% source geometry (circle)
r = 0.5; % radius [m]
C = [0 0]; % center (h,k)
% domain geometry (rectangle)
f = 1.5; % factor relative to the circle
% electric potential
Vg = 0; % ground
Vs = 110; % source [V]
Cite As
Roche de Guzman (2026). FEM to solve for 2D Laplace's Equation (https://www.mathworks.com/matlabcentral/fileexchange/71357-fem-to-solve-for-2d-laplace-s-equation), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Partial Differential Equation Toolbox > General PDEs > Boundary Conditions >
Find more on Boundary Conditions in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |
