Peano
Loading...
Searching...
No Matches
peano4.visualisation.output.Visualiser.PatchFileData Class Reference

Helper class to capture the important data coming from a patch file. More...

Public Member Functions

 __init__ (self, unknown_name, dimensions)
 
 copy_data_from_parser_object (self, unknown_attributes)
 pass in a UnknownAttributes object from PatchFileParser.py, steal everything and return
 
 apply_renderer_to_data (self, renderer)
 Pass in a renderer object which will modify everything in the way that the filter.render() function intends.
 
 __repr__ (self)
 

Protected Attributes

 _dimensions
 
 _unknown_name
 
 _cell_data
 
 _dof
 
 _unknowns
 
 _is_data_associated_to_cell
 
 _description
 
 _mapping
 

Detailed Description

Helper class to capture the important data coming from a patch file.

This is what we use to capture the combined patch file data from. We could keep everything in the helper class from PatchFileParser, but the intention during the rewrite was to keep everything fairly close to the way the original vis scripts worked.

Definition at line 120 of file Visualiser.py.

Constructor & Destructor Documentation

◆ __init__()

peano4.visualisation.output.Visualiser.PatchFileData.__init__ ( self,
unknown_name,
dimensions )

Definition at line 130 of file Visualiser.py.

Member Function Documentation

◆ __repr__()

peano4.visualisation.output.Visualiser.PatchFileData.__repr__ ( self)

Definition at line 191 of file Visualiser.py.

◆ apply_renderer_to_data()

peano4.visualisation.output.Visualiser.PatchFileData.apply_renderer_to_data ( self,
renderer )

Pass in a renderer object which will modify everything in the way that the filter.render() function intends.

This is basically the same as render_or_validate_for_each_unknown() from the PatchFileParser class. The reason why we don't need to do it for each unknown here is that the different unknowns have been captured in by the caller of this function

We could rename this to something more general, since i think we modify the same attributes in the same order as the validate function

Definition at line 159 of file Visualiser.py.

References peano4.visualisation.output.Visualiser.PatchFileData._cell_data, solvers.api.Solver.Solver._cell_data, peano4.visualisation.output.Visualiser.PatchFileData._description, peano4.visualisation.output.Visualiser.Visualiser._description, exahype2.Project.Project._dimensions, peano4.visualisation.output.Visualiser.PatchFileData._dimensions, peano4.visualisation.output.Visualiser.Visualiser._dimensions, swift2.Project.Project._dimensions, convert::input::PeanoTextPatchFileReader._dimensions, api.Project.Project._dimensions, solvers.api.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi.ContinuousGalerkinDiscretisationGaussLobattoWithBlockJacobi._dimensions, solvers.api.DiscontinuousGalerkinDiscretisationPointWiseRiemannSolver.DiscontinuousGalerkinDiscretisationPointWiseRiemannSolver._dimensions, tarch::plotter::griddata::blockstructured::PeanoHDF5PatchFileWriter._dimensions, tarch::plotter::griddata::blockstructured::PeanoTextPatchFileWriter._dimensions, scenarios.acoustic_planar_waves.AcousticPlanarWaves._dimensions, scenarios.advection_linear.AdvectionLinear._dimensions, scenarios.elastic_planar_waves.ElasticPlanarWaves._dimensions, scenarios.euler_gaussian_bell.EulerGaussianBell._dimensions, scenarios.euler_isotropic_vortex.EulerIsotropicVortex._dimensions, scenarios.scenario.Scenario._dimensions, scenarios.swe_radial_dam_break.SWERadialDamBreak._dimensions, scenarios.swe_resting_lake.SWERestingLake._dimensions, peano4.visualisation.output.Visualiser.PatchFileData._dof, peano4.visualisation.output.Visualiser.PatchFileData._is_data_associated_to_cell, peano4.visualisation.output.Visualiser.Visualiser._is_data_associated_to_cell, peano4.visualisation.output.Visualiser.PatchFileData._mapping, exahype2.solvers.aderdg.ADERDG.ADERDG._unknowns, exahype2.solvers.fv.FV.FV._unknowns, exahype2.solvers.rkdg.RungeKuttaDG.RungeKuttaDG._unknowns, exahype2.solvers.rkfd.CellCenteredFiniteDifferences.CellCenteredFiniteDifferences._unknowns, peano4.visualisation.output.Visualiser.PatchFileData._unknowns, exahype2::CellAccess._unknowns, exahype2::enumerator::AoSLexicographicEnumerator._unknowns, exahype2::enumerator::AoSoALexicographicEnumerator._unknowns, exahype2::enumerator::FaceAoSLexicographicEnumerator._unknowns, exahype2::enumerator::SingleDoFEnumerator._unknowns, and exahype2::enumerator::SoALexicographicEnumerator._unknowns.

◆ copy_data_from_parser_object()

Field Documentation

◆ _cell_data

◆ _description

peano4.visualisation.output.Visualiser.PatchFileData._description
protected

◆ _dimensions

◆ _dof

peano4.visualisation.output.Visualiser.PatchFileData._dof
protected

◆ _is_data_associated_to_cell

peano4.visualisation.output.Visualiser.PatchFileData._is_data_associated_to_cell
protected

◆ _mapping

peano4.visualisation.output.Visualiser.PatchFileData._mapping
protected

◆ _unknown_name

peano4.visualisation.output.Visualiser.PatchFileData._unknown_name
protected

◆ _unknowns


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