Peano 4
Loading...
Searching...
No Matches
convert::data::Variable Class Reference

Represents one variable that is subsequently attached to the patches of a file. More...

#include <Variable.h>

Collaboration diagram for convert::data::Variable:

Public Member Functions

 Variable (std::string name_, int dofsPerAxis_, int unknowns_, PeanoDataType type_, int dimensions_)
 
bool operator< (const convert::data::Variable &rhs) const
 
bool operator== (const convert::data::Variable &rhs) const
 
int getTotalNumberOfQuantitiesPerPatch () const
 This is getTotalNumberOfDofsPerPatch() times the number of unknowns per dof.
 
int getTotalNumberOfDofsPerPatch () const
 
int getVerticesPerAxisInCartesianMesh () const
 
int getTotalNumberOfVerticesInCartesianMesh () const
 
int getTotalNumberOfCellsInCartesianMesh () const
 
std::string toString () const
 

Data Fields

const std::string name
 
const int dofsPerAxis
 
const int unknowns
 If this unknown holds 1, it is scalar, for d it is vector data, and so forth.
 
const PeanoDataType type
 
const int dimensions
 

Detailed Description

Represents one variable that is subsequently attached to the patches of a file.

Definition at line 18 of file Variable.h.

Constructor & Destructor Documentation

◆ Variable()

convert::data::Variable::Variable ( std::string name_,
int dofsPerAxis_,
int unknowns_,
PeanoDataType type_,
int dimensions_ )

Definition at line 6 of file Variable.cpp.

References assertion1, and dofsPerAxis.

Member Function Documentation

◆ getTotalNumberOfCellsInCartesianMesh()

int convert::data::Variable::getTotalNumberOfCellsInCartesianMesh ( ) const

Definition at line 52 of file Variable.cpp.

References tarch::la::aPowI().

Here is the call graph for this function:

◆ getTotalNumberOfDofsPerPatch()

int convert::data::Variable::getTotalNumberOfDofsPerPatch ( ) const

Definition at line 32 of file Variable.cpp.

References tarch::la::aPowI().

Referenced by convert::filter::SelectValue::apply().

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

◆ getTotalNumberOfQuantitiesPerPatch()

int convert::data::Variable::getTotalNumberOfQuantitiesPerPatch ( ) const

This is getTotalNumberOfDofsPerPatch() times the number of unknowns per dof.

Definition at line 27 of file Variable.cpp.

Referenced by convert::input::PeanoTextPatchFileReader::addDataToPatch(), and convert::output::PeanoWriter::writePatchData().

Here is the caller graph for this function:

◆ getTotalNumberOfVerticesInCartesianMesh()

int convert::data::Variable::getTotalNumberOfVerticesInCartesianMesh ( ) const

Definition at line 47 of file Variable.cpp.

References tarch::la::aPowI().

Here is the call graph for this function:

◆ getVerticesPerAxisInCartesianMesh()

int convert::data::Variable::getVerticesPerAxisInCartesianMesh ( ) const

Definition at line 37 of file Variable.cpp.

References convert::data::Cell_Values.

◆ operator<()

bool convert::data::Variable::operator< ( const convert::data::Variable & rhs) const

Definition at line 17 of file Variable.cpp.

◆ operator==()

bool convert::data::Variable::operator== ( const convert::data::Variable & rhs) const

Definition at line 22 of file Variable.cpp.

◆ toString()

std::string convert::data::Variable::toString ( ) const

Definition at line 57 of file Variable.cpp.

References convert::data::Cell_Values.

Referenced by convert::input::PeanoTextPatchFileReader::addDataToPatch().

Here is the caller graph for this function:

Field Documentation

◆ dimensions

const int convert::data::Variable::dimensions

Definition at line 34 of file Variable.h.

Referenced by exahype2.symhype.PDE.PDE::_implementation_of_mapping_onto_named_quantities(), peano4.visualisation.PatchFileParser.PatchFileParser::_initialise_default_mapping_if_no_mapping_specified(), convert::filter::ConvertTreeIdIntoDataField::apply(), convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), convert::filter::SeparateResolutions::apply(), peano4.visualisation.PatchFileParser.PatchFileParser::box_num_within_patch(), Equations.Euler.Euler::eigenvalues(), Equations.Elastic.Elastic::flux(), Equations.Euler.Euler::flux(), peano4.visualisation.PatchFileParser.PatchFileParser::get_patch_boundaries(), matrixgenerators.DLinear.DLinear::getCellIdentityMatrix(), matrixgenerators.GaussLobatto.GaussLobatto::getCellToFaceMatrix(), matrices.DgGenerator::getCellToFaceMatrix(), matrices.MatrixGenerator::getCellToFaceMatrix(), matrixgenerators.DLinear.DLinear::getLumpedMassMatrix(), 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(), peano4.visualisation.PatchFileParser.PatchFileParser::parse_file(), peano4.visualisation.PatchFileParser.PatchFileParser::probe(), and convert::output::PeanoWriter::writeFile().

◆ dofsPerAxis

◆ name

◆ type

◆ unknowns

const int convert::data::Variable::unknowns

If this unknown holds 1, it is scalar, for d it is vector data, and so forth.

Definition at line 30 of file Variable.h.

Referenced by peano4.visualisation.PatchFileParser.PatchFileParser::__parse_meta_data_line(), exahype2.symhype.PDE.PDE::_implementation_of_mapping_onto_named_quantities(), convert::input::PeanoTextPatchFileReader::addDataToPatch(), convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), convert::filter::SeparateResolutions::apply(), avalanche.Avalanche::implementation_of_boundary_conditions(), exahype2.symhype.PDE.PDE::implementation_of_boundary_conditions(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_eigenvalues(), avalanche.Avalanche::implementation_of_flux(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_flux(), exahype2.symhype.PDE.PDE::implementation_of_homogeneous_Neumann_BC(), exahype2.symhype.PDE.PDE::implementation_of_initial_conditions(), avalanche.Avalanche::implementation_of_max_eigenvalue(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_max_eigenvalue(), avalanche.Avalanche::implementation_of_ncp(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_ncp(), avalanche.Avalanche::implementation_of_sources(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::implementation_of_sources(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::LaTeX(), exahype2.symhype.PDE.PDE::name_auxiliary_variable(), petsc.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation::number_of_matrix_entries_per_cell(), petsc.solvers.DiscontinuousGalerkinDiscretisation.DiscontinuousGalerkinDiscretisation::number_of_matrix_entries_per_face(), peano4.visualisation.PatchFileParser.PatchFileParser::probe(), exahype2.symhype.FirstOrderConservativePDEFormulation.FirstOrderConservativePDEFormulation::substitute_expression(), exahype2.symhype.PDE.PDE::unknown_identifier_for_plotter(), and convert::output::PeanoWriter::writeVariableDeclaration().


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