MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
BeamConn Class Reference

#include <beamslider.h>

Collaboration diagram for BeamConn:

Public Member Functions

 BeamConn (const Beam *pB, const Vec3 &f1, const Vec3 &f2, const Vec3 &f3, const Mat3x3 &R1=Eye3, const Mat3x3 &R2=Eye3, const Mat3x3 &R3=Eye3)
 
virtual ~BeamConn (void)
 
const BeampGetBeam (void) const
 
const StructNodepGetNode (unsigned int i) const
 
const Vec3Getf (unsigned int i) const
 
const Mat3x3GetR (unsigned int i) const
 

Protected Attributes

const Beamm_pBeam
 
Vec3 m_f [3]
 
Mat3x3 m_R [3]
 

Detailed Description

Definition at line 53 of file beamslider.h.

Constructor & Destructor Documentation

BeamConn::BeamConn ( const Beam pB,
const Vec3 f1,
const Vec3 f2,
const Vec3 f3,
const Mat3x3 R1 = Eye3,
const Mat3x3 R2 = Eye3,
const Mat3x3 R3 = Eye3 
)

Definition at line 46 of file beamslider.cc.

References m_f, and m_R.

49 : m_pBeam(pB)
50 {
51  m_f[0] = f1;
52  m_f[1] = f2;
53  m_f[2] = f3;
54 
55  m_R[0] = R1;
56  m_R[1] = R2;
57  m_R[2] = R3;
58 }
Vec3 m_f[3]
Definition: beamslider.h:56
const Beam * m_pBeam
Definition: beamslider.h:55
Mat3x3 m_R[3]
Definition: beamslider.h:57
BeamConn::~BeamConn ( void  )
virtual

Definition at line 60 of file beamslider.cc.

References NO_OP.

61 {
62  NO_OP;
63 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

const Vec3& BeamConn::Getf ( unsigned int  i) const
inline

Definition at line 78 of file beamslider.h.

References ASSERT, and m_f.

Referenced by BeamSliderJoint::AssRes().

78  {
79  ASSERT(i >= 1 && i <= 3);
80  return m_f[--i];
81  };
Vec3 m_f[3]
Definition: beamslider.h:56
#define ASSERT(expression)
Definition: colamd.c:977
const Mat3x3& BeamConn::GetR ( unsigned int  i) const
inline

Definition at line 84 of file beamslider.h.

References ASSERT, and m_R.

84  {
85  ASSERT(i >= 1 && i <= 3);
86  return m_R[--i];
87  };
Mat3x3 m_R[3]
Definition: beamslider.h:57
#define ASSERT(expression)
Definition: colamd.c:977
const Beam* BeamConn::pGetBeam ( void  ) const
inline

Definition at line 68 of file beamslider.h.

References m_pBeam.

68  {
69  return m_pBeam;
70  };
const Beam * m_pBeam
Definition: beamslider.h:55
const StructNode* BeamConn::pGetNode ( unsigned int  i) const
inline

Definition at line 73 of file beamslider.h.

References m_pBeam, and Beam::pGetNode().

Referenced by BeamSliderJoint::AssJac(), BeamSliderJoint::AssRes(), and BeamSliderJoint::GetConnectedNodes().

73  {
74  return m_pBeam->pGetNode(i);
75  };
virtual const StructNode * pGetNode(unsigned int i) const
Definition: beam.cc:1290
const Beam * m_pBeam
Definition: beamslider.h:55

Here is the call graph for this function:

Member Data Documentation

Vec3 BeamConn::m_f[3]
protected

Definition at line 56 of file beamslider.h.

Referenced by BeamConn(), and Getf().

const Beam* BeamConn::m_pBeam
protected

Definition at line 55 of file beamslider.h.

Referenced by pGetBeam(), and pGetNode().

Mat3x3 BeamConn::m_R[3]
protected

Definition at line 57 of file beamslider.h.

Referenced by BeamConn(), and GetR().


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