Jacobi
Jacobi Solver
Functions
jacobi_functions Namespace Reference

Functions

def setBoundaryConditions (grid, gridNew, dimension)
 Sets the boundary conditions on both the grid buffers. More...
 
def update (grid, gridNew, dimension)
 
def printOutput (grid, dimension)
 

Detailed Description

 This file is a part of the Jacobi solver for Laplace equation.
 Description: 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: G.P. Brandino
 Copyright: 2019 eXact-lab s.r.l.
 License: GPLv2

Function Documentation

◆ setBoundaryConditions()

def jacobi_functions.setBoundaryConditions (   grid,
  gridNew,
  dimension 
)

Sets the boundary conditions on both the grid buffers.

Parameters
griddouble precision array containing the first grid buffer
gridNewdouble precision array containing the second grid buffer
dimensionthe size of the system. The buffers should be of size (dimension + 2)^2