NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::NodeSimple Class Reference

Store node values and its dof. More...

#include <NodeSimple.h>

Public Member Functions

 NodeSimple (Eigen::VectorXd values)
 initizalizes the node values with values and initializes the dof numbers to zero More...
 
 NodeSimple (double value)
 initializes a 1D node with value and a dof number 0 More...
 
 NodeSimple (int dimension, int numInstances)
 
void AllocateInstances (int numInstances)
 Allocates numInstances full of zeros. More...
 
int GetNumInstances () const
 
const Eigen::VectorXd & GetValues (int instance=0) const
 
int GetDofNumber (int component) const
 
void SetValues (Eigen::VectorXd values, int instance=0)
 
void SetValue (int component, double value, int instance=0)
 
void SetDofNumber (int component, int dofNumber)
 
int GetNumValues () const
 

Detailed Description

Store node values and its dof.

Todo:
fix sized nodes?

Constructor & Destructor Documentation

NuTo::NodeSimple::NodeSimple ( Eigen::VectorXd  values)
inline

initizalizes the node values with values and initializes the dof numbers to zero

Parameters
valuesinititial node values
Remarks
this magic number -1 indicates an uninitialized state. I was not able to declare a static variable NOT_SET=-1. Maybe someone else can help.
NuTo::NodeSimple::NodeSimple ( double  value)
inline

initializes a 1D node with value and a dof number 0

Parameters
valueinitial node value
NuTo::NodeSimple::NodeSimple ( int  dimension,
int  numInstances 
)
inline

Member Function Documentation

void NuTo::NodeSimple::AllocateInstances ( int  numInstances)
inline

Allocates numInstances full of zeros.

int NuTo::NodeSimple::GetDofNumber ( int  component) const
inline
int NuTo::NodeSimple::GetNumInstances ( ) const
inline
int NuTo::NodeSimple::GetNumValues ( ) const
inline
const Eigen::VectorXd& NuTo::NodeSimple::GetValues ( int  instance = 0) const
inline
void NuTo::NodeSimple::SetDofNumber ( int  component,
int  dofNumber 
)
inline
void NuTo::NodeSimple::SetValue ( int  component,
double  value,
int  instance = 0 
)
inline
void NuTo::NodeSimple::SetValues ( Eigen::VectorXd  values,
int  instance = 0 
)
inline

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