#include "b2node.H"
Public Member Functions | |
virtual bool | is_subnode (const Node *node) const |
![]() | |
virtual int | get_number_of_dof () const |
virtual size_t | set_global_dof_numbering (size_t index) |
virtual std::pair< size_t, size_t > | get_global_dof_numbering () const |
![]() | |
virtual | ~Object () |
Constructor and Initialization | |
size_t | get_id () const |
void | set_id (size_t id_) |
const std::string & | get_object_name () const override |
void | set_object_name (const std::string &name) |
virtual void | init () |
Coordinates | |
virtual int | get_number_of_coor () const =0 |
virtual void | set_coor (const double *coor)=0 |
template<typename T > | |
std::pair< int, const T * > | get_coor () const |
virtual std::pair< int, const double * > | get_coor_double () const =0 |
virtual std::pair< int, const b2000::csda< double > * > | get_coor_csda () const =0 |
virtual double * | get_coor (double *c) const =0 |
virtual void | set_weight (const double &weight)=0 |
virtual double | get_weight () const =0 |
static double * | get_coor_s (double *c, const Node *node) |
Degrees-of-freedom | |
static size_t * | get_global_dof_numbering_s (size_t *index, const Node *node) |
Additional Inherited Members | |
![]() | |
static ObjectType | type |
In addition to degrees-of-freedom, Node instances have a uniqe ID, a unique name, and coordinates. The number of coordinates can be arbitrary (e.g. nodes in 1D, 2D, 3D). Each coordinate is represented by a real number.
std::pair< int, const T * > b2000::Node::get_coor | ( | ) | const |
Utilized by elements etc.
|
pure virtual |
Copy the node coordinates.
c | A pointer to the destination array. |
|
pure virtual |
Must be overloaded by implementations of Node.
|
pure virtual |
Must be overloaded by implementations of Node.
|
inlinestatic |
Copy the node coordinates (static version).
c | A pointer to the destination array. |
node | A pointer to the Node instance. |
This function is overridden by all sub-classes of Node. Hence, the overhead of calling virtual functions can be avoided when the exact type of Node is known.
|
inlinestatic |
Copy the indices of the node's degrees-of-freedom (static version).
index | A pointer to the destination array. |
node | A pointer to the Node instance. |
|
inline |
|
pure virtual |
|
inlineoverridevirtual |
Reimplemented from b2000::Object.
|
pure virtual |
|
inlinevirtual |
This function is called by the Domain object and performs no operation. Derived classes can override this function to perform initialization of internal data.
|
inlinevirtual |
node | A pointer to a Node object. |
|
pure virtual |
Set the coordinates of the node. This function is called by the Domain object.
coor | A pointer to the array containing the coordinates. The length of the array must correspond to get_number_of_coor(). |
|
inline |
This function is called by the Domain object. In B2000++, internal node identifiers start from 0 and are consecutive.
|
inline |
This function is called by the Domain object. In B2000++, the naming is "branch.nid", where 'branch' is the branch number and 'nid' is the node number as specified in the MDL input file and corresponding to the first column of the NODA.branch dataset of the database.
|
pure virtual |