Jacobi
Documentation for Jacobi Solver
Functions
jacobi_functions.py File Reference

This file is a part of the Jacobi solver for Laplace equation. More...

Functions

def jacobi_functions.setBoundaryConditions (grid, gridNew, dimension)
 
def jacobi_functions.update (grid, gridNew, dimension)
 
def jacobi_functions.printOutput (grid, dimension)
 

Detailed Description

This file is a part of the Jacobi solver for Laplace equation.

This file provides several routines for the solver of the Laplace equation using Jacobi iterative method on a square grid, given the boundary conditions

Author
: Giuseppe Piero Brandino - eXact-lab s.r.l.

Function Documentation

◆ printOutput()

def jacobi_functions.printOutput (   grid,
  dimension 
)
Prints the output in text format
Args:
    grid double precision array containing the first grid buffer
    dimension the size of the system. The buffers should be of size (dimension + 2)^2

◆ setBoundaryConditions()

def jacobi_functions.setBoundaryConditions (   grid,
  gridNew,
  dimension 
)
Sets the boundary conditions on both the grid buffers
Args: 
    grid double precision array containing the first grid buffer
    gridNew double precision array containing the second grid buffer
    dimension the size of the system. The buffers should be of size (dimension + 2)^2

◆ update()

def jacobi_functions.update (   grid,
  gridNew,
  dimension 
)
Performs one step of the Jacobi iteravite process
Args:
    grid double precision array containing the first grid buffer
    gridNew double precision array containing the second grid buffer
    dimension the size of the system. The buffers should be of size (dimension + 2)^2