Report Typos and Errors    
Semi-Lagrangian Library
Modular library for kinetic and gyrokinetic simulations of plasmas in fusion energy devices.
Derived types and interfaces | Functions/Subroutines
sll_m_poisson_2d_fem Module Reference

Description

Poisson solver using finite element.

Solve Poisson equation on irregular cartesian domain with finite elements.

Derived types and interfaces

type  sll_t_poisson_2d_fem
 Structure to solve Poisson equation on 2d domain. Mesh is cartesian and could be irregular. More...
 
interface  sll_o_create
 Initialize the solver. More...
 
interface  sll_o_solve
 Compute the electric potential. More...
 

Functions/Subroutines

subroutine initialize_poisson_2d_fem (self, x, y, nn_x, nn_y)
 Initialize Poisson solver object using finite elements method. More...
 
integer function som (nx, i, j, k)
 Get the node index. More...
 
subroutine solve_poisson_2d_fem (self, ex, ey, rho)
 Solve the poisson equation. More...
 

Function/Subroutine Documentation

◆ initialize_poisson_2d_fem()

subroutine sll_m_poisson_2d_fem::initialize_poisson_2d_fem ( type(sll_t_poisson_2d_fem self,
real(kind=f64), dimension(nn_x)  x,
real(kind=f64), dimension(nn_y)  y,
integer(kind=i32), intent(in)  nn_x,
integer(kind=i32), intent(in)  nn_y 
)
private

Initialize Poisson solver object using finite elements method.

Parameters
selfsolver data structure
[in]nn_xnumber of cells along x
[in]nn_ynumber of cells along y
xx nodes coordinates
yy nodes coordinates

Definition at line 57 of file sll_m_poisson_2d_fem.F90.

◆ solve_poisson_2d_fem()

subroutine sll_m_poisson_2d_fem::solve_poisson_2d_fem ( type(sll_t_poisson_2d_fem self,
real(kind=f64), dimension(:, :)  ex,
real(kind=f64), dimension(:, :)  ey,
real(kind=f64), dimension(:, :)  rho 
)
private

Solve the poisson equation.

Parameters
selfPoisson solver object
exx electric field
eyy electric field
rhocharge density

Definition at line 221 of file sll_m_poisson_2d_fem.F90.

◆ som()

integer function sll_m_poisson_2d_fem::som ( integer  nx,
integer  i,
integer  j,
integer  k 
)
private

Get the node index.

Definition at line 204 of file sll_m_poisson_2d_fem.F90.

Here is the caller graph for this function:
    Report Typos and Errors