sfem::mesh::DofHandler Class Reference

... the abstract base class for element types More...

#include <dofhandler.hpp>

Collaboration diagram for sfem::mesh::DofHandler:

Collaboration graph
[legend]

List of all members.

Public Types

typedef size_t count_type
typedef unsigned int index_type
typedef double real_type
typedef tmath::sparse::SparseMatrix TSparseMatrix
typedef
tmath::sparse::DynamicSparseMatrix 
TSparseMatrix_RandomSetter
typedef tmath::Matrix TVector
typedef Eigen::Map< TVector > TVectorView
typedef unsigned int uint
typedef unsigned short ushort

Public Member Functions

TVector & activeDofVector ()
const TVector & activeDofVector () const
TSparseMatrix & activeMassMatrix ()
const TSparseMatrix & activeMassMatrix () const
void activeMassMatrixClear ()
TVector & activeResForceVector ()
const TVector & activeResForceVector () const
TSparseMatrix & activeStiffnessMatrix ()
const TSparseMatrix & activeStiffnessMatrix () const
void activeStiffnessMatrixClear ()
TVector & activeVeloVector ()
const TVector & activeVeloVector () const
void assembleMatrix (tmath::sparse::DynamicSymSparseMatrix &dest, const real_type &value, const index_type &row_available_dof_idx, const index_type &col_available_dof_idx) const
 assembles global sparse matrix by adding the given value at proper position (only triangular parts)
void assembleMatrix (tmath::sparse::DynamicSparseMatrix &dest, const real_type &value, const index_type &row_available_dof_idx, const index_type &col_available_dof_idx) const
 assembles global sparse matrix by adding the given value at proper position
void assembleVector (TVector &dest, const real_type &value, const index_type &available_dof_idx) const
 assembles global dense vector
void buildActiveConstraintLoad ()
void buildActiveDofVectorFromGlobal ()
void buildActiveMassMatrixFromGlobal ()
void buildActiveMassMatrixFromGlobalAndClearGlobal ()
void buildActiveResForceVectorFromGlobal ()
void buildActiveStiffnessMatrixFromGlobal ()
void buildActiveStiffnessMatrixFromGlobalAndClearGlobal ()
void buildActiveVeloVectorFromGlobal ()
void buildConstraintMatrix ()
void buildGlobalDofVectorFromActive ()
void buildGlobalVeloVectorFromActive ()
InternalConstraintDefinitionconstraintDefinitions ()
const
InternalConstraintDefinition
constraintDefinitions () const
TSparseMatrix & constraintMatrix ()
const TSparseMatrix & constraintMatrix () const
TVector & constraintVectorRhs ()
const TVector & constraintVectorRhs () const
TVector & energy ()
const TVector & energy () const
const uint getGlobalDofIndexFromMechanicalNodalDof (const uint &part_idx, const index_type &node_idx, const ushort &nodal_dof) const
 returns the global available dof index of the given mechanical local dof (no error check!)
const index_type getNumberActiveDofs () const
 returns the dimension of objects in active dof
const index_type getNumberGlobalDofs () const
 returns the dimension of global objects
TVector & globalDofVector ()
const TVector & globalDofVector () const
TSparseMatrix & globalMassMatrix ()
const TSparseMatrix & globalMassMatrix () const
void globalMassMatrixClear ()
TVector & globalResForceVector ()
const TVector & globalResForceVector () const
TSparseMatrix & globalStiffnessMatrix ()
const TSparseMatrix & globalStiffnessMatrix () const
void globalStiffnessMatrixClear ()
TVector & globalVeloVector ()
const TVector & globalVeloVector () const
uint numberNodalMechanicalDofs (const uint &part_idx, const index_type &node_idx) const
 returns the number of global available mechanical dofs of given point
void reallocateGlobalDofs (const mesh::MeshAssembly &structure)

Public Attributes

TVector global_coordinates

Protected Attributes

TVector active_dof
 contains values of all active dof
TSparseMatrix active_mass_matrix
 the current mass matrix in active dof
TVector active_resforce_vector
 current restoring force vector in active dof:
TSparseMatrix active_stiffness_matrix
 current stiffness matrix in active dof:
InternalConstraintDefinition constraint_definitions
TSparseMatrix constraint_matrix
TVector constraint_vector_rhs
TVector energy_vector
 current energy vector
TVector global_dof
 contains values of all available dof
TSparseMatrix global_mass_matrix
 the current mass matrix in available dofs
std::vector< std::vector
< index_type > > 
global_mechanical_displacements_index_from_node_index
TVector global_resforce_vector
 current restoring force vector in available dofs:
TSparseMatrix global_stiffness_matrix
 current stiffness matrix in available dofs:
TVector m_active_velo
 contains values of all active velocities
TVector m_global_velo
 contains values of all available velocities
index_type number_active_dof
index_type number_global_dof

Private Types

typedef tmath::sparse::SparseMatrix Type_SparseMatrix
typedef
tmath::sparse::SymSparseMatrix 
Type_SymSparseMatrix


Detailed Description

... the abstract base class for element types

Member Function Documentation

void sfem::mesh::DofHandler::reallocateGlobalDofs ( const mesh::MeshAssembly structure  ) 

reallocates and resets available dof settings determines how many dofs are available and determine which available dof is linked to which node

Parameters:
structure ... is the FE structure to be analyzed


Member Data Documentation

std::vector< std::vector<index_type> > sfem::mesh::DofHandler::global_mechanical_displacements_index_from_node_index [protected]

determines the indices of nodal dofs in the global available_disp vector Usage: available_mechanical_displacements_index_from_node_index[part][node] with part...part_index, node...node_index will return the index of the first nodal dof. the other local dofs of the same node will follow in the global array, for example the index of the third local dof is (available_mechanical_displacements_index_from_node_index[part][node]+2)


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

Generated on Wed Nov 17 17:35:54 2010 for 'sfem' Module Programming Interface by  doxygen 1.5.6