Peano
Loading...
Searching...
No Matches
Variable.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5
6namespace convert {
7 namespace data {
9 class Variable;
10 }
11}
12
13
19 public:
20 Variable(std::string name_, int dofsPerAxis_, int unknowns_, PeanoDataType type_, int dimensions_);
21
22 const std::string name;
23
24 const int dofsPerAxis;
25
30 const int unknowns;
31
33
34 const int dimensions;
35
36 // @todo Patch size (wieviel Punkte pro Dimension)
37/*
38 const int points;
39 int totalValues;
40 int mappings;
41 double* mapping;
42*/
43 bool operator<( const convert::data::Variable& rhs ) const;
44 bool operator==( const convert::data::Variable& rhs ) const;
45
54
55 std::string toString() const;
56};
57
58
59
Represents one variable that is subsequently attached to the patches of a file.
Definition Variable.h:18
const PeanoDataType type
Definition Variable.h:32
const int unknowns
If this unknown holds 1, it is scalar, for d it is vector data, and so forth.
Definition Variable.h:30
bool operator==(const convert::data::Variable &rhs) const
Definition Variable.cpp:22
bool operator<(const convert::data::Variable &rhs) const
Definition Variable.cpp:17
int getVerticesPerAxisInCartesianMesh() const
Definition Variable.cpp:37
Variable(std::string name_, int dofsPerAxis_, int unknowns_, PeanoDataType type_, int dimensions_)
Definition Variable.cpp:6
int getTotalNumberOfVerticesInCartesianMesh() const
Definition Variable.cpp:47
const std::string name
Definition Variable.h:22
std::string toString() const
Definition Variable.cpp:57
int getTotalNumberOfDofsPerPatch() const
Definition Variable.cpp:32
int getTotalNumberOfQuantitiesPerPatch() const
This is getTotalNumberOfDofsPerPatch() times the number of unknowns per dof.
Definition Variable.cpp:27
int getTotalNumberOfCellsInCartesianMesh() const
Definition Variable.cpp:52