GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
GranOO3::Physic::Dof< NUM > Class Template Reference

#include <Dof.hpp>

Public Types

typedef std::array< int, NUM > DofArrayT
 
typedef std::array< DOF::State, NUM > DofStateArrayT
 

Public Member Functions

 Dof (const double *&)
 
Eigen::Map< Eigen::Matrix< double, NUM, 1 > > array () const
 
int get_global_index_for_dof (unsigned int) const
 
void set_global_index_for_dof (unsigned int, unsigned int index)
 
unsigned int get_bc_state (unsigned int) const
 
void set_bc_state (unsigned int, DOF::State)
 
void set_bc_state (DOF::State)
 
void clear_bc ()
 

Static Public Attributes

static const int N = NUM
 

Private Attributes

const double *& _ptr
 
int _global_index
 
std::array< int, NUM > _global_index_for_dof
 
std::array< DOF::State,NUM > _bc_state
 

Member Typedef Documentation

◆ DofArrayT

template<int NUM>
typedef std::array<int , NUM> GranOO3::Physic::Dof< NUM >::DofArrayT

◆ DofStateArrayT

template<int NUM>
typedef std::array<DOF::State, NUM> GranOO3::Physic::Dof< NUM >::DofStateArrayT

Constructor & Destructor Documentation

◆ Dof()

template<int NUM>
GranOO3::Physic::Dof< NUM >::Dof ( const double *&  p)

Member Function Documentation

◆ array()

template<int NUM>
Eigen::Map< Eigen::Matrix< double, NUM, 1 > > GranOO3::Physic::Dof< NUM >::array

◆ clear_bc()

template<int NUM>
void GranOO3::Physic::Dof< NUM >::clear_bc

◆ get_bc_state()

template<int NUM>
unsigned int GranOO3::Physic::Dof< NUM >::get_bc_state ( unsigned int  d) const

◆ get_global_index_for_dof()

template<int NUM>
int GranOO3::Physic::Dof< NUM >::get_global_index_for_dof ( unsigned int  d) const

◆ set_bc_state() [1/2]

template<int NUM>
void GranOO3::Physic::Dof< NUM >::set_bc_state ( DOF::State  s)

◆ set_bc_state() [2/2]

template<int NUM>
void GranOO3::Physic::Dof< NUM >::set_bc_state ( unsigned int  d,
DOF::State  s 
)

◆ set_global_index_for_dof()

template<int NUM>
void GranOO3::Physic::Dof< NUM >::set_global_index_for_dof ( unsigned int  d,
unsigned int  index 
)

Member Data Documentation

◆ _bc_state

template<int NUM>
std::array<DOF::State ,NUM> GranOO3::Physic::Dof< NUM >::_bc_state
private

◆ _global_index

template<int NUM>
int GranOO3::Physic::Dof< NUM >::_global_index
private

◆ _global_index_for_dof

template<int NUM>
std::array<int, NUM> GranOO3::Physic::Dof< NUM >::_global_index_for_dof
private

◆ _ptr

template<int NUM>
const double*& GranOO3::Physic::Dof< NUM >::_ptr
private

◆ N

template<int NUM>
const int GranOO3::Physic::Dof< NUM >::N = NUM
static

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