Peano
Loading...
Searching...
No Matches
solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi Class Reference

Matrix-free Collocated Solver for higher order polynomials. More...

Inheritance diagram for solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi:
Collaboration diagram for solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi:

Public Member Functions

 __init__ (self, name, unknowns_per_node, dimensions, polynomial_degree, min_h, max_h, assembly_matrix, assembly_matrix_scaling, mass_matrix, mass_matrix_scaling, integration_points, solver_tolerance, cell_relaxation, face_relaxation=0.6, custom_init_actionset=None, custom_plot_actionset=None, custom_init_cell="", enable_plotting=True, plot_predicate="true" # enable custom plotting behaviour)
 Construct solver.
 add_to_plot (self, observer)
 Tell the project's observer how to plot the data.
 add_to_create_grid (self, observer)
 add_to_init_solution (self, observer)
 Solution initialisation.
 add_to_solve (self, observer)
 add_implementation_files_to_project (self, namespace, output, subdirectory="", abstract_overwrite=True)
 The solver creates two classes: An abstract base class and its implementations.
Public Member Functions inherited from solvers.api.Solver.Solver
 __init__ (self, name, min_h, max_h)
 add_to_Peano4_datamodel (self, datamodel, verbose)
 add_use_statements (self, observer)
 This routine should still be called even if overwritten in child class.
 typename (self)
 instance_name (self)
 Return the name of the object that will be created for this solver.
 create_readme_descriptor (self)
 add_to_abstract_solver (self, header, implementation)
 add_to_vertex_data (self, name, size)
 Add in extra attributes on the fly.
 add_to_cell_data (self, name, size)
 Add in extra attributes on the fly.
 add_to_face_data (self, name, size)
 Add in extra attributes on the fly.
 name (self)
 __str__ (self)

Data Fields

 preprocessing_action_set = None
 postprocessing_action_set = None
Data Fields inherited from solvers.api.Solver.Solver
 min_h = min_h
 max_h = max_h

Protected Member Functions

 _construct_narrow_to_interior_matrix (self)
 Construct the matrix which basically picks out the interior points.

Protected Attributes

int _dimensions = dimensions
 _polynomial_degree = polynomial_degree
 _unknowns_per_cell_node = unknowns_per_node
 _assembly_matrix = assembly_matrix
 _assembly_matrix_scaling = assembly_matrix_scaling
 _mass_matrix = mass_matrix
 _mass_matrix_scaling = mass_matrix_scaling
 _cell_relaxation = cell_relaxation
 _face_relaxation = face_relaxation
 _solver_tolerance = solver_tolerance
 _custom_init_actionset = custom_init_actionset
 _custom_plot_actionset = custom_plot_actionset
 _custom_init_cell = custom_init_cell
# true by default _enable_plotting = enable_plotting
 _plot_predicate = plot_predicate
 _integration_points = integration_points
 _degrees_of_freedom_per_cell = unknowns_per_node * ( polynomial_degree + 1) ** dimensions
 _degrees_of_freedom_per_face = unknowns_per_node * ( polynomial_degree + 1) ** (dimensions-1)
 _inner_degrees_of_freedom_per_cell = unknowns_per_node * ( polynomial_degree - 1) ** dimensions
int _basic_descend_order = 0
Protected Attributes inherited from solvers.api.Solver.Solver
 _name = name
 _vertex_data = peano4.api.datamodel.DaStGen2( name )
 _face_data = peano4.api.datamodel.DaStGen2( name )
 _cell_data = peano4.api.datamodel.DaStGen2( name )
str _abstract_solver_header_extras = """ """
str _abstract_solver_implementation_extras = """ """

Detailed Description

Matrix-free Collocated Solver for higher order polynomials.

This continuous Galerkin p-method works with Gauss-Lobatto nodes only, as we employ a block smoother.

Definition at line 17 of file ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.__init__ ( self,
name,
unknowns_per_node,
dimensions,
polynomial_degree,
min_h,
max_h,
assembly_matrix,
assembly_matrix_scaling,
mass_matrix,
mass_matrix_scaling,
integration_points,
solver_tolerance,
cell_relaxation,
face_relaxation = 0.6,
custom_init_actionset = None,
custom_plot_actionset = None,
custom_init_cell = "",
enable_plotting = True,
plot_predicate = "true" # enable custom plotting behaviour )

Construct solver.

Parameters
integration_points[Float] Sequence of polynomial_degree+1 entries which identify the position of the integration points along the unit interval.

Definition at line 27 of file ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.py.

References __init__().

Referenced by __init__().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ _construct_narrow_to_interior_matrix()

◆ add_implementation_files_to_project()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_implementation_files_to_project ( self,
namespace,
output,
subdirectory = "",
abstract_overwrite = True )

The solver creates two classes: An abstract base class and its implementations.

The abstract base class will be overwritten if there is one in the directory. I pipe all the Python constants into this base class, so they are available in the C++ code.

Definition at line 201 of file ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.py.

References peano4.api.output.ActionSet.ActionSet.__class__, peano4.api.output.Jinja2TemplatedHeaderImplementationFilePair.Jinja2TemplatedHeaderImplementationFilePair.__class__, peano4.api.output.TemplatedHeaderFile.TemplatedHeaderFile.__class__, solvers.api.Solver.Solver._abstract_solver_header_extras, solvers.api.Solver.Solver._abstract_solver_implementation_extras, _assembly_matrix, _assembly_matrix_scaling, _cell_relaxation, _construct_narrow_to_interior_matrix(), _custom_init_cell, _degrees_of_freedom_per_cell, _degrees_of_freedom_per_face, api.Project.Project._dimensions, convert::input::PeanoTextPatchFileReader._dimensions, exahype2.api.dslhype.SyntaxTree.Matrix._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._dimensions, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._dimensions, exahype2.api.dslhype.SyntaxTree.Subscript._dimensions, exahype2.api.dslhype.SyntaxTree.TDataBlock._dimensions, exahype2.api.dslhype.SyntaxTree.TSimpleMemref._dimensions, exahype2.api.Project.Project._dimensions, exaparty.api.Project.Project._dimensions, _dimensions, _face_relaxation, _inner_degrees_of_freedom_per_cell, _integration_points, solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi._mass_matrix, solvers.api.CollocatedMG.CollocatedMG._mass_matrix, _mass_matrix, solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi._mass_matrix_scaling, solvers.api.CollocatedMG.CollocatedMG._mass_matrix_scaling, _mass_matrix_scaling, dastgen2.attributes.Attribute.Attribute._name, dastgen2.attributes.BooleanArray.BooleanArray._name, dastgen2.attributes.Enumeration.Enumeration._name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling._name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling._name, exagrype.api.FOSOSolver.FOSOSolver._name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling._name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling._name, exahype2.api.AuxiliaryVariables.AuxiliaryVariables._name, exahype2.api.dslhype.SyntaxTree.Construction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromDotProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromExisting._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromFunction._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromMatrixVectorProduct._name, exahype2.api.dslhype.SyntaxTree.DataBlockConstructionFromOperation._name, exahype2.api.dslhype.SyntaxTree.MemoryAllocation._name, exahype2.api.dslhype.SyntaxTree.MemoryDeallocation._name, exahype2.api.Solver.Solver._name, solvers.api.Solver.Solver._name, _polynomial_degree, solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi._solver_tolerance, solvers.api.CollocatedMG.CollocatedMG._solver_tolerance, _solver_tolerance, _unknowns_per_cell_node, exaparty.api.particle.Particle.Particle.max_h, solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi.max_h, solvers.api.CollocatedMG.CollocatedMG.max_h, max_h, exaparty.api.particle.Particle.Particle.min_h, solvers.api.Solver.Solver.min_h, and solvers.api.Solver.Solver.typename().

Here is the call graph for this function:

◆ add_to_create_grid()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_to_create_grid ( self,
observer )

◆ add_to_init_solution()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_to_init_solution ( self,
observer )

Solution initialisation.

We can either use the standard initialisation procedure or pass in another one when we instantiate this solver class.

Definition at line 129 of file ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.py.

References solvers.api.CollocatedDLinearDiscretisationWithPointJacobi.CollocatedDLinearDiscretisationWithPointJacobi._custom_init_actionset, and _custom_init_actionset.

◆ add_to_plot()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_to_plot ( self,
observer )

◆ add_to_solve()

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.add_to_solve ( self,
observer )

Field Documentation

◆ _assembly_matrix

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._assembly_matrix = assembly_matrix
protected

◆ _assembly_matrix_scaling

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._assembly_matrix_scaling = assembly_matrix_scaling
protected

◆ _basic_descend_order

int solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._basic_descend_order = 0
protected

◆ _cell_relaxation

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._cell_relaxation = cell_relaxation
protected

◆ _custom_init_actionset

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._custom_init_actionset = custom_init_actionset
protected

◆ _custom_init_cell

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._custom_init_cell = custom_init_cell
protected

◆ _custom_plot_actionset

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._custom_plot_actionset = custom_plot_actionset
protected

◆ _degrees_of_freedom_per_cell

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._degrees_of_freedom_per_cell = unknowns_per_node * ( polynomial_degree + 1) ** dimensions
protected

◆ _degrees_of_freedom_per_face

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._degrees_of_freedom_per_face = unknowns_per_node * ( polynomial_degree + 1) ** (dimensions-1)
protected

◆ _dimensions

◆ _enable_plotting

# true by default solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._enable_plotting = enable_plotting
protected

◆ _face_relaxation

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._face_relaxation = face_relaxation
protected

◆ _inner_degrees_of_freedom_per_cell

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._inner_degrees_of_freedom_per_cell = unknowns_per_node * ( polynomial_degree - 1) ** dimensions
protected

◆ _integration_points

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._integration_points = integration_points
protected

◆ _mass_matrix

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._mass_matrix = mass_matrix
protected

◆ _mass_matrix_scaling

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._mass_matrix_scaling = mass_matrix_scaling
protected

◆ _plot_predicate

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._plot_predicate = plot_predicate
protected

◆ _polynomial_degree

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._polynomial_degree = polynomial_degree
protected

◆ _solver_tolerance

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._solver_tolerance = solver_tolerance
protected

◆ _unknowns_per_cell_node

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._unknowns_per_cell_node = unknowns_per_node
protected

◆ postprocessing_action_set

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.postprocessing_action_set = None

◆ preprocessing_action_set

solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.preprocessing_action_set = None

The documentation for this class was generated from the following file: