|
Peano
|
Helper class to capture all of the attributes we need for each unknown, but were originally fixed to the PatchFileParser class itself. More...
Public Member Functions | |
| __init__ (self, unknown_name, dimensions, is_data_associated_to_cell) | |
| set_unknowns (self, unknowns) | |
| set_dof (self, dof) | |
| set_description (self, description) | |
| set_celldata (self, celldata) | |
| set_mapping (self, mapping) | |
| append_patch (self, patch) | |
| __repr__ (self) | |
Data Fields | |
| unknown_name | |
| unknowns | |
| dof | |
| description | |
| cell_data | |
| mapping | |
| is_data_associated_to_cell | |
| dimensions | |
Protected Member Functions | |
| _initialise_default_mapping_if_no_mapping_specified (self) | |
Helper class to capture all of the attributes we need for each unknown, but were originally fixed to the PatchFileParser class itself.
For instance, at time of writing the vis scripts cannot handle displaying separate vtu files for different data that is produced in Peano patch files. An excerpt:
begin patch offset 9.629630e-01 9.629630e-01 size 3.703704e-02 3.703704e-02 begin vertex-values "value" 0 0 0 0 end vertex-values begin vertex-values "rhs" 0 0 0 0 end vertex-values end patch
Previously, the only thing that would get parsed is the "value" field, before moving on. We aim to get it to do the "rhs" part as well.
However, we cannot assume that the number of dofs per axis or unknowns per patch volume will be the same for both. So we create this helper class to hold those.
We fix is_data_associated_to_cell to be the same as the PatchFileParser object which, in turn, means they must be the same for all of the unknowns
file_path: String String of input file path (including filename and extension)
cell_data: list of patches List of Patches with file data
dimensions: Integer Dimension of domains
dof: Integer Number of degrees of freedom per axis
unknowns: Integer Number of unknowns per patch volume
mapping: series of d-dimensional tuples Distorts the domain
set_identifier: String Can be empty to parse everything.
Definition at line 8 of file PatchFileParser.py.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.__init__ | ( | self, | |
| unknown_name, | |||
| dimensions, | |||
| is_data_associated_to_cell ) |
Definition at line 67 of file PatchFileParser.py.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.__repr__ | ( | self | ) |
Definition at line 121 of file PatchFileParser.py.
|
protected |
Definition at line 100 of file PatchFileParser.py.
References exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.dimensions, exahype2.symhype.PDE.PDE.dimensions, peano4.visualisation.input.PatchFileParser.UnknownAttributes.dimensions, peano4.visualisation.input.PatchFileParser.PatchFileParser.dimensions, convert::data::PatchData.dimensions, convert::data::Variable.dimensions, mghype.api.matrixgenerators.DLinear.DLinear.dimensions, mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity.dimensions, mghype.api.matrixgenerators.GaussLobatto.GaussLobatto.dimensions, mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree.dimensions, mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.dimensions, api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation.dimensions, equations.acoustic.Acoustic.dimensions, equations.advection.Advection.dimensions, equations.elastic.Elastic.dimensions, equations.equation.Equation.dimensions, equations.euler.Euler.dimensions, equations.swe.SWE_W_Bathymetry.dimensions, equations.swe.SWE_WO_Bathymetry.dimensions, peano4.visualisation.input.PatchFileParser.UnknownAttributes.dof, peano4.visualisation.input.PatchFileParser.UnknownAttributes.is_data_associated_to_cell, peano4.visualisation.input.PatchFileParser.PatchFileParser.is_data_associated_to_cell, and peano4.visualisation.input.PatchFileParser.UnknownAttributes.mapping.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.append_patch | ( | self, | |
| patch ) |
Definition at line 118 of file PatchFileParser.py.
References peano4.datamodel.Model.Model.cell_data, peano4.solversteps.Step.Step.cell_data, and peano4.visualisation.input.PatchFileParser.UnknownAttributes.cell_data.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_celldata | ( | self, | |
| celldata ) |
Definition at line 92 of file PatchFileParser.py.
References peano4.datamodel.Model.Model.cell_data, peano4.solversteps.Step.Step.cell_data, and peano4.visualisation.input.PatchFileParser.UnknownAttributes.cell_data.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_description | ( | self, | |
| description ) |
Definition at line 89 of file PatchFileParser.py.
References peano4.visualisation.input.PatchFileParser.UnknownAttributes.description, and package.Exahype2.description.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_dof | ( | self, | |
| dof ) |
Definition at line 85 of file PatchFileParser.py.
References peano4.visualisation.input.PatchFileParser.UnknownAttributes.dof.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_mapping | ( | self, | |
| mapping ) |
Definition at line 96 of file PatchFileParser.py.
References peano4.visualisation.input.PatchFileParser.UnknownAttributes.mapping.
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_unknowns | ( | self, | |
| unknowns ) |
Definition at line 81 of file PatchFileParser.py.
References exahype2.solvers.aderdg.ADERDG.ADERDG.unknowns(), exahype2.solvers.fv.FV.FV.unknowns(), exahype2.solvers.rkdg.RungeKuttaDG.RungeKuttaDG.unknowns(), exahype2.solvers.rkfd.CellCenteredFiniteDifferences.CellCenteredFiniteDifferences.unknowns(), exahype2.solvers.fv.FV.FV.unknowns(), exahype2.solvers.rkdg.RungeKuttaDG.RungeKuttaDG.unknowns(), exahype2.solvers.rkfd.CellCenteredFiniteDifferences.CellCenteredFiniteDifferences.unknowns(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.unknowns, exahype2.symhype.PDE.PDE.unknowns, peano4.visualisation.input.Patch.Patch.unknowns, peano4.visualisation.input.PatchFileParser.UnknownAttributes.unknowns, and convert::data::Variable.unknowns.

| peano4.visualisation.input.PatchFileParser.UnknownAttributes.cell_data |
Definition at line 76 of file PatchFileParser.py.
Referenced by peano4.datamodel.Model.Model.__str__(), peano4.datamodel.Model.Model.add_cell(), peano4.visualisation.input.PatchFileParser.UnknownAttributes.append_patch(), peano4.datamodel.Model.Model.clear(), peano4.datamodel.Model.Model.construct_output(), peano4.solversteps.Step.Step.get_cell_operations_signature(), peano4.solversteps.Step.Step.get_face_operations_signature(), peano4.solversteps.Step.Step.get_touch_cell_signature(), peano4.solversteps.Step.Step.get_vertex_operations_signature(), peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_celldata(), and peano4.solversteps.Step.Step.use_cell().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.description |
Definition at line 75 of file PatchFileParser.py.
Referenced by peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_description().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.dimensions |
Definition at line 79 of file PatchFileParser.py.
Referenced by peano4.visualisation.input.PatchFileParser.PatchFileParser.__parse_meta_data_region(), peano4.visualisation.input.PatchFileParser.PatchFileParser.__parse_patch_region(), exahype2.symhype.PDE.PDE._implementation_of_mapping_onto_named_quantities(), peano4.visualisation.input.PatchFileParser.UnknownAttributes._initialise_default_mapping_if_no_mapping_specified(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.convert_index_to_dim(), equations.euler.Euler.eigenvalues(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.eval_integral(), equations.elastic.Elastic.flux(), equations.euler.Euler.flux(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree.get_boundary_matrix(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree.get_cell_from_face_matrix(), mghype.api.matrixgenerators.DLinear.DLinear.get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity.get_cell_identity_matrix(), mghype.api.matrixgenerators.DLinear.DLinear.get_cell_mass_matrix(), mghype.api.matrixgenerators.DLinear.DLinear.get_cell_system_matrix_for_laplacian(), mghype.api.matrixgenerators.DLinearMassIdentity.DLinearMassIdentity.get_cell_system_matrix_for_laplacian(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.get_deriv(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.get_points_for_dimension(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.get_polynomial(), mghype.api.matrixgenerators.GaussLobatto.GaussLobattoMatrixFree.get_projection_matrices(), mghype.api.matrixgenerators.MatrixGenerator.MatrixGenerator.get_weights_for_dimension(), matrices.DgGenerator.getCellToFaceMatrix(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_eigenvalues(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_flux(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_max_eigenvalue(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_ncp(), api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation.nodes_per_cell(), api.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation.nodes_per_face(), and peano4.visualisation.input.PatchFileParser.PatchFileParser.parse_file().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.dof |
Definition at line 74 of file PatchFileParser.py.
Referenced by peano4.visualisation.input.PatchFileParser.UnknownAttributes._initialise_default_mapping_if_no_mapping_specified(), and peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_dof().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.is_data_associated_to_cell |
Definition at line 78 of file PatchFileParser.py.
Referenced by peano4.visualisation.input.PatchFileParser.PatchFileParser.__parse_meta_data_region(), peano4.visualisation.input.PatchFileParser.PatchFileParser.__parse_patch_region(), peano4.visualisation.input.PatchFileParser.UnknownAttributes._initialise_default_mapping_if_no_mapping_specified(), and peano4.visualisation.input.PatchFileParser.PatchFileParser.parse_file().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.mapping |
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.unknown_name |
Definition at line 69 of file PatchFileParser.py.
Referenced by peano4.visualisation.input.Patch.Patch.__repr__().
| peano4.visualisation.input.PatchFileParser.UnknownAttributes.unknowns |
Definition at line 72 of file PatchFileParser.py.
Referenced by exahype2.symhype.PDE.PDE._implementation_of_mapping_onto_named_quantities(), exahype2.symhype.PDE.PDE.implementation_of_boundary_conditions(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_eigenvalues(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_flux(), exahype2.symhype.PDE.PDE.implementation_of_homogeneous_Neumann_BC(), exahype2.symhype.PDE.PDE.implementation_of_initial_conditions(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_max_eigenvalue(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_ncp(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.implementation_of_sources(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.LaTeX(), exahype2.symhype.PDE.PDE.name_auxiliary_variable(), peano4.visualisation.input.PatchFileParser.UnknownAttributes.set_unknowns(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation.substitute_expression(), and exahype2.symhype.PDE.PDE.unknown_identifier_for_plotter().