33 #ifndef __H__UG__LIB_DISC__LOCAL_FINITE_ELEMENT__LOCAL_DOF_SET__
34 #define __H__UG__LIB_DISC__LOCAL_FINITE_ELEMENT__LOCAL_DOF_SET__
88 inline size_t id()
const {
return m_id;}
131 virtual size_t num_sh()
const;
141 size_t num_dof(
int d,
size_t id)
const;
186 std::ostream&
operator<<(std::ostream& out,
const LocalDoFSet& v);
189 std::ostream&
operator<<(std::ostream& out,
const DimLocalDoFSet<dim>& v);
Definition: local_dof_set.h:195
CommonLocalDoFSet()
constructor
Definition: local_dof_set.h:201
void clear()
reset all numbers of dofs to not set
Definition: local_dof_set.cpp:114
int num_dof(ReferenceObjectID roid) const
number of dofs on a reference element type
Definition: local_dof_set.h:210
void add(const LocalDoFSet &set)
add a local dof set to the intersection
Definition: local_dof_set.cpp:122
int m_vNumDoF[NUM_REFERENCE_OBJECTS]
Definition: local_dof_set.h:213
@ NOT_SPECIFIED
Definition: local_dof_set.h:198
Definition: local_dof_set.h:158
bool operator!=(const DimLocalDoFSet< TDim > &v) const
inequality check
Definition: local_dof_set.h:180
virtual bool position(size_t i, MathVector< TDim > &pos) const =0
local position of DoF i
bool operator==(const DimLocalDoFSet< TDim > &v) const
equality check
Definition: local_dof_set.cpp:87
DimLocalDoFSet()
constructor
Definition: local_dof_set.cpp:83
virtual bool exact_position_available() const =0
returns if the local dof position are exact
Definition: local_dof_set.h:58
int m_dim
dimension of sub-geometric object
Definition: local_dof_set.h:103
size_t id() const
returns the index for the geometric object (w.r.t reference element numbering)
Definition: local_dof_set.h:88
size_t m_id
id of sub-geometric object in counting of reference element
Definition: local_dof_set.h:106
LocalDoF()
default constructor
Definition: local_dof_set.h:61
LocalDoF(int dim, size_t id, size_t offset)
constructor
Definition: local_dof_set.h:74
size_t m_offset
offset if several DoFs associated to the same geometric object
Definition: local_dof_set.h:109
bool operator!=(const LocalDoF &v) const
inequality check
Definition: local_dof_set.h:99
bool operator==(const LocalDoF &v) const
equality check
Definition: local_dof_set.h:94
size_t offset() const
returns the offset for the geometric object
Definition: local_dof_set.h:91
void set(int dim, size_t id, size_t offset)
sets the values
Definition: local_dof_set.h:79
int dim() const
returns the dimension of associated geometric object
Definition: local_dof_set.h:85
Definition: local_dof_set.h:120
virtual size_t num_dof(ReferenceObjectID roid) const =0
returns the number of DoFs on a sub-geometric object type
virtual size_t num_sh() const
Definition: local_dof_set.cpp:46
bool operator!=(const LocalDoFSet &v) const
inequality check
Definition: local_dof_set.h:147
virtual ~LocalDoFSet()
virtual destructor
Definition: local_dof_set.h:150
int dim() const
returns the reference dimension
Definition: local_dof_set.cpp:42
size_t num_dof() const
Definition: local_dof_set.h:130
bool operator==(const LocalDoFSet &v) const
equality check
Definition: local_dof_set.cpp:60
virtual const LocalDoF & local_dof(size_t dof) const =0
returns the DoFs storage
virtual ReferenceObjectID roid() const =0
returns the Reference object id of the corresponding grid object
a mathematical Vector with N entries.
Definition: math_vector.h:97
std::ostream & operator<<(std::ostream &outStream, const ug::MathMatrix< 2, 2 > &m)
Definition: math_matrix.cpp:38
ReferenceObjectID
these ids are used to identify the shape of a geometric object.
Definition: grid_base_objects.h:74
@ NUM_REFERENCE_OBJECTS
Definition: grid_base_objects.h:85