#include <WingMechanism.h>
Public Member Functions | |
Wing () | |
~Wing () | |
bool | specificSetup (SceneType &ThisScene, WingControl *WingCtrl) |
void | drive (WingControl *WingCtrl, DataType time) |
void | rotate (DataType val) |
void | response (Wing *ThisWing, WingControl *WingCtrl, double &t, double &dt, int nsteps, int logevery) |
virtual void | logKinetics (Wing *ThisWing, WingControl *WingCtrl, std::ofstream &ofs, DataType time_, int steps) |
void | movement (Wing *ThisWing, WingControl *WingCtrl, double &t, double &dt) |
virtual void | Restart (std::ifstream &ifs, int &pos, double &t, double &dt) |
virtual void | Checkpointing (std::ofstream &ofs) |
Protected Attributes | |
AssemblyType * | Wing0pt |
LoftType * | Comp0 |
LoftType * | Comp1 |
ChainType * | C1 |
ChainType * | C2 |
LinkType * | L0 |
int | L0_index |
int | C1_index |
PType | T_comp0 |
PType | T_comp1 |
DataType | tval |
DataType | rval |
DataType | gtmax |
DataType | grmax |
DataType | a_comp0 |
DataType | a_comp1 |
DataType | v_comp0 |
DataType | v_comp1 |
DataType | p_comp0 |
DataType | p_comp1 |
Wing::~Wing | ( | ) | [inline] |
virtual void Wing::Checkpointing | ( | std::ofstream & | ofs | ) | [inline, virtual] |
References a_comp0, a_comp1, C1, C1_index, DH_Chain< class, dim >::Checkpointing(), DH_Link< class, dim >::Checkpointing(), L0, L0_index, p_comp0, p_comp1, T_comp0, T_comp1, v_comp0, and v_comp1.
Referenced by MotionSpecific::Checkpointing().
void Wing::drive | ( | WingControl * | WingCtrl, | |
DataType | time | |||
) | [inline] |
References WingControl::A0, DH_Link< class, dim >::actuate(), WingControl::beta, WingControl::brake_release, C1, WingControl::comp0_name, WingControl::freq, DH_Link< class, dim >::getChild(), DH_Chain< class, dim >::GetNthLink(), grmax, gtmax, L0, WingControl::phi, pi, rval, Joint< class, dim >::setOrigin(), WingControl::sigma_R, WingControl::sigma_T, tval, and DH_Link< class, dim >::update().
Referenced by response(), and specificSetup().
virtual void Wing::logKinetics | ( | Wing * | ThisWing, | |
WingControl * | WingCtrl, | |||
std::ofstream & | ofs, | |||
DataType | time_, | |||
int | steps | |||
) | [inline, virtual] |
References a_comp0, d2r, p_comp0, v_comp0, and WingControl::Wing_name.
Referenced by MotionSpecific::logKinetics().
void Wing::movement | ( | Wing * | ThisWing, | |
WingControl * | WingCtrl, | |||
double & | t, | |||
double & | dt | |||
) | [inline] |
References d2r.
Referenced by MotionSpecific::movement().
void Wing::response | ( | Wing * | ThisWing, | |
WingControl * | WingCtrl, | |||
double & | t, | |||
double & | dt, | |||
int | nsteps, | |||
int | logevery | |||
) | [inline] |
References a_comp1, WingControl::A_comp1, WingControl::brake_release, WingControl::brake_set, WingControl::C_comp0, WingControl::C_comp1, Loft< class >::Centroid(), Comp0, Comp1, cross3D(), d2r, drive(), Loft< class >::GetNetP(), WingControl::hGap, WingControl::I_comp1, WingControl::Kts, norm_2(), p_comp0, p_comp1, projectScalar(), rotate(), rval, T_comp1, v_comp1, Loft< class >::Volume(), and WingControl::Wing_name.
Referenced by MotionSpecific::movement().
virtual void Wing::Restart | ( | std::ifstream & | ifs, | |
int & | pos, | |||
double & | t, | |||
double & | dt | |||
) | [inline, virtual] |
References a_comp0, a_comp1, C1, C1_index, L0, L0_index, p_comp0, p_comp1, DH_Chain< class, dim >::Restart(), DH_Link< class, dim >::Restart(), T_comp0, T_comp1, v_comp0, and v_comp1.
Referenced by MotionSpecific::Restart().
void Wing::rotate | ( | DataType | val | ) | [inline] |
References DH_Link< class, dim >::actuate(), C1, and DH_Chain< class, dim >::GetNthLink().
Referenced by response().
bool Wing::specificSetup | ( | SceneType & | ThisScene, | |
WingControl * | WingCtrl | |||
) | [inline] |
initialization
References SceneBase< DataType, dim >::AddAssembly(), SceneBase< DataType, dim >::AddChain(), DH_Chain< class, dim >::AddJoint(), DH_Chain< class, dim >::addLink(), SceneBase< DataType, dim >::addLink(), Assembly< class, dim >::AddPart(), C1, C1_index, WingControl::C_comp1, Comp0, WingControl::comp0_file, WingControl::comp0_filetype, WingControl::comp0_name, Comp1, WingControl::comp1_file, WingControl::comp1_filetype, WingControl::comp1_name, drive(), SceneBase< DataType, dim >::GetCoordFrame(), SceneBase< DataType, dim >::GetNthAssembly(), DH_Chain< class, dim >::GetNthLink(), SceneBase< DataType, dim >::GetNthLink(), Assembly< class, dim >::GetNthPart(), SceneBase< DataType, dim >::GetNthSceneAssembly(), SceneBase< DataType, dim >::GetNumChains(), SceneBase< DataType, dim >::GetNumLinks(), grmax, gtmax, WingControl::hGap, WingControl::idNum, PartBase< DataType, dim >::IdTag(), L0, L0_index, Surface< class >::measure(), Assembly< class, dim >::print(), Joint< DataType, 3 >::revolute, Joint< class, dim >::setId(), Assembly< class, dim >::setName(), DH_Chain< class, dim >::setParentChain(), DH_Link< class, dim >::setQ_pre(), WingControl::sigma_R, WingControl::sigma_T, Wing0pt, and WingControl::Wing_name.
Referenced by MotionSpecific::specificSetup().
DataType Wing::a_comp0 [protected] |
Referenced by Checkpointing(), logKinetics(), and Restart().
DataType Wing::a_comp1 [protected] |
Referenced by Checkpointing(), response(), and Restart().
Referenced by Checkpointing(), drive(), Restart(), rotate(), and specificSetup().
int Wing::C1_index [protected] |
Referenced by Checkpointing(), Restart(), and specificSetup().
LoftType* Wing::Comp0 [protected] |
Referenced by response(), and specificSetup().
LoftType* Wing::Comp1 [protected] |
Referenced by response(), and specificSetup().
DataType Wing::grmax [protected] |
Referenced by drive(), and specificSetup().
DataType Wing::gtmax [protected] |
Referenced by drive(), and specificSetup().
Referenced by Checkpointing(), drive(), Restart(), and specificSetup().
int Wing::L0_index [protected] |
Referenced by Checkpointing(), Restart(), and specificSetup().
DataType Wing::p_comp0 [protected] |
Referenced by Checkpointing(), logKinetics(), response(), Restart(), and Wing().
DataType Wing::p_comp1 [protected] |
Referenced by Checkpointing(), response(), Restart(), and Wing().
DataType Wing::rval [protected] |
Referenced by drive(), and response().
PType Wing::T_comp0 [protected] |
Referenced by Checkpointing(), and Restart().
PType Wing::T_comp1 [protected] |
Referenced by Checkpointing(), response(), and Restart().
DataType Wing::tval [protected] |
Referenced by drive().
DataType Wing::v_comp0 [protected] |
Referenced by Checkpointing(), logKinetics(), Restart(), and Wing().
DataType Wing::v_comp1 [protected] |
Referenced by Checkpointing(), response(), Restart(), and Wing().
AssemblyType* Wing::Wing0pt [protected] |
Referenced by specificSetup().