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

This test checks that the DG solver leaves the input invariant if the RHS is constructed as b = A_DG * u_{random} and u = u_{random} is the initial guess. 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

This test checks that the DG solver leaves the input invariant if the RHS is constructed as b = A_DG * u_{random} and u = u_{random} is the initial guess.

Variable Documentation

◆ action

test1.action

Definition at line 44 of file test1.py.

◆ approximate_system_matrix_scaling

test1.approximate_system_matrix_scaling = matrices.get_A_tilde()

Definition at line 76 of file test1.py.

◆ args

test1.args = parser.parse_args()

Definition at line 53 of file test1.py.

◆ assembly_matrix

test1.assembly_matrix

Definition at line 69 of file test1.py.

◆ assembly_matrix_scaling

test1.assembly_matrix_scaling

Definition at line 69 of file test1.py.

◆ build_mode

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

Definition at line 120 of file test1.py.

◆ cell_from_face_projection_scaling

test1.cell_from_face_projection_scaling = matrices.get_cell_from_face_matrix()

Definition at line 74 of file test1.py.

◆ choices

test1.choices

Definition at line 52 of file test1.py.

◆ cube_size

float test1.cube_size = 1.0

Definition at line 129 of file test1.py.

◆ default

test1.default

Definition at line 43 of file test1.py.

◆ dest

test1.dest

Definition at line 43 of file test1.py.

◆ dimensions

test1.dimensions

Definition at line 131 of file test1.py.

◆ domain_size

test1.domain_size

Definition at line 133 of file test1.py.

◆ face_from_cell_projection_scaling

test1.face_from_cell_projection_scaling = matrices.get_face_from_cell_matrix()

Definition at line 72 of file test1.py.

◆ False

test1.False

Definition at line 44 of file test1.py.

◆ help

test1.help

Definition at line 43 of file test1.py.

◆ int

test1.int

Definition at line 43 of file test1.py.

◆ mass_matrix

test1.mass_matrix

Definition at line 70 of file test1.py.

◆ mass_matrix_scaling

test1.mass_matrix_scaling

Definition at line 70 of file test1.py.

◆ matrices

test1.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 61 of file test1.py.

◆ max_iterations

test1.max_iterations

Definition at line 135 of file test1.py.

◆ nodes_per_cell

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

Definition at line 107 of file test1.py.

◆ offset

test1.offset

Definition at line 132 of file test1.py.

◆ parser

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

Definition at line 42 of file test1.py.

◆ peano4_project

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

Definition at line 141 of file test1.py.

◆ plot_after_each_mesh_sweep

test1.plot_after_each_mesh_sweep

Definition at line 134 of file test1.py.

◆ preprocessing_action_set

test1.preprocessing_action_set

Definition at line 110 of file test1.py.

◆ project

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

Definition at line 56 of file test1.py.

◆ required

test1.required

Definition at line 52 of file test1.py.

◆ solver

test1.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=InitDofsDGTest1,
26 custom_plot_actionset=[("rand","getRand")]
27)

Definition at line 78 of file test1.py.

◆ True

test1.True

Definition at line 52 of file test1.py.

◆ type

test1.type

Definition at line 43 of file test1.py.