poisson_2D: PGD for the 2D Poisson's equation in Cartesian coordinates

Description Usage Arguments Value

View source: R/poisson_2D.R

Description

PGD for the 2D Poisson's equation in Cartesian coordinates

Usage

1
2
3
4
5
6
7
8
poisson_2D(
  src,
  n,
  bc,
  mlim,
  tol = 0.001,
  maxiter = list(f_loop = 500, r_loop = 251)
)

Arguments

src

List of two elements, x and y, each containing an inline function with only one input parameter. Each function returns a list with the separate variables of the source term.

n

List of two elements, x and y, each containing the number of nodes of each separate variable.

bc

List of two elements, x and y, each containing a vector with the boundaries of each separate variable (referred to the nodes).

mlim

List of two elements, x and y, each containing a vector with the limits of the mesh of each separate variable.

tol

Tolerance of the errors of for the F and R loops.

maxiter

List of two elements, f_loop and r_loop, each containing the maximum number of loop iterations.

Value

List of pgd class with three elements: f, alpha, coor. f contains the modes of each separate variable. alpha contains the alpha values of each mode (already included in f). coor contains the separate Cartesian coordinates of each node.


quesadagranja/pgd documentation built on Dec. 22, 2021, 10:59 a.m.