All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Attributes | Private Attributes | List of all members
MBSimPowertrain::TorsionalStiffness Class Reference
Inheritance diagram for MBSimPowertrain::TorsionalStiffness:
MBSim::LinkMechanics MBSim::Link MBSim::Element fmatvec::Atom

Public Member Functions

 TorsionalStiffness (const std::string &name="")
 
void updateh (double, int i=0)
 
void updateg (double)
 
void updategd (double)
 
bool isActive () const
 Connect the RelativeRotationalSpringDamper to frame1 and frame2.
 
bool gActiveChanged ()
 
virtual bool isSingleValued () const
 
std::string getType () const
 
void init (InitStage stage)
 
void setGeneralizedForceFunction (MBSim::Function< double(double, double)> *func_)
 Set function for the torque calculation. The first input parameter to that function is the relative rotation g between frame2 and frame1. The second input parameter to that function is the relative rotational velocity gd between frame2 and frame1. The return value of that function is used as the torque of the RelativeRotationalSpringDamper.
 
void setRigidBodyFirstSide (MBSim::RigidBody *body_)
 Set a projection direction for the resulting torque If this function is not set, or frame is NULL, than torque calculated by setForceFunction is applied on the two connected frames in the direction of the two connected frames. If this function is set, than this torque is first projected in direction dir and then applied on the two connected frames in the projected direction; (!) this might induce violation of the global equality of torques (!). The direction vector dir is given in coordinates of frame refFrame.
 
void setRigidBodySecondSide (MBSim::RigidBody *body_)
 
void plot (double t, double dt=1)
 
void initializeUsingXML (xercesc::DOMElement *element)
 
void updatehRef (const fmatvec::Vec &hParent, int j=0)
 
- Public Member Functions inherited from fmatvec::Atom
Atomoperator= (const Atom &)
 
void setMessageStreamActive (MsgType type, bool active)
 
void getMessageStream (MsgType type, boost::shared_ptr< bool > &a, boost::shared_ptr< std::ostream > &s)
 
void adoptMessageStreams (const Atom *src=NULL)
 
std::ostream & msg (MsgType type)
 
bool msgAct (MsgType type)
 

Protected Attributes

MBSim::Function< double(double,
double)> * 
func
 
std::vector< MBSim::RigidBody * > body
 
MBSim::Frame C
 

Private Attributes

std::string saved_body1
 
std::string saved_body2
 

Additional Inherited Members

- Public Types inherited from fmatvec::Atom
enum  MsgType
 
- Static Public Member Functions inherited from fmatvec::Atom
static void setCurrentMessageStream (MsgType type, const boost::shared_ptr< bool > &a=boost::make_shared< bool >(true), const boost::shared_ptr< std::ostream > &s=boost::make_shared< std::ostream >(std::cout.rdbuf()))
 
static std::ostream & msgStatic (MsgType type)
 
static bool msgActStatic (MsgType type)
 
- Protected Member Functions inherited from fmatvec::Atom
 Atom (const Atom &src)
 

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

Impressum / Disclaimer / Datenschutz Generated by doxygen 1.8.5 Valid HTML