Specific Examples of the Resolution of the Poisson's equation with the WRM using global Shape Functions
From KratosWiki
 The matrix form of the residual formulation can be written as: with:
 For simplicity reasons, we select as basis functions the Fourier Series , that automatically accomplish the boundary conditions and . If the material is constant, we can write:
sources medium boundary conditions
shape functions  constant source
 homogeneous
 Dirichlet
 Fourier Series
 By using different weighting functions, a new range of methods can be classified:
Contents 
Collocation Method
General expression  k and Q constant, using Fourier series 



 Number of points = 1
 Number of points = 2
 Number of points = n
 To modify the parameters, edit this Matlab code
Subdomain Method
General expression  k and Q constant, using Fourier series 



 Number of points = 1
 Number of points = 2
 Number of points = n
 To modify the parameters, edit this Matlab code
Galerkin Method
General expression  k and Q constant, using Fourier series 



 Number of points = 1
 Number of points = 2
 Number of points = n
 To modify the parameters, edit this Matlab code
Least Squares Method
General expression  k and Q constant, using Fourier series 



 Note that, in this case and without generality, due to the selected basis functions, the obtained solution is the same that the obtained one using the Galerkin method scaled with a factor .
 To modify the parameters, edit this Matlab code