23#ifndef _GEMA_STATE_VAR_H_
24#define _GEMA_STATE_VAR_H_
72 int dim()
const {
return _info->size(); }
78 int isScalar()
const {
return _info->isScalar(); }
Auxiliar class used to store the definition of a state variable.
Definition gmStateVar.h:41
int baseDof() const
Returns the base degree of freedom associated to this state variable.
Definition gmStateVar.h:81
bool isCellBased() const
Returns true if this is a cell based state variable.
Definition gmStateVar.h:62
void setGroupId(int groupId)
Sets the state var group id. Should not be used by general code, only by the ModelData class.
Definition gmStateVar.h:96
GmValueInfo * info()
Returns the info object associated to this state variable.
Definition gmStateVar.h:50
void setGroupId(QString name, int groupId)
Sets the state var group name and id.
Definition gmStateVar.h:93
const GmValueInfo * info() const
Returns the info object associated to this state variable.
Definition gmStateVar.h:47
void setBaseDof(int dof)
Sets the base degree of freedom associated with this state variable.
Definition gmStateVar.h:90
QString groupName() const
Returns the state variable group name.
Definition gmStateVar.h:87
int groupId() const
Returns the state variable group id.
Definition gmStateVar.h:84
QString id() const
Returns the state variable id.
Definition gmStateVar.h:53
int dim() const
Returns the number of dimensions for the state var.
Definition gmStateVar.h:72
int _dof
The base degree of freedom (dof) number associated to this state variable.
Definition gmStateVar.h:107
int _groupId
Group identifier allowing several state vars to be treated equally, for example, when applying calcul...
Definition gmStateVar.h:108
Unit unit() const
Returns the unit in which values of the state variable are expressed.
Definition gmStateVar.h:65
GmValueInfo * _info
State var information.
Definition gmStateVar.h:106
bool isNodeBased() const
Returns true if this is a node based state variable.
Definition gmStateVar.h:59
int isScalar() const
Returns true if the state var is scalar. Notice that being a scalar cant be inferred by dim() == 1 si...
Definition gmStateVar.h:78
void setGroupName(QString name)
Sets the state var group name. Should be used only before the state var has been added to the model....
Definition gmStateVar.h:102
QString description() const
Returns the state variable description.
Definition gmStateVar.h:56
QString _groupName
Group name.
Definition gmStateVar.h:109
Auxiliar class used to store the definition of a value. It can be used to store informations about st...
Definition gmValueInfo.h:132
Declaration of useful configuration definitions for the Core library.
#define GMC_API_EXPORT
Macro for controlling if the class is being exported (GEMA_CORE_LIB defined) or imported (GEMA_CORE_L...
Definition gmCoreConfig.h:35
Declaration of the GmValueInfo class.
@ GM_NODE_STATEVAR
This value set stores state variables attached to nodes.
Definition gmValueInfo.h:40
@ GM_CELL_STATEVAR
This value set stores state variables attached to cells.
Definition gmValueInfo.h:42