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

The same as Test 3, but for DG. More...

Variables

 parser = argparse.ArgumentParser(description='Multigrid - Poisson solver')
 
 dest
 
 type
 
 int
 
 default
 
 help
 
 action
 
 False
 
 choices
 
 required
 
 True
 
 args = parser.parse_args()
 
 project
 
 matrices
 
 assembly_matrix
 
 assembly_matrix_scaling
 
 mass_matrix
 
 mass_matrix_scaling
 
 face_from_cell_projection_scaling = matrices.get_face_from_cell_matrix()
 
 cell_from_face_projection_scaling = matrices.get_cell_from_face_matrix()
 
 approximate_system_matrix_scaling = matrices.get_A_tilde()
 
 solver
 
tuple nodes_per_cell = (args.poly_degree + 1) ** args.dimensions
 
 preprocessing_action_set
 
 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

The same as Test 3, but for DG.

This tests checks that the DG solver converges to u_{random} for the RHS constructed as b = A_DG * u_{random} with some random u_{random}.

Variable Documentation

◆ action

test6.action

Definition at line 40 of file test6.py.

◆ approximate_system_matrix_scaling

test6.approximate_system_matrix_scaling = matrices.get_A_tilde()

Definition at line 72 of file test6.py.

◆ args

test6.args = parser.parse_args()

Definition at line 49 of file test6.py.

◆ assembly_matrix

test6.assembly_matrix

Definition at line 65 of file test6.py.

◆ assembly_matrix_scaling

test6.assembly_matrix_scaling

Definition at line 65 of file test6.py.

◆ build_mode

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

Definition at line 118 of file test6.py.

◆ cell_from_face_projection_scaling

test6.cell_from_face_projection_scaling = matrices.get_cell_from_face_matrix()

Definition at line 70 of file test6.py.

◆ choices

test6.choices

Definition at line 48 of file test6.py.

◆ cube_size

float test6.cube_size = 1.0

Definition at line 127 of file test6.py.

◆ default

test6.default

Definition at line 39 of file test6.py.

◆ dest

test6.dest

Definition at line 39 of file test6.py.

◆ dimensions

test6.dimensions

Definition at line 129 of file test6.py.

◆ domain_size

test6.domain_size

Definition at line 131 of file test6.py.

◆ face_from_cell_projection_scaling

test6.face_from_cell_projection_scaling = matrices.get_face_from_cell_matrix()

Definition at line 68 of file test6.py.

◆ False

test6.False

Definition at line 40 of file test6.py.

◆ help

test6.help

Definition at line 39 of file test6.py.

◆ int

test6.int

Definition at line 39 of file test6.py.

◆ mass_matrix

test6.mass_matrix

Definition at line 66 of file test6.py.

◆ mass_matrix_scaling

test6.mass_matrix_scaling

Definition at line 66 of file test6.py.

◆ matrices

test6.matrices
Initial value:
1= mghype.api.matrixgenerators.GLMatrixFree(
2 args.dimensions,
3 args.poly_degree,
4 1, # Unknowns per cell dof. Scalar PDE here
5 2, # We use the penalty formulation (see docu in tutorials)
6 2
7)

Definition at line 57 of file test6.py.

◆ max_iterations

test6.max_iterations

Definition at line 133 of file test6.py.

◆ nodes_per_cell

tuple test6.nodes_per_cell = (args.poly_degree + 1) ** args.dimensions

Definition at line 103 of file test6.py.

◆ offset

test6.offset

Definition at line 130 of file test6.py.

◆ parser

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

Definition at line 38 of file test6.py.

◆ peano4_project

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

Definition at line 139 of file test6.py.

◆ plot_after_each_mesh_sweep

test6.plot_after_each_mesh_sweep

Definition at line 132 of file test6.py.

◆ preprocessing_action_set

test6.preprocessing_action_set

Definition at line 108 of file test6.py.

◆ project

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

Definition at line 52 of file test6.py.

◆ required

test6.required

Definition at line 48 of file test6.py.

◆ solver

test6.solver
Initial value:
1= mghype.matrixfree.solvers.api.DiscontinuousGalerkinDiscretisationPointWiseRiemannSolver(
2 name = "DGPoisson",
3 dimensions = args.dimensions,
4 poly_degree = args.poly_degree,
5 unknowns_per_cell_node = 1,
6 solutions_per_face_node = 2,
7 projections_per_face_node = 2,
8 min_h = args.meshsize,
9 max_h = args.meshsize,
10 assembly_matrix= assembly_matrix,
11 assembly_matrix_scaling = assembly_matrix_scaling,
12 mass_matrix = mass_matrix,
13 mass_matrix_scaling = mass_matrix_scaling,
14 face_from_cell_projection = face_from_cell_projection,
15 face_from_cell_projection_scaling = face_from_cell_projection_scaling,
16 cell_from_face_projection = cell_from_face_projection,
17 cell_from_face_projection_scaling = cell_from_face_projection_scaling,
18 riemann_matrix = matrices.get_face_face_riemann_problem_matrix(),
19 boundary_matrix = matrices.get_boundary_matrix(),
20 cell_relaxation = args.omega_c,
21 face_relaxation = args.omega_f, # default here is 1, i.e. we solve exactly. See class docu
22 approximate_system_matrix = approximate_system_matrix,
23 approximate_system_matrix_scaling = approximate_system_matrix_scaling,
24 solver_tolerance = 1e-6,
25 custom_init_actionset=InitDofsDGTest6,
26 custom_plot_actionset=[("rand","getRand")]
27)

Definition at line 74 of file test6.py.

◆ True

test6.True

Definition at line 48 of file test6.py.

◆ type

test6.type

Definition at line 39 of file test6.py.