MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
midaspace::PointDOFsAttributes Class Reference

Base class for management of DOF (Degrees Of Freedom) attributes at a node. More...

#include <substructs.h>

Inheritance diagram for midaspace::PointDOFsAttributes:
midaspace::GeomCompSubject midaspace::GeometrySubject midaspace::ProblemSubject midaspace::PointDOFsBCPM midaspace::PointDOFsCondense midaspace::PointDOFsRANHN

Public Member Functions

 PointDOFsAttributes (long gid, const GeometryComponent *owner)
 CONSTRUCTOR. More...
 
 PointDOFsAttributes (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
 PointDOFsAttributes (const PointDOFsAttributes *src, const GeometryComponent *owner)
 CONSTRUCTOR COPY. More...
 
virtual ~PointDOFsAttributes ()
 DESTRUCTOR. More...
 
virtual void checkConsistency (void) const
 Checks data consistency. More...
 
void set_ndofs (int n)
 
void set_att (int i, int val)
 
void set_ndofsatt (int n, int *val)
 
void set_ndofsatt (int n, long *val)
 
int give_ndofs (void) const
 
int give_att (int i) const
 
int give_mask (int i) const
 
const int * give_att (void) const
 
const int * give_mask (void) const
 
bool mask_is_null (void) const
 
bool is_identical_with (const PointDOFsAttributes *src) const
 
void scan_ndofs_new (const char *&str)
 *** SCAN *** More...
 
void scan_att_ndofs_new (const char *&str)
 
void scan_mask_ndofs_new (const char *&str)
 
void scan_ndofs_expected (const char *&str)
 
void scan_att_ndofs_expected (const char *&str)
 
void scan_mask_ndofs_expected (const char *&str)
 
void rescan_att (const char *&str)
 
void scan_att (const char *&str)
 
void scan_mask (const char *&str)
 
void scan_att_new_sparse (const char *&str)
 
- Public Member Functions inherited from midaspace::GeomCompSubject
 GeomCompSubject (long gid)
 CONSTRUCTOR. More...
 
 GeomCompSubject (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
 GeomCompSubject (long gid, const Geometry *owner)
 CONSTRUCTOR. More...
 
 GeomCompSubject (long gid, const GeometryComponent *owner)
 CONSTRUCTOR. More...
 
virtual ~GeomCompSubject ()
 DESTRUCTOR. More...
 
void set_GC (const GeometryComponent *owner)
 
const GeometryComponentgive_GC (void) const
 
- Public Member Functions inherited from midaspace::GeometrySubject
 GeometrySubject (long gid)
 CONSTRUCTOR. More...
 
 GeometrySubject (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
 GeometrySubject (long gid, const Geometry *owner)
 CONSTRUCTOR. More...
 
virtual ~GeometrySubject ()
 DESTRUCTOR. More...
 
void set_Geom (const Geometry *owner)
 
void reset_Geom (const Geometry *owner)
 
const Geometrygive_Geom (void) const
 
- Public Member Functions inherited from midaspace::ProblemSubject
 ProblemSubject (long gid)
 CONSTRUCTOR. More...
 
 ProblemSubject (long gid, const Problem *owner)
 CONSTRUCTOR. More...
 
virtual ~ProblemSubject ()
 DESTRUCTOR. More...
 
virtual classID give_classid () const
 Returns classID - class identification. More...
 
virtual void initialize (void)
 = 0; = 0; More...
 
virtual void finitialize (void)
 finalize problem preprocessing More...
 
void set_ID (long val)
 
long give_ID () const
 
void set_Pd (const Problem *owner)
 
const Problemgive_Pd (void) const
 

Protected Attributes

int ndofs
 Number of DOFs at a node. More...
 
int * att
 Attribute array is "ndofs" long. More...
 
int * mask
 Mask array is "ndofs" long. More...
 
- Protected Attributes inherited from midaspace::GeomCompSubject
const GeometryComponentGC
 Pointer to owner == parent geometry component. More...
 
- Protected Attributes inherited from midaspace::GeometrySubject
const GeometryGeom
 Pointer to owner == parent geometry. More...
 
- Protected Attributes inherited from midaspace::ProblemSubject
long ID
 (global) identification number == position in list of members; zero-based numbering. More...
 
const ProblemPd
 Pointer to owner = parent problem. More...
 

Detailed Description

Base class for management of DOF (Degrees Of Freedom) attributes at a node.

All DOFs belonging to the particular node are managed in one instance of the class. Pointer to the master node is stored in the variable GC, see GeomCompSubject class.

Only structural DOFs are supported at this moment. Full set of supported DOFs is supposed as {u_x, u_y, u_z, r_x, r_y, r_z}, where u is displacement and r is rotation.

The PointDOFsAttributes class is pure virtual. There are several inherited classes to manage different DOF attributes.

The base class declares the variable ndofs storing total number of DOFs. Attributes can be stored in two arrays att and mask.

Definition at line 32 of file substructs.h.

Constructor & Destructor Documentation

midaspace::PointDOFsAttributes::PointDOFsAttributes ( long  gid,
const GeometryComponent owner 
)
inline

CONSTRUCTOR.

Definition at line 44 of file substructs.h.

References att, mask, and ndofs.

midaspace::PointDOFsAttributes::PointDOFsAttributes ( long  gid,
const Problem owner 
)
inline

CONSTRUCTOR.

Definition at line 46 of file substructs.h.

References att, mask, and ndofs.

midaspace::PointDOFsAttributes::PointDOFsAttributes ( const PointDOFsAttributes src,
const GeometryComponent owner 
)
inline

CONSTRUCTOR COPY.

Definition at line 48 of file substructs.h.

References att, mask, and ndofs.

virtual midaspace::PointDOFsAttributes::~PointDOFsAttributes ( )
inlinevirtual

DESTRUCTOR.

Definition at line 54 of file substructs.h.

References att, and mask.

Member Function Documentation

virtual void midaspace::PointDOFsAttributes::checkConsistency ( void  ) const
inlinevirtual
int midaspace::PointDOFsAttributes::give_att ( int  i) const
inline
const int* midaspace::PointDOFsAttributes::give_att ( void  ) const
inline

Definition at line 75 of file substructs.h.

References att.

int midaspace::PointDOFsAttributes::give_mask ( int  i) const
inline
const int* midaspace::PointDOFsAttributes::give_mask ( void  ) const
inline

Definition at line 76 of file substructs.h.

References mask.

int midaspace::PointDOFsAttributes::give_ndofs ( void  ) const
inline
bool midaspace::PointDOFsAttributes::is_identical_with ( const PointDOFsAttributes src) const
inline
bool midaspace::PointDOFsAttributes::mask_is_null ( void  ) const
inline

Definition at line 79 of file substructs.h.

References mask.

Referenced by midaspace::PointAttribs::print_DofIDMask_OOFEM().

void midaspace::PointDOFsAttributes::rescan_att ( const char *&  str)
inline

Definition at line 99 of file substructs.h.

References _errorr, att, ndofs, and midaspace::SP_scan_array().

Referenced by midaspace::PointAttribs::set_dofbc().

void midaspace::PointDOFsAttributes::scan_att ( const char *&  str)
inline

Definition at line 100 of file substructs.h.

References _errorr, att, ndofs, and midaspace::SP_scan_array().

Referenced by scan_att_ndofs_expected(), and scan_att_ndofs_new().

void midaspace::PointDOFsAttributes::scan_att_ndofs_expected ( const char *&  str)
inline
void midaspace::PointDOFsAttributes::scan_att_ndofs_new ( const char *&  str)
inline
void midaspace::PointDOFsAttributes::scan_att_new_sparse ( const char *&  str)
inline

Definition at line 102 of file substructs.h.

References _errorr, att, errol, mask, ndofs, and midaspace::SP_scan_number().

void midaspace::PointDOFsAttributes::scan_mask ( const char *&  str)
inline

Definition at line 101 of file substructs.h.

References _errorr, mask, ndofs, and midaspace::SP_scan_array().

Referenced by scan_mask_ndofs_expected(), and scan_mask_ndofs_new().

void midaspace::PointDOFsAttributes::scan_mask_ndofs_expected ( const char *&  str)
inline
void midaspace::PointDOFsAttributes::scan_mask_ndofs_new ( const char *&  str)
inline
void midaspace::PointDOFsAttributes::scan_ndofs_expected ( const char *&  str)
inline

Definition at line 94 of file substructs.h.

References ndofs, and SP_scan_expected_number_exit.

Referenced by midaspace::PointAttribs::initialize_from().

void midaspace::PointDOFsAttributes::scan_ndofs_new ( const char *&  str)
inline

*** SCAN ***

Definition at line 90 of file substructs.h.

References ndofs, and midaspace::SP_scan_number().

Referenced by midaspace::PointAttribs::initialize_from().

void midaspace::PointDOFsAttributes::set_att ( int  i,
int  val 
)
inline

Definition at line 67 of file substructs.h.

References att, and errol.

void midaspace::PointDOFsAttributes::set_ndofs ( int  n)
inline
void midaspace::PointDOFsAttributes::set_ndofsatt ( int  n,
int *  val 
)
inline
void midaspace::PointDOFsAttributes::set_ndofsatt ( int  n,
long *  val 
)
inline

Definition at line 69 of file substructs.h.

References att, errol, and ndofs.

Member Data Documentation

int* midaspace::PointDOFsAttributes::att
protected
int* midaspace::PointDOFsAttributes::mask
protected
int midaspace::PointDOFsAttributes::ndofs
protected

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