MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
instruments.h File Reference
#include "aerodyn.h"
Include dependency graph for instruments.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AircraftInstruments
 

Functions

ElemReadAircraftInstruments (DataManager *pDM, MBDynParser &HP, const DofOwner *pDO, unsigned int uLabel)
 

Function Documentation

Elem* ReadAircraftInstruments ( DataManager pDM,
MBDynParser HP,
const DofOwner pDO,
unsigned int  uLabel 
)

Definition at line 268 of file instruments.cc.

References Elem::AERODYNAMIC, Eye3, DataManager::fReadOutput(), MBDynParser::GetRotRel(), HighParser::IsKeyWord(), R, DataManager::ReadNode(), SAFENEWWITHCONSTRUCTOR, and Node::STRUCTURAL.

Referenced by DataManager::ReadOneElem().

270 {
271  Elem *pEl = NULL;
272 
273  const StructNode* pNode = pDM->ReadNode<const StructNode, Node::STRUCTURAL>(HP);
274  Mat3x3 R = Eye3;
275  if (HP.IsKeyWord("orientation")) {
276  if (HP.IsKeyWord("flight" "mechanics")) {
277  R = ::Eye3;
278 
279  } else if (HP.IsKeyWord("aeroelasticity")) {
280  R = Mat3x3(-1., 0., 0., 0., 1., 0., 0., 0., -1.);
281 
282  } else {
283  R = HP.GetRotRel(ReferenceFrame(pNode));
284  }
285  }
286  flag fOut = pDM->fReadOutput(HP, Elem::AERODYNAMIC);
287 
289  AircraftInstruments(uLabel, pDO, pNode, R, fOut));
290 
291  return pEl;
292 }
flag fReadOutput(MBDynParser &HP, const T &t) const
Definition: dataman.h:1064
Mat3x3 GetRotRel(const ReferenceFrame &rf)
Definition: mbpar.cc:1795
long int flag
Definition: mbdyn.h:43
const Mat3x3 Eye3(1., 0., 0., 0., 1., 0., 0., 0., 1.)
virtual bool IsKeyWord(const char *sKeyWord)
Definition: parser.cc:910
#define SAFENEWWITHCONSTRUCTOR(pnt, item, constructor)
Definition: mynewmem.h:698
Definition: elem.h:75
Node * ReadNode(MBDynParser &HP, Node::Type type) const
Definition: dataman3.cc:2309
Mat3x3 R

Here is the call graph for this function: