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

#include <friction.h>

Inheritance diagram for SimplePlaneHingeJointSh_c:
Collaboration diagram for SimplePlaneHingeJointSh_c:

Public Member Functions

 SimplePlaneHingeJointSh_c (void)
 
virtual doublereal Sh_c (void) const
 
doublereal Sh_c (const doublereal f, const doublereal F, const doublereal v)
 
void dSh_c (ExpandableRowVector &dShc, const doublereal f, const doublereal F, const doublereal v, const ExpandableRowVector &dfc, const ExpandableRowVector &dF, const ExpandableRowVector &dv) const
 
- Public Member Functions inherited from BasicShapeCoefficient
virtual ~BasicShapeCoefficient (void)
 

Private Attributes

doublereal shc
 

Detailed Description

Simple, low load shape coefficient for revolute hinge (PlaneHingeJoint)

Definition at line 316 of file friction.h.

Constructor & Destructor Documentation

SimplePlaneHingeJointSh_c::SimplePlaneHingeJointSh_c ( void  )

Definition at line 571 of file friction.cc.

572  {};

Member Function Documentation

void SimplePlaneHingeJointSh_c::dSh_c ( ExpandableRowVector dShc,
const doublereal  f,
const doublereal  F,
const doublereal  v,
const ExpandableRowVector dfc,
const ExpandableRowVector dF,
const ExpandableRowVector dv 
) const
virtual

Compute derivatives of the shape coefficient

Implements BasicShapeCoefficient.

Definition at line 586 of file friction.cc.

References ExpandableRowVector::Link(), grad::pow(), ExpandableRowVector::ReDim(), ExpandableRowVector::Set(), and grad::sqrt().

593  {
594  doublereal dsh_fc = 1./std::sqrt(1.+f*f)-0.5*std::pow(1.+f*f,-3./2.)*f;
595 // dShc.ReDim(2);
596 // dShc.Set(0.,1);
597 // dShc.Link(1,&dF);
598 // dShc.Set(dsh_fc,2);
599 // dShc.Link(2,&dfc);
600  dShc.ReDim(1);
601  dShc.Set(dsh_fc,1);
602  dShc.Link(1,&dfc);
603 };
void Set(doublereal xx, integer i, integer iidx)
Definition: JacSubMatrix.cc:95
GradientExpression< BinaryExpr< FuncPow, LhsExpr, RhsExpr > > pow(const GradientExpression< LhsExpr > &u, const GradientExpression< RhsExpr > &v)
Definition: gradient.h:2961
void ReDim(const integer n)
Definition: JacSubMatrix.cc:50
GradientExpression< UnaryExpr< FuncSqrt, Expr > > sqrt(const GradientExpression< Expr > &u)
Definition: gradient.h:2974
void Link(const integer i, const ExpandableRowVector *const xp, const integer rhs_block=1)
Definition: JacSubMatrix.cc:68
double doublereal
Definition: colamd.c:52

Here is the call graph for this function:

doublereal SimplePlaneHingeJointSh_c::Sh_c ( void  ) const
virtual

Return last computed shape coefficient

Implements BasicShapeCoefficient.

Definition at line 574 of file friction.cc.

References shc.

574  {
575  return shc;
576 }
doublereal SimplePlaneHingeJointSh_c::Sh_c ( const doublereal  f,
const doublereal  F,
const doublereal  v 
)
virtual

Compute the shape coefficient

Implements BasicShapeCoefficient.

Definition at line 578 of file friction.cc.

References shc, and grad::sqrt().

581  {
582  shc = f/std::sqrt(1.+f*f);
583  return shc;
584 };
GradientExpression< UnaryExpr< FuncSqrt, Expr > > sqrt(const GradientExpression< Expr > &u)
Definition: gradient.h:2974

Here is the call graph for this function:

Member Data Documentation

doublereal SimplePlaneHingeJointSh_c::shc
private

Definition at line 318 of file friction.h.

Referenced by Sh_c().


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