Peano
Loading...
Searching...
No Matches
test8 Namespace Reference

This test checks that A_CG indeed approximates the continuum operator: check A_DG * u_exact == M * b_exact, where u_exact and b_exact are the dof-vectors of the functions u_exact(x) and b_exact(x) which satisfy the PDE in the continuum. More...

Data Structures

class  InitDofsTest8
 In touchVertexFirstTime, we set the type of vertex we see (either Interior, Boundary or Coarse), as well as sending some values to the solver implementation file to be placed into the mesh. More...
 

Variables

 parser = argparse.ArgumentParser(description='Multigrid - Poisson solver')
 
 dest
 
 type
 
 int
 
 default
 
 help
 
 action
 
 False
 
 choices
 
 required
 
 True
 
 args = parser.parse_args()
 
 project
 
 poisson_equation_matrices
 
 system_matrix
 
 system_matrix_scaling
 
 mass_matrix
 
 maxx_matrix_scaling
 
str custom_boundary_conditions
 
 solver
 
 build_mode = peano4.api.output.CompileMode.RELEASE
 
float cube_size = 1.0
 
 dimensions
 
 offset
 
 domain_size
 
 plot_after_each_mesh_sweep
 
 max_iterations
 
 peano4_project = project.generate_Peano4_project(args.verbose)
 

Detailed Description

This test checks that A_CG indeed approximates the continuum operator: check A_DG * u_exact == M * b_exact, where u_exact and b_exact are the dof-vectors of the functions u_exact(x) and b_exact(x) which satisfy the PDE in the continuum.

  • Laplace u_exact(x) = b_exact(x).

We use u_exact(x,y) = sin(2*pi*x) * sin(2*pi*y), b_exact(x,y) = 8*pi^2 * sin(2*pi*x) * sin(2*pi*y)

Variable Documentation

◆ action

test8.action

Definition at line 22 of file test8.py.

◆ args

test8.args = parser.parse_args()

Definition at line 28 of file test8.py.

◆ build_mode

test8.build_mode = peano4.api.output.CompileMode.RELEASE

Definition at line 77 of file test8.py.

◆ choices

test8.choices

Definition at line 27 of file test8.py.

◆ cube_size

float test8.cube_size = 1.0

Definition at line 85 of file test8.py.

◆ custom_boundary_conditions

str test8.custom_boundary_conditions
Initial value:
1= """
2 for (int i=0; i<value.size(); i++) {
3 value[i] = 0.0;
4 }
5"""

Definition at line 46 of file test8.py.

◆ default

test8.default

Definition at line 21 of file test8.py.

◆ dest

test8.dest

Definition at line 21 of file test8.py.

◆ dimensions

test8.dimensions

Definition at line 87 of file test8.py.

◆ domain_size

test8.domain_size

Definition at line 89 of file test8.py.

◆ False

test8.False

Definition at line 22 of file test8.py.

◆ help

test8.help

Definition at line 21 of file test8.py.

◆ int

test8.int

Definition at line 21 of file test8.py.

◆ mass_matrix

test8.mass_matrix

Definition at line 41 of file test8.py.

◆ max_iterations

test8.max_iterations

Definition at line 91 of file test8.py.

◆ maxx_matrix_scaling

test8.maxx_matrix_scaling

Definition at line 41 of file test8.py.

◆ offset

test8.offset

Definition at line 88 of file test8.py.

◆ parser

test8.parser = argparse.ArgumentParser(description='Multigrid - Poisson solver')

Definition at line 20 of file test8.py.

◆ peano4_project

test8.peano4_project = project.generate_Peano4_project(args.verbose)

Definition at line 97 of file test8.py.

◆ plot_after_each_mesh_sweep

test8.plot_after_each_mesh_sweep

Definition at line 90 of file test8.py.

◆ poisson_equation_matrices

test8.poisson_equation_matrices
Initial value:
2 dimensions = args.dimensions,
3 unknowns_per_node = 1
4)
Simple matrix generator for continuous d-linear finite elements.
Definition DLinear.py:10

Definition at line 35 of file test8.py.

◆ project

test8.project
Initial value:
1= mghype.matrixfree.api.Project( project_name = "CollocatedFEM",
2 namespace = [ "tests", "multigrid", "matrixfree", "verifyRandom" ]
3 )

Definition at line 30 of file test8.py.

◆ required

test8.required

Definition at line 27 of file test8.py.

◆ solver

test8.solver
Initial value:
1= mghype.matrixfree.solvers.api.CollocatedDLinearDiscretisationWithPointJacobi("CollocatedPoisson",
2 1, # unknowns
3 args.dimensions,
4 args.meshsize,
5 args.meshsize,
6 local_assembly_matrix = system_matrix,
7 local_assembly_matrix_scaling=system_matrix_scaling,
8 mass_matrix = mass_matrix,
9 mass_matrix_scaling = maxx_matrix_scaling,
10 solver_tolerance=1e-6,
11 custom_init_actionset=InitDofsTest8,
12 custom_plot_actionset=[("vu","getVu"), (("vb","getVb"))],
13 custom_boundary_conditions=custom_boundary_conditions
14 )

Definition at line 52 of file test8.py.

◆ system_matrix

test8.system_matrix

Definition at line 40 of file test8.py.

◆ system_matrix_scaling

test8.system_matrix_scaling

Definition at line 40 of file test8.py.

◆ True

test8.True

Definition at line 27 of file test8.py.

◆ type

test8.type

Definition at line 21 of file test8.py.