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

#include <vehj4.h>

Inheritance diagram for ViscoElasticAxialJoint:
Collaboration diagram for ViscoElasticAxialJoint:

Public Member Functions

 ViscoElasticAxialJoint (unsigned int uL, const DofOwner *pDO, const ConstitutiveLaw1D *pCL, const StructNode *pN1, const StructNode *pN2, const Mat3x3 &tilde_R1h, const Mat3x3 &tilde_R2h, flag fOut)
 
 ~ViscoElasticAxialJoint (void)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP)
 
virtual ConstLawType::Type GetConstLawType (void) const
 
virtual VariableSubMatrixHandlerAssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual SubVectorHandlerAssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
SubVectorHandlerAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS)
 
virtual void InitialWorkSpaceDim (integer *piNumRows, integer *piNumCols) const
 
virtual VariableSubMatrixHandlerInitialAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr)
 
virtual SubVectorHandlerInitialAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr)
 
- Public Member Functions inherited from Elem
 Elem (unsigned int uL, flag fOut)
 
virtual ~Elem (void)
 
virtual std::ostream & DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual std::ostream & DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual DofOrder::Order GetDofType (unsigned int) const
 
void SetInverseDynamicsFlags (unsigned uIDF)
 
unsigned GetInverseDynamicsFlags (void) const
 
bool bIsErgonomy (void) const
 
bool bIsRightHandSide (void) const
 
virtual VariableSubMatrixHandlerAssJac (VariableSubMatrixHandler &WorkMat, const VectorHandler &XCurr)
 
virtual int GetNumConnectedNodes (void) const
 
- Public Member Functions inherited from WithLabel
 WithLabel (unsigned int uL=0, const std::string &sN="")
 
virtual ~WithLabel (void)
 
void PutLabel (unsigned int uL)
 
void PutName (const std::string &sN)
 
unsigned int GetLabel (void) const
 
const std::string & GetName (void) const
 
- Public Member Functions inherited from SimulationEntity
 SimulationEntity (void)
 
virtual ~SimulationEntity (void)
 
virtual bool bIsValidIndex (unsigned int i) const
 
virtual DofOrder::Order GetEqType (unsigned int i) const
 
virtual void BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const
 
virtual void Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP)
 
virtual void ReadInitialState (MBDynParser &HP)
 
- Public Member Functions inherited from ToBeOutput
 ToBeOutput (flag fOut=fDefaultOut)
 
virtual ~ToBeOutput (void)
 
virtual void OutputPrepare (OutputHandler &OH)
 
virtual void Output (OutputHandler &OH, const VectorHandler &X, const VectorHandler &XP) const
 
virtual flag fToBeOutput (void) const
 
virtual bool bToBeOutput (void) const
 
virtual void SetOutputFlag (flag f=flag(1))
 
- Public Member Functions inherited from DeformableAxialJoint
 DeformableAxialJoint (unsigned int uL, const DofOwner *pDO, const ConstitutiveLaw1D *pCL, const StructNode *pN1, const StructNode *pN2, const Mat3x3 &tilde_R1h, const Mat3x3 &tilde_R2h, flag fOut)
 
virtual ~DeformableAxialJoint (void)
 
virtual Joint::Type GetJointType (void) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
virtual void Output (OutputHandler &OH) const
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
void SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *ph=0)
 
virtual void SetInitialValue (VectorHandler &)
 
virtual bool bInverseDynamics (void) const
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
virtual unsigned int iGetNumDof (void) const
 
virtual void WorkSpaceDim (integer *piNumRows, integer *piNumCols) const
 
virtual unsigned int iGetInitialNumDof (void) const
 
virtual void GetConnectedNodes (std::vector< const Node * > &connectedNodes) const
 
virtual unsigned int iGetNumPrivData (void) const
 
virtual unsigned int iGetPrivDataIdx (const char *s) const
 
virtual doublereal dGetPrivData (unsigned int i) const
 
- Public Member Functions inherited from Joint
 Joint (unsigned int uL, const DofOwner *pD, flag fOut)
 
virtual ~Joint (void)
 
virtual Elem::Type GetElemType (void) const
 
std::ostream & Output (std::ostream &out, const char *sJointName, unsigned int uLabel, const Vec3 &FLocal, const Vec3 &MLocal, const Vec3 &FGlobal, const Vec3 &MGlobal) const
 
virtual void Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS)
 
bool bIsPrescribedMotion (void) const
 
bool bIsTorque (void) const
 
- Public Member Functions inherited from ElemGravityOwner
 ElemGravityOwner (unsigned int uL, flag fOut)
 
virtual ~ElemGravityOwner (void)
 
virtual doublereal dGetM (void) const
 
Vec3 GetS (void) const
 
Mat3x3 GetJ (void) const
 
Vec3 GetB (void) const
 
Vec3 GetG (void) const
 
- Public Member Functions inherited from GravityOwner
 GravityOwner (void)
 
virtual ~GravityOwner (void)
 
void PutGravity (const Gravity *pG)
 
virtual bool bGetGravity (const Vec3 &X, Vec3 &Acc) const
 
- Public Member Functions inherited from ElemWithDofs
 ElemWithDofs (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~ElemWithDofs (void)
 
- Public Member Functions inherited from DofOwnerOwner
 DofOwnerOwner (const DofOwner *pDO)
 
virtual ~DofOwnerOwner ()
 
virtual const DofOwnerpGetDofOwner (void) const
 
virtual integer iGetFirstIndex (void) const
 
- Public Member Functions inherited from InitialAssemblyElem
 InitialAssemblyElem (unsigned int uL, flag fOut)
 
virtual ~InitialAssemblyElem (void)
 
- Public Member Functions inherited from SubjectToInitialAssembly
 SubjectToInitialAssembly (void)
 
virtual ~SubjectToInitialAssembly (void)
 
- Public Member Functions inherited from ConstitutiveLawOwner< T, Tder >
 ConstitutiveLawOwner (const ConstitutiveLaw< T, Tder > *pCL)
 
virtual ~ConstitutiveLawOwner (void)
 
ConstitutiveLaw< T, Tder > * pGetConstLaw (void) const
 
void Update (const T &Eps, const T &EpsPrime=mb_zero< T >())
 
void AfterConvergence (const T &Eps, const T &EpsPrime=mb_zero< T >())
 
const T & GetF (void) const
 
const Tder & GetFDE (void) const
 
const Tder & GetFDEPrime (void) const
 
virtual std::ostream & DescribeDof (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeDof (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual std::ostream & DescribeEq (std::ostream &out, const char *prefix="", bool bInitial=false) const
 
virtual void DescribeEq (std::vector< std::string > &desc, bool bInitial=false, int i=-1) const
 
virtual DofOrder::Order GetDofType (unsigned int i) const
 
virtual std::ostream & OutputAppend (std::ostream &out) const
 

Protected Member Functions

virtual void AssMats (FullSubMatrixHandler &WMA, FullSubMatrixHandler &WMB, doublereal dCoef)
 
virtual void AfterPredict (void)
 
virtual void AssVec (SubVectorHandler &WorkVec)
 
- Protected Member Functions inherited from DeformableAxialJoint
virtual void AssMatM (FullSubMatrixHandler &WMA, doublereal dCoef)
 
void AssMatMDE (FullSubMatrixHandler &WMA, doublereal dCoef)
 
virtual void AssMatMDEPrime (FullSubMatrixHandler &WMA, FullSubMatrixHandler &WMB, doublereal dCoef)
 
- Protected Member Functions inherited from Joint
virtual void OutputPrepare_int (const std::string &type, OutputHandler &OH, std::string &name)
 
- Protected Member Functions inherited from ElemGravityOwner
virtual Vec3 GetS_int (void) const
 
virtual Mat3x3 GetJ_int (void) const
 
virtual Vec3 GetB_int (void) const
 
virtual Vec3 GetG_int (void) const
 

Protected Attributes

doublereal dThetaRef
 
doublereal dThetaCurr
 
doublereal dOmega
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 
- Protected Attributes inherited from DeformableAxialJoint
const StructNodepNode1
 
const StructNodepNode2
 
Mat3x3 tilde_R1h
 
Mat3x3 tilde_R2h
 
bool bFirstRes
 
doublereal dTol
 
doublereal dM
 
doublereal dMDE
 
doublereal dMDEPrime
 
Vec3 M
 
Mat3x3 MDE
 
Mat3x3 MDEPrime
 
- Protected Attributes inherited from GravityOwner
GravitypGravity
 
- Protected Attributes inherited from ConstitutiveLawOwner< T, Tder >
ConstitutiveLaw< T, Tder > * pConstLaw
 

Additional Inherited Members

- Public Types inherited from Elem
enum  Type {
  UNKNOWN = -1, AIRPROPERTIES = 0, INDUCEDVELOCITY, AUTOMATICSTRUCTURAL,
  GRAVITY, BODY, JOINT, JOINT_REGULARIZATION,
  BEAM, PLATE, FORCE, INERTIA,
  ELECTRICBULK, ELECTRIC, THERMAL, HYDRAULIC,
  BULK, LOADABLE, DRIVEN, EXTERNAL,
  AEROMODAL, AERODYNAMIC, GENEL, SOCKETSTREAM_OUTPUT,
  RTAI_OUTPUT = SOCKETSTREAM_OUTPUT, LASTELEMTYPE
}
 
- Public Types inherited from SimulationEntity
typedef std::vector< Hint * > Hints
 
- Public Types inherited from ToBeOutput
enum  { OUTPUT = 0x1U, OUTPUT_MASK = 0xFU, OUTPUT_PRIVATE = 0x10U, OUTPUT_PRIVATE_MASK = ~OUTPUT_MASK }
 
- Public Types inherited from Joint
enum  Type {
  UNKNOWN = -1, DISTANCE = 0, DISTANCEWITHOFFSET, CLAMP,
  SPHERICALHINGE, PIN, UNIVERSALHINGE, UNIVERSALROTATION,
  UNIVERSALPIN, PLANEHINGE, PLANEROTATION, PLANEPIN,
  AXIALROTATION, PLANEDISP, PLANEDISPPIN, INPLANE,
  INPLANECONTACT, J_INLINE, ROD, RODBEZIER,
  DEFORMABLEHINGE, DEFORMABLEDISPJOINT, DEFORMABLEJOINT, DEFORMABLEAXIALJOINT,
  VISCOUSBODY, LINEARVELOCITY, ANGULARVELOCITY, LINEARACCELERATION,
  ANGULARACCELERATION, PRISMATIC, DRIVEHINGE, DRIVEDISP,
  DRIVEDISPPIN, IMPOSEDORIENTATION, IMPOSEDDISP, IMPOSEDDISPPIN,
  IMPOSEDKINEMATICS, BEAMSLIDER, BRAKE, GIMBAL,
  POINT_SURFACE_CONTACT, TOTALJOINT, TOTALPINJOINT, TOTALEQUATION,
  TOTALREACTION, MODAL, SCREWJOINT, LASTJOINTTYPE
}
 

Detailed Description

Definition at line 388 of file vehj4.h.

Constructor & Destructor Documentation

ViscoElasticAxialJoint::ViscoElasticAxialJoint ( unsigned int  uL,
const DofOwner pDO,
const ConstitutiveLaw1D pCL,
const StructNode pN1,
const StructNode pN2,
const Mat3x3 tilde_R1h,
const Mat3x3 tilde_R2h,
flag  fOut 
)

Definition at line 934 of file vehj4.cc.

References AfterPredict().

942 : Elem(uL, fOut),
943 DeformableAxialJoint(uL, pDO, pCL, pN1, pN2, tilde_R1h, tilde_R2h, fOut),
944 dThetaRef(0.)
945 {
946  // force update of MDE/MDEPrime as needed
947  AfterPredict();
948 }
doublereal dThetaRef
Definition: vehj4.h:391
DeformableAxialJoint(unsigned int uL, const DofOwner *pDO, const ConstitutiveLaw1D *pCL, const StructNode *pN1, const StructNode *pN2, const Mat3x3 &tilde_R1h, const Mat3x3 &tilde_R2h, flag fOut)
Definition: vehj4.cc:88
Elem(unsigned int uL, flag fOut)
Definition: elem.cc:41
virtual void AfterPredict(void)
Definition: vehj4.cc:963

Here is the call graph for this function:

ViscoElasticAxialJoint::~ViscoElasticAxialJoint ( void  )

Definition at line 950 of file vehj4.cc.

References NO_OP.

951 {
952  NO_OP;
953 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void ViscoElasticAxialJoint::AfterConvergence ( const VectorHandler X,
const VectorHandler XP 
)
virtual

Reimplemented from SimulationEntity.

Definition at line 956 of file vehj4.cc.

References ConstitutiveLawOwner< T, Tder >::AfterConvergence(), dOmega, and dThetaCurr.

958 {
960 }
void AfterConvergence(const T &Eps, const T &EpsPrime=mb_zero< T >())
Definition: constltp.h:288
doublereal dOmega
Definition: vehj4.h:394
doublereal dThetaCurr
Definition: vehj4.h:392

Here is the call graph for this function:

void ViscoElasticAxialJoint::AfterPredict ( void  )
protectedvirtual

Implements DeformableAxialJoint.

Definition at line 963 of file vehj4.cc.

References DeformableAxialJoint::bFirstRes, dOmega, dThetaCurr, dThetaRef, ConstitutiveLawOwner< T, Tder >::GetFDE(), ConstitutiveLawOwner< T, Tder >::GetFDEPrime(), StructNode::GetRRef(), StructNode::GetWRef(), DeformableAxialJoint::MDE, DeformableAxialJoint::MDEPrime, DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, Mat3x3::Tens(), DeformableAxialJoint::tilde_R1h, DeformableAxialJoint::tilde_R2h, ConstitutiveLawOwner< T, Tder >::Update(), and RotManip::VecRot().

Referenced by ViscoElasticAxialJoint().

964 {
965  /* Computes strains, updates constitutive law and generates
966  * MDE and MDEPrime */
967 
968  Mat3x3 R1h(pNode1->GetRRef()*tilde_R1h);
969  Mat3x3 R2h(pNode2->GetRRef()*tilde_R2h);
970 
971  /* Current strain in material reference frame (node 1) */
972  dThetaCurr = dThetaRef = RotManip::VecRot(R1h.MulTM(R2h))(3);
973 
974  /* Relative angular velocity */
975  Vec3 e1z(R1h.GetVec(3));
976  dOmega = e1z.Dot(pNode2->GetWRef() - pNode1->GetWRef());
977 
978  /* Updates constitutive law */
980 
981  /* don't repeat the above operations during AssRes */
982  bFirstRes = true;
983 
984  /* Tangent matrices are updated and projected in the global
985  * reference frame; they won't change during the solution
986  * of the current time step, according to the updated-updated
987  * approach */
989  MDEPrime = e1z.Tens(e1z*GetFDEPrime());
990 }
virtual const Mat3x3 & GetRRef(void) const
Definition: strnode.h:1006
Definition: matvec3.h:98
const Tder & GetFDE(void) const
Definition: constltp.h:298
const StructNode * pNode1
Definition: vehj4.h:48
doublereal dThetaRef
Definition: vehj4.h:391
const Mat3x3 & Tens(const Vec3 &a, const Vec3 &b)
Definition: matvec3.h:799
virtual const Vec3 & GetWRef(void) const
Definition: strnode.h:1024
Mat3x3 tilde_R2h
Definition: vehj4.h:51
Vec3 VecRot(const Mat3x3 &Phi)
Definition: Rot.cc:136
const StructNode * pNode2
Definition: vehj4.h:49
Mat3x3 tilde_R1h
Definition: vehj4.h:50
doublereal dOmega
Definition: vehj4.h:394
Mat3x3 MDEPrime
Definition: vehj4.h:67
doublereal dThetaCurr
Definition: vehj4.h:392
const Tder & GetFDEPrime(void) const
Definition: constltp.h:303
void Update(const T &Eps, const T &EpsPrime=mb_zero< T >())
Definition: constltp.h:283

Here is the call graph for this function:

VariableSubMatrixHandler & ViscoElasticAxialJoint::AssJac ( VariableSubMatrixHandler WorkMat,
doublereal  dCoef,
const VectorHandler XCurr,
const VectorHandler XPrimeCurr 
)
virtual

Implements Elem.

Definition at line 994 of file vehj4.cc.

References AssMats(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), and Elem::WorkSpaceDim().

998 {
999  FullSubMatrixHandler& WM = WorkMat.SetFull();
1000 
1001  /* Dimensiona e resetta la matrice di lavoro */
1002  integer iNumRows = 0;
1003  integer iNumCols = 0;
1004  WorkSpaceDim(&iNumRows, &iNumCols);
1005  WM.ResizeReset(iNumRows, iNumCols);
1006 
1007  /* Recupera gli indici */
1008  integer iNode1FirstPosIndex = pNode1->iGetFirstPositionIndex() + 3;
1009  integer iNode1FirstMomIndex = pNode1->iGetFirstMomentumIndex() + 3;
1010  integer iNode2FirstPosIndex = pNode2->iGetFirstPositionIndex() + 3;
1011  integer iNode2FirstMomIndex = pNode2->iGetFirstMomentumIndex() + 3;
1012 
1013  /* Setta gli indici della matrice */
1014  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1015  WM.PutRowIndex(iCnt, iNode1FirstMomIndex + iCnt);
1016  WM.PutColIndex(iCnt, iNode1FirstPosIndex + iCnt);
1017  WM.PutRowIndex(3 + iCnt, iNode2FirstMomIndex + iCnt);
1018  WM.PutColIndex(3 + iCnt, iNode2FirstPosIndex + iCnt);
1019  }
1020 
1021  AssMats(WM, WM, dCoef);
1022 
1023  return WorkMat;
1024 }
void PutColIndex(integer iSubCol, integer iCol)
Definition: submat.h:325
FullSubMatrixHandler & SetFull(void)
Definition: submat.h:1168
const StructNode * pNode1
Definition: vehj4.h:48
virtual void AssMats(FullSubMatrixHandler &WMA, FullSubMatrixHandler &WMB, doublereal dCoef)
Definition: vehj4.cc:1067
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstMomentumIndex(void) const =0
virtual integer iGetFirstPositionIndex(void) const
Definition: strnode.h:452
virtual void ResizeReset(integer, integer)
Definition: submat.cc:182
void PutRowIndex(integer iSubRow, integer iRow)
Definition: submat.h:311
virtual void WorkSpaceDim(integer *piNumRows, integer *piNumCols) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

void ViscoElasticAxialJoint::AssMats ( FullSubMatrixHandler WMA,
FullSubMatrixHandler WMB,
doublereal  dCoef 
)
protectedvirtual

Definition at line 1067 of file vehj4.cc.

References DeformableAxialJoint::AssMatM(), DeformableAxialJoint::AssMatMDE(), and DeformableAxialJoint::AssMatMDEPrime().

Referenced by AssJac(), and AssMats().

1070 {
1071  AssMatM(WMA, dCoef);
1072  AssMatMDE(WMA, dCoef);
1073  AssMatMDEPrime(WMA, WMB, dCoef);
1074 }
virtual void AssMatMDEPrime(FullSubMatrixHandler &WMA, FullSubMatrixHandler &WMB, doublereal dCoef)
Definition: vehj4.cc:72
virtual void AssMatM(FullSubMatrixHandler &WMA, doublereal dCoef)
Definition: vehj4.cc:47
void AssMatMDE(FullSubMatrixHandler &WMA, doublereal dCoef)
Definition: vehj4.cc:59

Here is the call graph for this function:

void ViscoElasticAxialJoint::AssMats ( VariableSubMatrixHandler WorkMatA,
VariableSubMatrixHandler WorkMatB,
const VectorHandler XCurr,
const VectorHandler XPrimeCurr 
)
virtual

Reimplemented from Elem.

Definition at line 1028 of file vehj4.cc.

References AssMats(), StructDispNode::iGetFirstMomentumIndex(), StructDispNode::iGetFirstPositionIndex(), DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), and Elem::WorkSpaceDim().

1032 {
1033  FullSubMatrixHandler& WMA = WorkMatA.SetFull();
1034  FullSubMatrixHandler& WMB = WorkMatB.SetFull();
1035 
1036  /* Dimensiona e resetta la matrice di lavoro */
1037  integer iNumRows = 0;
1038  integer iNumCols = 0;
1039  WorkSpaceDim(&iNumRows, &iNumCols);
1040  WMA.ResizeReset(iNumRows, iNumCols);
1041  WMB.ResizeReset(iNumRows, iNumCols);
1042 
1043  /* Recupera gli indici */
1044  integer iNode1FirstPosIndex = pNode1->iGetFirstPositionIndex() + 3;
1045  integer iNode1FirstMomIndex = pNode1->iGetFirstMomentumIndex() + 3;
1046  integer iNode2FirstPosIndex = pNode2->iGetFirstPositionIndex() + 3;
1047  integer iNode2FirstMomIndex = pNode2->iGetFirstMomentumIndex() + 3;
1048 
1049  /* Setta gli indici della matrice */
1050  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1051  WMA.PutRowIndex(iCnt, iNode1FirstMomIndex + iCnt);
1052  WMA.PutColIndex(iCnt, iNode1FirstPosIndex + iCnt);
1053  WMA.PutRowIndex(3 + iCnt, iNode2FirstMomIndex + iCnt);
1054  WMA.PutColIndex(3 + iCnt, iNode2FirstPosIndex + iCnt);
1055 
1056  WMB.PutRowIndex(iCnt, iNode1FirstMomIndex + iCnt);
1057  WMB.PutColIndex(iCnt, iNode1FirstPosIndex + iCnt);
1058  WMB.PutRowIndex(3 + iCnt, iNode2FirstMomIndex + iCnt);
1059  WMB.PutColIndex(3 + iCnt, iNode2FirstPosIndex + iCnt);
1060  }
1061 
1062  AssMats(WMA, WMB, 1.);
1063 }
void PutColIndex(integer iSubCol, integer iCol)
Definition: submat.h:325
FullSubMatrixHandler & SetFull(void)
Definition: submat.h:1168
const StructNode * pNode1
Definition: vehj4.h:48
virtual void AssMats(FullSubMatrixHandler &WMA, FullSubMatrixHandler &WMB, doublereal dCoef)
Definition: vehj4.cc:1067
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstMomentumIndex(void) const =0
virtual integer iGetFirstPositionIndex(void) const
Definition: strnode.h:452
virtual void ResizeReset(integer, integer)
Definition: submat.cc:182
void PutRowIndex(integer iSubRow, integer iRow)
Definition: submat.h:311
virtual void WorkSpaceDim(integer *piNumRows, integer *piNumCols) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

SubVectorHandler & ViscoElasticAxialJoint::AssRes ( SubVectorHandler WorkVec,
doublereal  dCoef,
const VectorHandler XCurr,
const VectorHandler XPrimeCurr 
)
virtual

Implements Elem.

Definition at line 1078 of file vehj4.cc.

References AssVec(), StructDispNode::iGetFirstMomentumIndex(), DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), and Elem::WorkSpaceDim().

1082 {
1083  /* Dimensiona e resetta la matrice di lavoro */
1084  integer iNumRows = 0;
1085  integer iNumCols = 0;
1086  WorkSpaceDim(&iNumRows, &iNumCols);
1087  WorkVec.ResizeReset(iNumRows);
1088 
1089  /* Recupera gli indici */
1090  integer iNode1FirstMomIndex = pNode1->iGetFirstMomentumIndex() + 3;
1091  integer iNode2FirstMomIndex = pNode2->iGetFirstMomentumIndex() + 3;
1092 
1093  /* Setta gli indici della matrice */
1094  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1095  WorkVec.PutRowIndex(iCnt, iNode1FirstMomIndex + iCnt);
1096  WorkVec.PutRowIndex(3 + iCnt, iNode2FirstMomIndex + iCnt);
1097  }
1098 
1099  AssVec(WorkVec);
1100 
1101  return WorkVec;
1102 }
virtual void ResizeReset(integer)
Definition: vh.cc:55
virtual void AssVec(SubVectorHandler &WorkVec)
Definition: vehj4.cc:1139
const StructNode * pNode1
Definition: vehj4.h:48
virtual void PutRowIndex(integer iSubRow, integer iRow)=0
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstMomentumIndex(void) const =0
virtual void WorkSpaceDim(integer *piNumRows, integer *piNumCols) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

SubVectorHandler & ViscoElasticAxialJoint::AssRes ( SubVectorHandler WorkVec,
const VectorHandler XCurr,
const VectorHandler XPrimeCurr,
const VectorHandler XPrimePrimeCurr,
InverseDynamics::Order  iOrder = InverseDynamics::INVERSE_DYNAMICS 
)
virtual

Reimplemented from Elem.

Definition at line 1106 of file vehj4.cc.

References ASSERT, AssVec(), DeformableAxialJoint::bFirstRes, StructDispNode::iGetFirstPositionIndex(), InverseDynamics::INVERSE_DYNAMICS, DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), and Elem::WorkSpaceDim().

1111 {
1113 
1114  bFirstRes = false;
1115 
1116  /* Dimensiona e resetta la matrice di lavoro */
1117  integer iNumRows = 0;
1118  integer iNumCols = 0;
1119  WorkSpaceDim(&iNumRows, &iNumCols);
1120  WorkVec.ResizeReset(iNumRows);
1121 
1122  /* Recupera gli indici */
1123  integer iNode1FirstMomIndex = pNode1->iGetFirstPositionIndex() + 3;
1124  integer iNode2FirstMomIndex = pNode2->iGetFirstPositionIndex() + 3;
1125 
1126  /* Setta gli indici della matrice */
1127  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1128  WorkVec.PutRowIndex(iCnt, iNode1FirstMomIndex + iCnt);
1129  WorkVec.PutRowIndex(3 + iCnt, iNode2FirstMomIndex + iCnt);
1130  }
1131 
1132  AssVec(WorkVec);
1133 
1134  return WorkVec;
1135 }
virtual void ResizeReset(integer)
Definition: vh.cc:55
virtual void AssVec(SubVectorHandler &WorkVec)
Definition: vehj4.cc:1139
const StructNode * pNode1
Definition: vehj4.h:48
virtual void PutRowIndex(integer iSubRow, integer iRow)=0
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstPositionIndex(void) const
Definition: strnode.h:452
#define ASSERT(expression)
Definition: colamd.c:977
virtual void WorkSpaceDim(integer *piNumRows, integer *piNumCols) const =0
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

void ViscoElasticAxialJoint::AssVec ( SubVectorHandler WorkVec)
protectedvirtual

Definition at line 1139 of file vehj4.cc.

References VectorHandler::Add(), DeformableAxialJoint::bFirstRes, dOmega, dThetaCurr, ConstitutiveLawOwner< T, Tder >::GetF(), StructNode::GetRCurr(), StructNode::GetWCurr(), DeformableAxialJoint::M, DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, VectorHandler::Sub(), DeformableAxialJoint::tilde_R1h, DeformableAxialJoint::tilde_R2h, ConstitutiveLawOwner< T, Tder >::Update(), and RotManip::VecRot().

Referenced by AssRes().

1140 {
1141  Mat3x3 R1h(pNode1->GetRCurr()*tilde_R1h);
1142  Vec3 e1z(R1h.GetVec(3));
1143 
1144  if (bFirstRes) {
1145  bFirstRes = false;
1146 
1147  } else {
1148  Mat3x3 R2h(pNode2->GetRCurr()*tilde_R2h);
1149 
1150  /* orientazione intermedia */
1151  dThetaCurr = RotManip::VecRot(R1h.MulTM(R2h))(3);
1152 
1153  /* velocita' relativa nel riferimento intermedio */
1154  dOmega = e1z.Dot(pNode2->GetWCurr() - pNode1->GetWCurr());
1155 
1156  /* aggiorna il legame costitutivo */
1158  }
1159 
1161 
1162  WorkVec.Add(1, M);
1163  WorkVec.Sub(4, M);
1164 }
Definition: matvec3.h:98
virtual const Mat3x3 & GetRCurr(void) const
Definition: strnode.h:1012
virtual void Sub(integer iRow, const Vec3 &v)
Definition: vh.cc:78
const StructNode * pNode1
Definition: vehj4.h:48
Mat3x3 tilde_R2h
Definition: vehj4.h:51
Vec3 VecRot(const Mat3x3 &Phi)
Definition: Rot.cc:136
const StructNode * pNode2
Definition: vehj4.h:49
virtual const Vec3 & GetWCurr(void) const
Definition: strnode.h:1030
Mat3x3 tilde_R1h
Definition: vehj4.h:50
virtual void Add(integer iRow, const Vec3 &v)
Definition: vh.cc:63
doublereal dOmega
Definition: vehj4.h:394
const T & GetF(void) const
Definition: constltp.h:293
doublereal dThetaCurr
Definition: vehj4.h:392
void Update(const T &Eps, const T &EpsPrime=mb_zero< T >())
Definition: constltp.h:283

Here is the call graph for this function:

virtual ConstLawType::Type ViscoElasticAxialJoint::GetConstLawType ( void  ) const
inlinevirtual

Implements DeformableAxialJoint.

Definition at line 419 of file vehj4.h.

References ConstLawType::VISCOELASTIC.

419  {
421  };
VariableSubMatrixHandler & ViscoElasticAxialJoint::InitialAssJac ( VariableSubMatrixHandler WorkMat,
const VectorHandler XCurr 
)
virtual

Implements SubjectToInitialAssembly.

Definition at line 1168 of file vehj4.cc.

References FullSubMatrixHandler::Add(), ConstitutiveLawOwner< T, Tder >::GetF(), ConstitutiveLawOwner< T, Tder >::GetFDE(), ConstitutiveLawOwner< T, Tder >::GetFDEPrime(), StructNode::GetRCurr(), Mat3x3::GetVec(), StructNode::GetWCurr(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), MatCross, DeformableAxialJoint::MDE, DeformableAxialJoint::MDEPrime, DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, FullSubMatrixHandler::PutColIndex(), FullSubMatrixHandler::PutRowIndex(), FullSubMatrixHandler::ResizeReset(), VariableSubMatrixHandler::SetFull(), FullSubMatrixHandler::Sub(), Mat3x3::Tens(), and DeformableAxialJoint::tilde_R1h.

1170 {
1171  FullSubMatrixHandler& WM = WorkMat.SetFull();
1172 
1173  /* Dimensiona e resetta la matrice di lavoro */
1174  integer iNumRows = 0;
1175  integer iNumCols = 0;
1176  InitialWorkSpaceDim(&iNumRows, &iNumCols);
1177  WM.ResizeReset(iNumRows, iNumCols);
1178 
1179  /* Recupera gli indici */
1180  integer iNode1FirstPosIndex = pNode1->iGetFirstPositionIndex() + 3;
1181  integer iNode1FirstVelIndex = iNode1FirstPosIndex + 6;
1182  integer iNode2FirstPosIndex = pNode2->iGetFirstPositionIndex() + 3;
1183  integer iNode2FirstVelIndex = iNode2FirstPosIndex + 6;
1184 
1185  /* Setta gli indici della matrice */
1186  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1187  WM.PutRowIndex(iCnt, iNode1FirstPosIndex + iCnt);
1188  WM.PutColIndex(iCnt, iNode1FirstPosIndex + iCnt);
1189  WM.PutColIndex(3 + iCnt, iNode1FirstVelIndex + iCnt);
1190 
1191  WM.PutRowIndex(3 + iCnt, iNode2FirstPosIndex + iCnt);
1192  WM.PutColIndex(6 + iCnt, iNode2FirstPosIndex + iCnt);
1193  WM.PutColIndex(9 + iCnt, iNode2FirstVelIndex + iCnt);
1194  }
1195 
1196  Vec3 e1z(pNode1->GetRCurr()*tilde_R1h.GetVec(3));
1197  const Vec3& W2(pNode2->GetWCurr());
1198 
1201 
1202  Mat3x3 Tmp(MDE + MDEPrime*Mat3x3(MatCross, W2));
1203  WM.Add(4, 7, Tmp);
1204  WM.Sub(1, 7, Tmp);
1205 
1207  WM.Add(1, 1, Tmp);
1208  WM.Sub(4, 1, Tmp);
1209 
1210  WM.Add(1, 4, MDEPrime);
1211  WM.Add(4, 10, MDEPrime);
1212 
1213  WM.Sub(1, 10, MDEPrime);
1214  WM.Sub(4, 4, MDEPrime);
1215 
1216  return WorkMat;
1217 }
void PutColIndex(integer iSubCol, integer iCol)
Definition: submat.h:325
Definition: matvec3.h:98
const MatCross_Manip MatCross
Definition: matvec3.cc:639
FullSubMatrixHandler & SetFull(void)
Definition: submat.h:1168
virtual const Mat3x3 & GetRCurr(void) const
Definition: strnode.h:1012
void Add(integer iRow, integer iCol, const Vec3 &v)
Definition: submat.cc:209
const Tder & GetFDE(void) const
Definition: constltp.h:298
const StructNode * pNode1
Definition: vehj4.h:48
const Mat3x3 & Tens(const Vec3 &a, const Vec3 &b)
Definition: matvec3.h:799
Vec3 GetVec(unsigned short int i) const
Definition: matvec3.h:893
virtual void InitialWorkSpaceDim(integer *piNumRows, integer *piNumCols) const
Definition: vehj4.h:466
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstPositionIndex(void) const
Definition: strnode.h:452
virtual const Vec3 & GetWCurr(void) const
Definition: strnode.h:1030
Mat3x3 tilde_R1h
Definition: vehj4.h:50
virtual void ResizeReset(integer, integer)
Definition: submat.cc:182
Mat3x3 MDEPrime
Definition: vehj4.h:67
void PutRowIndex(integer iSubRow, integer iRow)
Definition: submat.h:311
const T & GetF(void) const
Definition: constltp.h:293
void Sub(integer iRow, integer iCol, const Vec3 &v)
Definition: submat.cc:215
const Tder & GetFDEPrime(void) const
Definition: constltp.h:303
long int integer
Definition: colamd.c:51

Here is the call graph for this function:

SubVectorHandler & ViscoElasticAxialJoint::InitialAssRes ( SubVectorHandler WorkVec,
const VectorHandler XCurr 
)
virtual

Implements SubjectToInitialAssembly.

Definition at line 1221 of file vehj4.cc.

References VectorHandler::Add(), DeformableAxialJoint::bFirstRes, dOmega, dThetaCurr, ConstitutiveLawOwner< T, Tder >::GetF(), StructNode::GetRCurr(), StructNode::GetWCurr(), StructDispNode::iGetFirstPositionIndex(), InitialWorkSpaceDim(), DeformableAxialJoint::M, DeformableAxialJoint::pNode1, DeformableAxialJoint::pNode2, SubVectorHandler::PutRowIndex(), VectorHandler::ResizeReset(), VectorHandler::Sub(), DeformableAxialJoint::tilde_R1h, DeformableAxialJoint::tilde_R2h, ConstitutiveLawOwner< T, Tder >::Update(), and RotManip::VecRot().

1223 {
1224  /* Dimensiona e resetta la matrice di lavoro */
1225  integer iNumRows = 0;
1226  integer iNumCols = 0;
1227  InitialWorkSpaceDim(&iNumRows, &iNumCols);
1228  WorkVec.ResizeReset(iNumRows);
1229 
1230  /* Recupera gli indici */
1231  integer iNode1FirstPosIndex = pNode1->iGetFirstPositionIndex() + 3;
1232  integer iNode2FirstPosIndex = pNode2->iGetFirstPositionIndex() + 3;
1233 
1234  /* Setta gli indici della matrice */
1235  for (int iCnt = 1; iCnt <= 3; iCnt++) {
1236  WorkVec.PutRowIndex(iCnt, iNode1FirstPosIndex + iCnt);
1237  WorkVec.PutRowIndex(3 + iCnt, iNode2FirstPosIndex + iCnt);
1238  }
1239 
1240  Mat3x3 R1h(pNode1->GetRCurr()*tilde_R1h);
1241  Vec3 e1z(R1h.GetVec(3));
1242 
1243  if (bFirstRes) {
1244  bFirstRes = false;
1245 
1246  } else {
1247  Mat3x3 R2h(pNode2->GetRCurr()*tilde_R2h);
1248 
1249  dThetaCurr = RotManip::VecRot(R1h.MulTM(R2h))(3);
1250  dOmega = e1z.Dot(pNode2->GetWCurr() - pNode1->GetWCurr());
1251 
1253  }
1254 
1256 
1257  WorkVec.Add(1, M);
1258  WorkVec.Sub(4, M);
1259 
1260  return WorkVec;
1261 }
Definition: matvec3.h:98
virtual void ResizeReset(integer)
Definition: vh.cc:55
virtual const Mat3x3 & GetRCurr(void) const
Definition: strnode.h:1012
virtual void Sub(integer iRow, const Vec3 &v)
Definition: vh.cc:78
const StructNode * pNode1
Definition: vehj4.h:48
Mat3x3 tilde_R2h
Definition: vehj4.h:51
Vec3 VecRot(const Mat3x3 &Phi)
Definition: Rot.cc:136
virtual void InitialWorkSpaceDim(integer *piNumRows, integer *piNumCols) const
Definition: vehj4.h:466
virtual void PutRowIndex(integer iSubRow, integer iRow)=0
const StructNode * pNode2
Definition: vehj4.h:49
virtual integer iGetFirstPositionIndex(void) const
Definition: strnode.h:452
virtual const Vec3 & GetWCurr(void) const
Definition: strnode.h:1030
Mat3x3 tilde_R1h
Definition: vehj4.h:50
virtual void Add(integer iRow, const Vec3 &v)
Definition: vh.cc:63
doublereal dOmega
Definition: vehj4.h:394
const T & GetF(void) const
Definition: constltp.h:293
doublereal dThetaCurr
Definition: vehj4.h:392
long int integer
Definition: colamd.c:51
void Update(const T &Eps, const T &EpsPrime=mb_zero< T >())
Definition: constltp.h:283

Here is the call graph for this function:

virtual void ViscoElasticAxialJoint::InitialWorkSpaceDim ( integer piNumRows,
integer piNumCols 
) const
inlinevirtual

Implements SubjectToInitialAssembly.

Definition at line 466 of file vehj4.h.

Referenced by InitialAssJac(), and InitialAssRes().

467  {
468  *piNumRows = 6;
469  *piNumCols = 12;
470  };

Member Data Documentation

doublereal ViscoElasticAxialJoint::dOmega
protected

Definition at line 394 of file vehj4.h.

Referenced by AfterConvergence(), AfterPredict(), AssVec(), and InitialAssRes().

doublereal ViscoElasticAxialJoint::dThetaCurr
protected

Definition at line 392 of file vehj4.h.

Referenced by AfterConvergence(), AfterPredict(), AssVec(), and InitialAssRes().

doublereal ViscoElasticAxialJoint::dThetaRef
protected

Definition at line 391 of file vehj4.h.

Referenced by AfterPredict().


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