![]() |
Peano
|
Represents one variable that is subsequently attached to the patches of a file. More...
#include <Variable.h>
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 |
Represents one variable that is subsequently attached to the patches of a file.
Definition at line 18 of file Variable.h.
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.
int convert::data::Variable::getTotalNumberOfCellsInCartesianMesh | ( | ) | const |
Definition at line 52 of file Variable.cpp.
References tarch::la::aPowI().
int convert::data::Variable::getTotalNumberOfDofsPerPatch | ( | ) | const |
Definition at line 32 of file Variable.cpp.
References tarch::la::aPowI().
Referenced by convert::filter::SelectValue::apply().
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().
int convert::data::Variable::getTotalNumberOfVerticesInCartesianMesh | ( | ) | const |
Definition at line 47 of file Variable.cpp.
References tarch::la::aPowI().
int convert::data::Variable::getVerticesPerAxisInCartesianMesh | ( | ) | const |
Definition at line 37 of file Variable.cpp.
References convert::data::Cell_Values.
bool convert::data::Variable::operator< | ( | const convert::data::Variable & | rhs | ) | const |
Definition at line 17 of file Variable.cpp.
bool convert::data::Variable::operator== | ( | const convert::data::Variable & | rhs | ) | const |
Definition at line 22 of file Variable.cpp.
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().
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().
const int convert::data::Variable::dofsPerAxis |
Definition at line 24 of file Variable.h.
Referenced by convert::input::PeanoTextPatchFileReader::addDataToPatch(), convert::filter::ConvertTreeIdIntoDataField::apply(), convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), convert::filter::SeparateResolutions::apply(), Variable(), and convert::output::PeanoWriter::writeVariableDeclaration().
const std::string convert::data::Variable::name |
Definition at line 22 of file Variable.h.
Referenced by exahype2.solvers.aderdg.kernels.Gemms.Gemms::__repr__(), swift2.particle.ExplicitEulerFixedSearchRadius.ExplicitEulerFixedSearchRadius::__setup_algorithm_steps(), swift2.particle.LeapfrogFixedSearchRadius.LeapfrogFixedSearchRadius::__setup_algorithm_steps(), swift2.particle.AlgorithmStep.AlgorithmStep::__str__(), peano4.datamodel.DoF.DoF::additional_load_and_store_arguments_for_other_dof(), swift2.particle.ExplicitEulerDynamicSearchRadius.ExplicitEulerDynamicSearchRadius::algorithm_steps(), swift2.particle.tests.DastgenTestDummyParticle.DastgenTestDummyParticle::algorithm_steps(), convert::filter::SeparateResolutions::apply(), convertFile(), peano4.solversteps.UserActionSet.UserActionSet::get_action_set_name(), peano4.datamodel.DoF.DoF::get_full_qualified_type(), peano4.datamodel.DoF.DoF::get_logical_type_name(), dastgen2.attributes.Enumeration.Enumeration::get_to_string(), convert::data::DataSet::getData(), swift2.particle.Particle.Particle::readme_descriptor(), convert::output::PeanoWriter::writePatchData(), and convert::output::PeanoWriter::writeVariableDeclaration().
const PeanoDataType convert::data::Variable::type |
Definition at line 32 of file Variable.h.
Referenced by convert::filter::ConvertTreeIdIntoDataField::apply(), convert::filter::Copy::apply(), convert::filter::Intersection::apply(), convert::filter::SelectValue::apply(), convert::filter::SeparateResolutions::apply(), convert::output::PeanoWriter::writePatchData(), and convert::output::PeanoWriter::writeVariableDeclaration().
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().