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

#include <mbcxx.h>

Inheritance diagram for MBCNodal:
Collaboration diagram for MBCNodal:

Public Member Functions

 MBCNodal (void)
 
 MBCNodal (MBCBase::Rot refnode_rot, unsigned nodes, bool labels, MBCBase::Rot rot, bool accels)
 
virtual ~MBCNodal (void)
 
MBCBase::Type GetType (void) const
 
int Initialize (MBCBase::Rot refnode_rot, unsigned nodes, bool labels, MBCBase::Rot rot, bool accels)
 
virtual int Negotiate (void) const
 
virtual int PutForces (bool bConverged) const
 
virtual int GetMotion (void) const
 
int Close (void) const
 
uint32_t KinematicsLabel (void) const
 
const double & X (uint8_t idx) const
 
const double & R (uint8_t ir, uint8_t ic) const
 
const double & Theta (uint8_t idx) const
 
const double & Euler123 (uint8_t idx) const
 
const double & XP (uint8_t idx) const
 
const double & Omega (uint8_t idx) const
 
const double & XPP (uint8_t idx) const
 
const double & OmegaP (uint8_t idx) const
 
const uint32_t & DynamicsLabel (void) const
 
uint32_t & DynamicsLabel (void)
 
const double & F (uint8_t idx) const
 
double & F (uint8_t idx)
 
const double & M (uint8_t idx) const
 
double & M (uint8_t idx)
 
uint32_t GetNodes (void) const
 
uint32_t * GetKinematicsLabel (void) const
 
const double *const GetX (void) const
 
const double *const GetR (void) const
 
const double *const GetTheta (void) const
 
const double *const GetEuler123 (void) const
 
const double *const GetXP (void) const
 
const double *const GetOmega (void) const
 
const double *const GetXPP (void) const
 
const double *const GetOmegaP (void) const
 
const double & X (uint32_t n, uint8_t idx) const
 
const double & R (uint32_t n, uint8_t ir, uint8_t ic) const
 
const double & Theta (uint32_t n, uint8_t idx) const
 
const double & Euler123 (uint32_t n, uint8_t idx) const
 
const double & XP (uint32_t n, uint8_t idx) const
 
const double & Omega (uint32_t n, uint8_t idx) const
 
const double & XPP (uint32_t n, uint8_t idx) const
 
const double & OmegaP (uint32_t n, uint8_t idx) const
 
uint32_t GetKinematicsLabel (uint32_t n) const
 
uint32_t KinematicsLabel (uint32_t n) const
 
const double *const GetX (uint32_t n) const
 
const double *const GetR (uint32_t n) const
 
const double *const GetTheta (uint32_t n) const
 
const double *const GetEuler123 (uint32_t n) const
 
const double *const GetXP (uint32_t n) const
 
const double *const GetOmega (uint32_t n) const
 
const double *const GetXPP (uint32_t n) const
 
const double *const GetOmegaP (uint32_t n) const
 
uint32_t * GetDynamicsLabel (void) const
 
const double * GetF (void) const
 
const double * GetM (void) const
 
const uint32_t & DynamicsLabel (uint32_t n) const
 
uint32_t & DynamicsLabel (uint32_t n)
 
const double * GetF (uint32_t n) const
 
const double * GetM (uint32_t n) const
 
const double & F (uint32_t n, uint8_t idx) const
 
double & F (uint32_t n, uint8_t idx)
 
const double & M (uint32_t n, uint8_t idx) const
 
double & M (uint32_t n, uint8_t idx)
 
- Public Member Functions inherited from MBCBase
MBCBase::Rot GetRot (void) const
 
bool bRefNode (void) const
 
MBCBase::Rot GetRefNodeRot (void) const
 
bool bAccelerations (void) const
 
bool bLabels (void) const
 
void SetTimeout (int t)
 
void SetVerbose (bool bv)
 
void SetDataAndNext (bool bd)
 
bool bVerbose (void) const
 
bool bDataAndNext (void) const
 
 MBCBase (void)
 
virtual ~MBCBase (void)
 
int Init (const char *const path)
 
int Init (const char *const host, short unsigned port)
 
int GetCmd (void) const
 
uint32_t GetRefNodeKinematicsLabel (void) const
 
uint32_t KinematicsLabel (void) const
 
const double *const GetRefNodeX (void) const
 
const double *const GetRefNodeR (void) const
 
const double *const GetRefNodeTheta (void) const
 
const double *const GetRefNodeEuler123 (void) const
 
const double *const GetRefNodeXP (void) const
 
const double *const GetRefNodeOmega (void) const
 
const double *const GetRefNodeXPP (void) const
 
const double *const GetRefNodeOmegaP (void) const
 
const double & X (uint8_t idx) const
 
const double & R (uint8_t ir, uint8_t ic) const
 
const double & Theta (uint8_t idx) const
 
const double & Euler123 (uint8_t idx) const
 
const double & XP (uint8_t idx) const
 
const double & Omega (uint8_t idx) const
 
const double & XPP (uint8_t idx) const
 
const double & OmegaP (uint8_t idx) const
 
uint32_t GetRefNodeDynamicsLabel (void) const
 
const uint32_t & DynamicsLabel (void) const
 
uint32_t & DynamicsLabel (void)
 
const double * GetRefNodeF (void) const
 
const double * GetRefNodeM (void) const
 
const double & F (uint8_t idx) const
 
double & F (uint8_t idx)
 
const double & M (uint8_t idx) const
 
double & M (uint8_t idx)
 

Private Member Functions

virtual mbc_tGetBasePtr (void) const
 
virtual mbc_refnode_stub_tGetRefNodePtr (void) const
 

Private Attributes

mbc_nodal_t mbc
 

Additional Inherited Members

- Public Types inherited from MBCBase
enum  Type { MODAL = MBC_MODAL, NODAL = MBC_NODAL }
 
enum  Rot { NONE = MBC_ROT_NONE, THETA = MBC_ROT_THETA, MAT = MBC_ROT_MAT, EULER_123 = MBC_ROT_EULER_123 }
 
- Protected Types inherited from MBCBase
enum  Status {
  NOT_READY, INITIALIZED, SOCKET_READY, READY,
  CLOSED
}
 
- Protected Member Functions inherited from MBCBase
Status GetStatus (void) const
 
void SetStatus (Status s)
 
- Protected Attributes inherited from MBCBase
enum MBCBase::Status m_status
 

Detailed Description

Definition at line 138 of file mbcxx.h.

Constructor & Destructor Documentation

MBCNodal::MBCNodal ( void  )
MBCNodal::MBCNodal ( MBCBase::Rot  refnode_rot,
unsigned  nodes,
bool  labels,
MBCBase::Rot  rot,
bool  accels 
)
virtual MBCNodal::~MBCNodal ( void  )
virtual

Member Function Documentation

int MBCNodal::Close ( void  ) const
virtual

Implements MBCBase.

const uint32_t& MBCNodal::DynamicsLabel ( void  ) const

Referenced by test_run().

uint32_t& MBCNodal::DynamicsLabel ( void  )
const uint32_t& MBCNodal::DynamicsLabel ( uint32_t  n) const
uint32_t& MBCNodal::DynamicsLabel ( uint32_t  n)
const double& MBCNodal::Euler123 ( uint8_t  idx) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::Euler123 ( uint32_t  n,
uint8_t  idx 
) const
const double& MBCNodal::F ( uint8_t  idx) const

Referenced by test_run(), and tsend_().

double& MBCNodal::F ( uint8_t  idx)
const double& MBCNodal::F ( uint32_t  n,
uint8_t  idx 
) const
double& MBCNodal::F ( uint32_t  n,
uint8_t  idx 
)
virtual mbc_t* MBCNodal::GetBasePtr ( void  ) const
privatevirtual

Implements MBCBase.

uint32_t* MBCNodal::GetDynamicsLabel ( void  ) const
const double* const MBCNodal::GetEuler123 ( void  ) const
const double* const MBCNodal::GetEuler123 ( uint32_t  n) const
const double* MBCNodal::GetF ( void  ) const
const double* MBCNodal::GetF ( uint32_t  n) const
uint32_t* MBCNodal::GetKinematicsLabel ( void  ) const
uint32_t MBCNodal::GetKinematicsLabel ( uint32_t  n) const
const double* MBCNodal::GetM ( void  ) const
const double* MBCNodal::GetM ( uint32_t  n) const
virtual int MBCNodal::GetMotion ( void  ) const
virtual

Implements MBCBase.

Referenced by test_run(), and trecv_().

uint32_t MBCNodal::GetNodes ( void  ) const

Referenced by tdata_(), test_run(), tforce_(), trecv_(), and tsend_().

const double* const MBCNodal::GetOmega ( void  ) const
const double* const MBCNodal::GetOmega ( uint32_t  n) const
const double* const MBCNodal::GetOmegaP ( void  ) const
const double* const MBCNodal::GetOmegaP ( uint32_t  n) const
const double* const MBCNodal::GetR ( void  ) const
const double* const MBCNodal::GetR ( uint32_t  n) const
virtual mbc_refnode_stub_t* MBCNodal::GetRefNodePtr ( void  ) const
privatevirtual

Implements MBCBase.

const double* const MBCNodal::GetTheta ( void  ) const
const double* const MBCNodal::GetTheta ( uint32_t  n) const
MBCBase::Type MBCNodal::GetType ( void  ) const
virtual

Implements MBCBase.

const double* const MBCNodal::GetX ( void  ) const
const double* const MBCNodal::GetX ( uint32_t  n) const
const double* const MBCNodal::GetXP ( void  ) const
const double* const MBCNodal::GetXP ( uint32_t  n) const
const double* const MBCNodal::GetXPP ( void  ) const
const double* const MBCNodal::GetXPP ( uint32_t  n) const
int MBCNodal::Initialize ( MBCBase::Rot  refnode_rot,
unsigned  nodes,
bool  labels,
MBCBase::Rot  rot,
bool  accels 
)

Referenced by test_init().

uint32_t MBCNodal::KinematicsLabel ( void  ) const

Referenced by test_run().

uint32_t MBCNodal::KinematicsLabel ( uint32_t  n) const
const double& MBCNodal::M ( uint8_t  idx) const

Referenced by test_run(), and tsend_().

double& MBCNodal::M ( uint8_t  idx)
const double& MBCNodal::M ( uint32_t  n,
uint8_t  idx 
) const
double& MBCNodal::M ( uint32_t  n,
uint8_t  idx 
)
virtual int MBCNodal::Negotiate ( void  ) const
virtual

Implements MBCBase.

Referenced by test_init().

const double& MBCNodal::Omega ( uint8_t  idx) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::Omega ( uint32_t  n,
uint8_t  idx 
) const
const double& MBCNodal::OmegaP ( uint8_t  idx) const
const double& MBCNodal::OmegaP ( uint32_t  n,
uint8_t  idx 
) const
virtual int MBCNodal::PutForces ( bool  bConverged) const
virtual

Implements MBCBase.

Referenced by test_run(), and tsend_().

const double& MBCNodal::R ( uint8_t  ir,
uint8_t  ic 
) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::R ( uint32_t  n,
uint8_t  ir,
uint8_t  ic 
) const
const double& MBCNodal::Theta ( uint8_t  idx) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::Theta ( uint32_t  n,
uint8_t  idx 
) const
const double& MBCNodal::X ( uint8_t  idx) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::X ( uint32_t  n,
uint8_t  idx 
) const
const double& MBCNodal::XP ( uint8_t  idx) const

Referenced by test_run(), and trecv_().

const double& MBCNodal::XP ( uint32_t  n,
uint8_t  idx 
) const
const double& MBCNodal::XPP ( uint8_t  idx) const
const double& MBCNodal::XPP ( uint32_t  n,
uint8_t  idx 
) const

Member Data Documentation

mbc_nodal_t MBCNodal::mbc
mutableprivate

Definition at line 140 of file mbcxx.h.


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