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

#include <drive.h>

Inheritance diagram for DriveOwner:
Collaboration diagram for DriveOwner:

Public Member Functions

 DriveOwner (const DriveCaller *pDC=0)
 
 DriveOwner (const DriveOwner &drive)
 
virtual ~DriveOwner (void)
 
void Set (const DriveCaller *pDC)
 
DriveCallerpGetDriveCaller (void) const
 
doublereal dGet (const doublereal &dVar) const
 
doublereal dGet (void) const
 
bool bIsDifferentiable (void) const
 
doublereal dGetP (const doublereal &dVar) const
 
doublereal dGetP (void) const
 

Protected Attributes

DriveCallerpDriveCaller
 

Private Member Functions

void operator= (const DriveOwner &)
 

Detailed Description

Definition at line 130 of file drive.h.

Constructor & Destructor Documentation

DriveOwner::DriveOwner ( const DriveCaller pDC = 0)

Definition at line 627 of file drive.cc.

References NO_OP.

628 : pDriveCaller(const_cast<DriveCaller*>(pDC))
629 {
630  NO_OP;
631 }
DriveCaller * pDriveCaller
Definition: drive.h:133
#define NO_OP
Definition: myassert.h:74
DriveOwner::DriveOwner ( const DriveOwner drive)

Definition at line 633 of file drive.cc.

References NO_OP.

634 : pDriveCaller(drive.pDriveCaller ? drive.pDriveCaller->pCopy() : 0)
635 {
636  NO_OP;
637 }
DriveCaller * pDriveCaller
Definition: drive.h:133
#define NO_OP
Definition: myassert.h:74
virtual DriveCaller * pCopy(void) const =0
DriveOwner::~DriveOwner ( void  )
virtual

Definition at line 639 of file drive.cc.

References pDriveCaller, and SAFEDELETE.

640 {
641  if (pDriveCaller != 0) {
643  }
644 }
DriveCaller * pDriveCaller
Definition: drive.h:133
#define SAFEDELETE(pnt)
Definition: mynewmem.h:710

Member Function Documentation

bool DriveOwner::bIsDifferentiable ( void  ) const

Definition at line 677 of file drive.cc.

References DriveCaller::bIsDifferentiable(), and pDriveCaller.

Referenced by DriveDriveCaller::bIsDifferentiable(), SingleTplDriveCaller< T >::bIsDifferentiable(), SingleTplDriveCaller< doublereal >::bIsDifferentiable(), and PostponedDriveCaller::bIsDifferentiable().

678 {
680 }
DriveCaller * pDriveCaller
Definition: drive.h:133
virtual bool bIsDifferentiable(void) const
Definition: drive.h:495

Here is the call graph for this function:

doublereal DriveOwner::dGet ( const doublereal dVar) const

Definition at line 664 of file drive.cc.

References DriveCaller::dGet(), and pDriveCaller.

Referenced by ScalarPX::AddInput(), VectorPX::AddInput(), AeroDynModule::AeroDynModule(), LoadIncNorm::AfterConvergence(), Brake::AfterConvergence(), Rotor::AfterConvergence(), AeroDynModule::AfterConvergence(), CyclocopterUniform1D::AfterConvergence(), CyclocopterUniform2D::AfterConvergence(), CyclocopterPolimi::AfterConvergence(), VariableBody::AfterPredict(), AeroDynModule::AfterPredict(), HydrodynamicPlainBearing::AssJac(), LoadIncNorm::AssJac(), asynchronous_machine::AssJac(), Motor::AssJac(), RotorTrimBase::AssJac(), Brake::AssJac(), ModuleMDS::AssRes(), LoadIncNorm::AssRes(), asynchronous_machine::AssRes(), Motor::AssRes(), RotorTrimBase::AssRes(), Brake::AssRes(), DynamicVariableBody::AssRes(), AeroDynModule::AssRes(), StaticVariableBody::AssRes(), Wheel4::AssRes(), VariableBody::AssVecRBK_int(), asynchronous_machine::asynchronous_machine(), HydrodynamicPlainBearing::ComputeResidual(), PostponedDriveCaller::dGet(), BasicAirProperties::dGetAirDensity(), Solver::dGetInitialMaxTimeStep(), VariableBody::dGetM(), ChangeStep::dGetNewStepTime(), Factor::dGetNewStepTime(), DriveDriveCaller::dGetP(), asynchronous_machine::dGetPrivData(), Motor::dGetPrivData(), VariableBody::dGetPrivData(), DynamicVariableBody::GetB_int(), RotorTrimGeneric::GetData(), DynamicVariableBody::GetG_int(), VariableBody::GetJ_int(), FixedDirPosRel::GetPosRel(), VariableBody::GetS_int(), Gust1D::GetVelocity(), PowerLawWindProfile::GetVelocity(), LogarithmicWindProfile::GetVelocity(), GRAALLDamperConstitutiveLaw::GRAALLDamperConstitutiveLaw(), NoChange::Init(), ChangeStep::Init(), Factor::Init(), DynamicVariableBody::InitialAssRes(), asynchronous_machine::IsMotorOn(), LoadIncNorm::LoadIncNorm(), asynchronous_machine::Output(), Brake::Output(), SwitchDriveCaller::pGetDrive(), DAC_Process_Debug::PutOutput(), InverseSolver::ReadData(), Solver::ReadData(), asynchronous_machine::Restart(), SampleAndHold::SampleAndHold(), TunableThirdOrderIntegrator::SetCoef(), MultistepSolver::SetCoef(), HopeSolver::SetCoef(), SampleAndHold::SetValue(), DynamicVariableBody::SetValue(), SampleAndHold::Update(), MusclePennestriCL::Update(), MusclePennestriReflexiveCL::Update(), GRAALLDamperConstitutiveLaw::Update(), and LTVViscoElasticGenericConstitutiveLaw< T, Tder >::Update().

665 {
666  return pDriveCaller->dGet(dVal);
667 }
DriveCaller * pDriveCaller
Definition: drive.h:133
virtual doublereal dGet(const doublereal &dVar) const =0

Here is the call graph for this function:

doublereal DriveOwner::dGet ( void  ) const

Definition at line 671 of file drive.cc.

References DriveCaller::dGet(), and pDriveCaller.

Referenced by DrivenElem::AfterConvergence(), DrivenElem::AfterPredict(), BulkSpringSupport::AssJac(), DrivenElem::AssJac(), AerodynamicBody::AssJac(), AerodynamicBeam::AssJac(), GenelMass::AssJac(), AerodynamicBeam2::AssJac(), DrivenElem::AssMats(), LinearAccelerationJoint::AssRes(), GenelClamp::AssRes(), LinearVelocityJoint::AssRes(), DrivenElem::AssRes(), BulkSpringSupport::AssRes(), GenelDistance::AssRes(), AngularAccelerationJoint::AssRes(), AngularVelocityJoint::AssRes(), GenelMass::AssRes(), AerodynamicBody::AssVec(), AerodynamicBeam::AssVec(), AerodynamicBeam2::AssVec(), DrivenElem::BeforePredict(), DrivenElem::bIsActive(), DrivenElem::dGetM(), LinearAccelerationJoint::dGetPrivData(), DrivenElem::dGetPrivData(), LinearVelocityJoint::dGetPrivData(), DistanceJoint::dGetPrivData(), AngularAccelerationJoint::dGetPrivData(), AngularVelocityJoint::dGetPrivData(), DistanceJointWithOffset::dGetPrivData(), AxialRotationJoint::dGetPrivData(), SingleTplDriveCaller< T >::Get(), SingleTplDriveCaller< doublereal >::Get(), DrivenElem::GetB_int(), DrivenElem::GetG_int(), DrivenElem::GetJ(), DrivenElem::GetJ_int(), DrivenElem::GetS(), DrivenElem::GetS_int(), Vec3DriveOwner::GetVec(), DrivenElem::iGetInitialNumDof(), DrivenElem::InitialAssJac(), LinearVelocityJoint::InitialAssRes(), DrivenElem::InitialAssRes(), AngularVelocityJoint::InitialAssRes(), DrivenElem::InitialWorkSpaceDim(), DrivenElem::Output(), LinearAccelerationJoint::Output(), LinearVelocityJoint::Output(), DistanceJoint::Output(), AngularAccelerationJoint::Output(), AbstractForce::Output(), AngularVelocityJoint::Output(), DistanceJointWithOffset::Output(), AbstractInternalForce::Output(), AxialRotationJoint::Output(), DrivenElem::SetInitialValue(), DrivenElem::SetValue(), GenelClamp::SetValue(), GenelDistance::SetValue(), and DrivenElem::Update().

672 {
673  return pDriveCaller->dGet();
674 }
DriveCaller * pDriveCaller
Definition: drive.h:133
virtual doublereal dGet(const doublereal &dVar) const =0

Here is the call graph for this function:

doublereal DriveOwner::dGetP ( const doublereal dVar) const

Definition at line 683 of file drive.cc.

References DriveCaller::dGetP(), and pDriveCaller.

Referenced by Motor::AssJac(), DynamicVariableBody::AssRes(), DriveDriveCaller::dGetP(), and PostponedDriveCaller::dGetP().

684 {
685  return pDriveCaller->dGetP(dVal);
686 }
DriveCaller * pDriveCaller
Definition: drive.h:133
virtual doublereal dGetP(const doublereal &dVar) const
Definition: drive.cc:499

Here is the call graph for this function:

doublereal DriveOwner::dGetP ( void  ) const

Definition at line 690 of file drive.cc.

References DriveCaller::dGetP(), and pDriveCaller.

Referenced by SingleTplDriveCaller< T >::GetP(), and SingleTplDriveCaller< doublereal >::GetP().

691 {
692  return pDriveCaller->dGetP();
693 }
DriveCaller * pDriveCaller
Definition: drive.h:133
virtual doublereal dGetP(const doublereal &dVar) const
Definition: drive.cc:499

Here is the call graph for this function:

void DriveOwner::operator= ( const DriveOwner )
inlineprivate

Definition at line 131 of file drive.h.

131 {}
DriveCaller * DriveOwner::pGetDriveCaller ( void  ) const

Definition at line 658 of file drive.cc.

References pDriveCaller.

Referenced by Rotor::AfterConvergence(), DistanceJoint::AssJac(), DistanceJointWithOffset::AssJac(), ThermalSource::AssRes(), DistanceJoint::AssRes(), Control_valve::AssRes(), AbstractForce::AssRes(), DistanceJointWithOffset::AssRes(), AbstractInternalForce::AssRes(), Dynamic_control_valve::AssRes(), Pressure_flow_control_valve::AssRes(), AxialRotationJoint::AssRes(), MultDriveCaller::bIsDifferentiable(), PeriodicDriveCaller::bIsDifferentiable(), PostponedDriveCaller::Check(), DofDriveCaller::dGet(), DriveDriveCaller::dGet(), PrivDriveCaller::dGet(), MultDriveCaller::dGet(), PeriodicDriveCaller::dGet(), Solver::dGetInitialMaxTimeStep(), MultDriveCaller::dGetP(), PeriodicDriveCaller::dGetP(), NoChange::Init(), ChangeStep::Init(), Factor::Init(), DistanceJoint::InitialAssJac(), DistanceJointWithOffset::InitialAssJac(), DistanceJoint::InitialAssRes(), DistanceJointWithOffset::InitialAssRes(), AxialRotationJoint::InitialAssRes(), DofDriveCaller::pCopy(), DriveDriveCaller::pCopy(), PrivDriveCaller::pCopy(), MusclePennestriCL::pCopy(), SingleTplDriveCaller< T >::pCopy(), MusclePennestriErgoCL::pCopy(), SingleTplDriveCaller< doublereal >::pCopy(), MusclePennestriReflexiveCL::pCopy(), MultDriveCaller::pCopy(), LTVViscoElasticGenericConstitutiveLaw< T, Tder >::pCopy(), PeriodicDriveCaller::pCopy(), SwitchDriveCaller::pGetDrive(), Control_valve2::Prepare(), InverseSolver::ReadData(), Solver::ReadData(), Vec3DriveOwner::Restart(), DofDriveCaller::Restart(), DriveDriveCaller::Restart(), PrivDriveCaller::Restart(), DistanceJoint::Restart(), LinearVelocityJoint::Restart(), DrivenElem::Restart(), Gust1D::Restart(), VariableBody::Restart(), MusclePennestriCL::Restart(), PowerLawWindProfile::Restart(), BasicAirProperties::Restart(), HydrodynamicPlainBearing::Restart(), Motor::Restart(), asynchronous_machine::Restart(), SingleTplDriveCaller< T >::Restart(), LogarithmicWindProfile::Restart(), AbstractForce::Restart(), AngularVelocityJoint::Restart(), DistanceJointWithOffset::Restart(), SingleTplDriveCaller< doublereal >::Restart(), AbstractInternalForce::Restart(), MultDriveCaller::Restart(), AerodynamicBody::Restart(), UniformRotor::Restart(), AerodynamicBeam::Restart(), AxialRotationJoint::Restart(), GlauertRotor::Restart(), AerodynamicBeam2::Restart(), ManglerRotor::Restart(), LTVViscoElasticGenericConstitutiveLaw< T, Tder >::Restart(), PeriodicDriveCaller::Restart(), PostponedDriveCaller::Restart(), SingleTplDriveCaller< T >::Restart_int(), SingleTplDriveCaller< doublereal >::Restart_int(), MusclePennestriReflexiveCL::Restart_int(), TunableThirdOrderIntegrator::SetDriveHandler(), MultistepSolver::SetDriveHandler(), HopeSolver::SetDriveHandler(), DistanceJoint::SetInitialValue(), DistanceJointWithOffset::SetInitialValue(), DistanceJoint::SetValue(), and DistanceJointWithOffset::SetValue().

659 {
660  return pDriveCaller;
661 }
DriveCaller * pDriveCaller
Definition: drive.h:133

Member Data Documentation

DriveCaller* DriveOwner::pDriveCaller
protected

Definition at line 133 of file drive.h.

Referenced by bIsDifferentiable(), dGet(), dGetP(), pGetDriveCaller(), Set(), and ~DriveOwner().


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