libsurf
Programmer's Documentation

Public Member Functions | Private Attributes | List of all members
NstRigidBody2 Class Reference

Detailed Description

Rigid-body element of type RBE2.

RBE2 broadcasts the displacement of one independent node to an arbitrary number of dependent nodes.

See Also
NstMesh

#include <nstelements.h>

Inheritance diagram for NstRigidBody2:
[legend]
Collaboration diagram for NstRigidBody2:
[legend]

Public Member Functions

 NstRigidBody2 (const NstMesh *m, uint c, const Indices &v)
 construct: v[0] is the number of nodes, v[1] the independent node
 
uint idtype () const
 return id code
 
void nstwrite (std::ostream &os) const
 append to text stream
 
uint add2viz (MeshFields &m) const
 draw as lines
 
uint indepNode () const
 independent node (first in nastran card)
 
uint ndep () const
 number of dependent nodes
 
uint depNode (uint k) const
 dependent node k
 
- Public Member Functions inherited from Element
 Element (uint *p)
 
uint id () const
 
void id (uint i)
 
const uint * vertices () const
 
uint * vertices ()
 
const uint * begin () const
 
uint * begin ()
 
const uint * end () const
 
uint * end ()
 
uint nvertices () const
 
void nvertices (uint nv) const
 
bool valid () const
 
virtual uint edges (uint ep[]) const
 
virtual uint faces (uint ep[]) const
 
void irotate ()
 
void translate (const Indices &perm)
 
void offset (int off)
 
uint32_t hash () const
 
bool vless (const Element &a) const
 
bool vequal (const Element &a) const
 
virtual void abqwrite (std::ostream &) const
 
- Public Member Functions inherited from NstElementBase
 NstElementBase (const NstMesh *m)
 default construction
 
 NstElementBase ()
 initialize undefined element
 
virtual ~NstElementBase ()
 intended as base class
 
uint pid () const
 access property id
 
void pid (uint p)
 set property id
 
uint mcid () const
 access material coordinate system
 
void mcid (uint m)
 set property id
 
void mesh (const NstMesh *m)
 attach to mesh
 
const NstMeshmesh () const
 access parent mesh
 
void index2gid (const Element &e, uint vg[]) const
 convert index to GID
 

Private Attributes

Indices vi
 mesh vertex indices (not gids)
 
uint cm
 component numbers of depedent grid points
 

Additional Inherited Members

- Static Public Member Functions inherited from Element
static uint maxedges ()
 
static uint maxfaces ()
 
static uint maxvertices ()
 
- Static Public Member Functions inherited from NstElementBase
static void indexOffsets (int gidoffset, int eidoffset)
 change id offsets for writing
 
- Protected Member Functions inherited from Element
void changeBase (uint *p)
 
- Static Protected Attributes inherited from NstElementBase
static int s_vixoffset = 0
 vertex index offset for output only
 
static int s_eixoffset = 0
 element index offset for output only
 

The documentation for this class was generated from the following files:
Generated on Mon Jan 24 2022 03:03:18 for libsurf by   doxygen 1.8.5