Peano
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, dofsPerAxis, and unknowns.

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 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(), convert::filter::ConvertTreeIdIntoDataField::apply(), convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), convert::filter::SeparateResolutions::apply(), 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.GLMatrixFree::get_boundary_matrix(), mghype.api.matrixgenerators.GaussLobatto.GLMatrixFree::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(), api.solvers.DiscontinuousGalerkinDiscretisation.AssemblePetscMatrix::get_constructor_body(), 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.GLMatrixFree::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(), peano4.visualisation.input.PatchFileParser.PatchFileParser::parse_file(), 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 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(), 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(), exahype2.symhype.PDE.PDE::unknown_identifier_for_plotter(), Variable(), and convert::output::PeanoWriter::writeVariableDeclaration().


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