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

#include <rottrim.h>

Inheritance diagram for RotorTrimGeneric:
Collaboration diagram for RotorTrimGeneric:

Public Member Functions

 RotorTrimGeneric (unsigned int uL, const DofOwner *pDO, const StructNode *pStrNode, const DriveCaller *pThrust, const DriveCaller *pRollMoment, const DriveCaller *pPitchMoment, const AirProperties *pAP, doublereal dRadius, const DriveCaller *pOmega, const DriveCaller *pMu, const ScalarDifferentialNode *pNode1, const ScalarDifferentialNode *pNode2, const ScalarDifferentialNode *pNode3, const DriveCaller *pDThrust, const DriveCaller *pDRollMoment, const DriveCaller *pDPitchMoment, const doublereal &dG, const doublereal &dp, const doublereal &dT0, const doublereal &dT1, const doublereal &dK0, const doublereal &dK1, const DriveCaller *pTrigger, flag fOut)
 
virtual ~RotorTrimGeneric (void)
 
virtual std::ostream & Restart (std::ostream &out) const
 
- 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
 
virtual void AssMats (VariableSubMatrixHandler &WorkMatA, VariableSubMatrixHandler &WorkMatB, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual bool bInverseDynamics (void) 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 SubVectorHandlerAssRes (SubVectorHandler &WorkVec, const VectorHandler &XCurr, const VectorHandler &XPrimeCurr, const VectorHandler &XPrimePrimeCurr, InverseDynamics::Order iOrder=InverseDynamics::INVERSE_DYNAMICS)
 
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 SetValue (DataManager *pDM, VectorHandler &X, VectorHandler &XP, SimulationEntity::Hints *h=0)
 
virtual HintParseHint (DataManager *pDM, const char *s) const
 
virtual void BeforePredict (VectorHandler &, VectorHandler &, VectorHandler &, VectorHandler &) const
 
virtual void AfterPredict (VectorHandler &X, VectorHandler &XP)
 
virtual void Update (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void DerivativesUpdate (const VectorHandler &XCurr, const VectorHandler &XPrimeCurr)
 
virtual void Update (const VectorHandler &XCurr, InverseDynamics::Order iOrder)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP)
 
virtual void AfterConvergence (const VectorHandler &X, const VectorHandler &XP, const VectorHandler &XPP)
 
virtual unsigned int iGetNumPrivData (void) const
 
virtual unsigned int iGetPrivDataIdx (const char *s) const
 
virtual doublereal dGetPrivData (unsigned int i) const
 
virtual std::ostream & OutputAppend (std::ostream &out) const
 
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
 
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 RotorTrimBase
 RotorTrimBase (unsigned int uL, const DofOwner *pDO, const ScalarDifferentialNode *pNode1, const ScalarDifferentialNode *pNode2, const ScalarDifferentialNode *pNode3, const DriveCaller *pDThrust, const DriveCaller *pDRollMoment, const DriveCaller *pDPitchMoment, const doublereal &dG, const doublereal &dp, const doublereal &dT0, const doublereal &dT1, const doublereal &dK0, const doublereal &dK1, const DriveCaller *pTrigger, flag fOut)
 
virtual ~RotorTrimBase (void)
 
virtual unsigned int iGetNumDof (void) const
 
virtual Genel::Type GetGenelType (void) const
 
virtual void WorkSpaceDim (integer *piNumRows, integer *piNumCols) const
 
virtual VariableSubMatrixHandlerAssJac (VariableSubMatrixHandler &WorkMat, doublereal dCoef, const VectorHandler &, const VectorHandler &)
 
virtual SubVectorHandlerAssRes (SubVectorHandler &WorkVec, doublereal dCoef, const VectorHandler &, const VectorHandler &)
 
virtual void GetConnectedNodes (std::vector< const Node * > &connectedNodes) const
 
- Public Member Functions inherited from Genel
 Genel (unsigned int uL, const DofOwner *pDO, flag fOut)
 
virtual ~Genel (void)
 
virtual Elem::Type GetElemType (void) 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
 
virtual void SetInitialValue (VectorHandler &X)
 

Protected Member Functions

virtual void GetData (doublereal &dThrust, doublereal &dRollMoment, doublereal &dPitchMoment, doublereal &dRho, doublereal &dOmega, doublereal &dMu) const
 

Protected Attributes

const StructNodepStrNode
 
DriveOwner Thrust
 
DriveOwner RollMoment
 
DriveOwner PitchMoment
 
const AirPropertiespAP
 
DriveOwner Omega
 
DriveOwner Mu
 
- Protected Attributes inherited from WithLabel
unsigned int uLabel
 
std::string sName
 
- Protected Attributes inherited from ToBeOutput
flag fOutput
 
- Protected Attributes inherited from RotorTrimBase
doublereal dRadius
 
const ScalarDifferentialNodepvNodes [3]
 
DriveOwner DThrust
 
DriveOwner DRollMoment
 
DriveOwner DPitchMoment
 
DriveOwner Trigger
 
doublereal dGamma
 
doublereal dP
 
doublereal dP2
 
doublereal dC
 
doublereal dC2
 
doublereal dTau0
 
doublereal dTau1
 
doublereal dKappa0
 
doublereal dKappa1
 

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 Genel
enum  Type {
  UNKNOWN = -1, SWASHPLATE = 0, ROTORTRIM, CLAMP,
  DISTANCE, SPRING, SPRINGSUPPORT, CROSSSPRINGSUPPORT,
  SPRINGDAMPER, SPRINGDAMPERSUPPORT, CROSSSPRINGDAMPERSUPPORT, MASS,
  SCALARFILTER, STATESPACESISO, STATESPACEMIMO, LASTGENELTYPE
}
 

Detailed Description

Definition at line 187 of file rottrim.h.

Constructor & Destructor Documentation

RotorTrimGeneric::RotorTrimGeneric ( unsigned int  uL,
const DofOwner pDO,
const StructNode pStrNode,
const DriveCaller pThrust,
const DriveCaller pRollMoment,
const DriveCaller pPitchMoment,
const AirProperties pAP,
doublereal  dRadius,
const DriveCaller pOmega,
const DriveCaller pMu,
const ScalarDifferentialNode pNode1,
const ScalarDifferentialNode pNode2,
const ScalarDifferentialNode pNode3,
const DriveCaller pDThrust,
const DriveCaller pDRollMoment,
const DriveCaller pDPitchMoment,
const doublereal dG,
const doublereal dp,
const doublereal dT0,
const doublereal dT1,
const doublereal dK0,
const doublereal dK1,
const DriveCaller pTrigger,
flag  fOut 
)

Definition at line 295 of file rottrim.cc.

References RotorTrimBase::dRadius.

319 : Elem(uL, fOut),
320 RotorTrimBase(uL, pDO, pNode1, pNode2, pNode3,
321  pDThrust, pDRollMoment, pDPitchMoment,
322  dG, dp, dT0, dT1, dK0, dK1, pTrigger, fOut),
323 pStrNode(pStrNode),
324 Thrust(pThrust),
325 RollMoment(pRollMoment),
326 PitchMoment(pPitchMoment),
327 pAP(pAP),
328 Omega(pOmega),
329 Mu(pMu)
330 {
331  this->dRadius = dRadius;
332 }
DriveOwner PitchMoment
Definition: rottrim.h:190
RotorTrimBase(unsigned int uL, const DofOwner *pDO, const ScalarDifferentialNode *pNode1, const ScalarDifferentialNode *pNode2, const ScalarDifferentialNode *pNode3, const DriveCaller *pDThrust, const DriveCaller *pDRollMoment, const DriveCaller *pDPitchMoment, const doublereal &dG, const doublereal &dp, const doublereal &dT0, const doublereal &dT1, const doublereal &dK0, const doublereal &dK1, const DriveCaller *pTrigger, flag fOut)
Definition: rottrim.cc:41
doublereal dRadius
Definition: rottrim.h:60
DriveOwner Omega
Definition: rottrim.h:192
DriveOwner Mu
Definition: rottrim.h:192
DriveOwner RollMoment
Definition: rottrim.h:190
const StructNode * pStrNode
Definition: rottrim.h:189
DriveOwner Thrust
Definition: rottrim.h:190
Elem(unsigned int uL, flag fOut)
Definition: elem.cc:41
const AirProperties * pAP
Definition: rottrim.h:191
RotorTrimGeneric::~RotorTrimGeneric ( void  )
virtual

Definition at line 334 of file rottrim.cc.

References NO_OP.

335 {
336  NO_OP;
337 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

void RotorTrimGeneric::GetData ( doublereal dThrust,
doublereal dRollMoment,
doublereal dPitchMoment,
doublereal dRho,
doublereal dOmega,
doublereal dMu 
) const
protectedvirtual

Implements RotorTrimBase.

Definition at line 347 of file rottrim.cc.

References DriveOwner::dGet(), AirProperties::dGetAirDensity(), StructDispNode::GetXCurr(), Mu, Omega, pAP, PitchMoment, pStrNode, RollMoment, Thrust, and Zero3.

353 {
354  dThrust = Thrust.dGet();
355  dRollMoment = RollMoment.dGet();
356  dPitchMoment = PitchMoment.dGet();
358  dOmega = Omega.dGet();
359  dMu = Mu.dGet();
360 }
DriveOwner PitchMoment
Definition: rottrim.h:190
const Vec3 Zero3(0., 0., 0.)
DriveOwner Omega
Definition: rottrim.h:192
DriveOwner Mu
Definition: rottrim.h:192
DriveOwner RollMoment
Definition: rottrim.h:190
virtual const Vec3 & GetXCurr(void) const
Definition: strnode.h:310
doublereal dGet(const doublereal &dVar) const
Definition: drive.cc:664
virtual doublereal dGetAirDensity(const Vec3 &) const =0
const StructNode * pStrNode
Definition: rottrim.h:189
DriveOwner Thrust
Definition: rottrim.h:190
const AirProperties * pAP
Definition: rottrim.h:191

Here is the call graph for this function:

std::ostream & RotorTrimGeneric::Restart ( std::ostream &  out) const
virtual

Implements Elem.

Definition at line 341 of file rottrim.cc.

342 {
343  return out << " /* rotor trim not implemented yet */ ";
344 }

Member Data Documentation

DriveOwner RotorTrimGeneric::Mu
protected

Definition at line 192 of file rottrim.h.

Referenced by GetData().

DriveOwner RotorTrimGeneric::Omega
protected

Definition at line 192 of file rottrim.h.

Referenced by GetData().

const AirProperties* RotorTrimGeneric::pAP
protected

Definition at line 191 of file rottrim.h.

Referenced by GetData().

DriveOwner RotorTrimGeneric::PitchMoment
protected

Definition at line 190 of file rottrim.h.

Referenced by GetData().

const StructNode* RotorTrimGeneric::pStrNode
protected

Definition at line 189 of file rottrim.h.

Referenced by GetData().

DriveOwner RotorTrimGeneric::RollMoment
protected

Definition at line 190 of file rottrim.h.

Referenced by GetData().

DriveOwner RotorTrimGeneric::Thrust
protected

Definition at line 190 of file rottrim.h.

Referenced by GetData().


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