MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
Gust1D Class Reference
Inheritance diagram for Gust1D:
Collaboration diagram for Gust1D:

Public Member Functions

 Gust1D (const Vec3 &f, const Vec3 &g, const doublereal &v, DriveCaller *pT, DriveCaller *pG)
 
 ~Gust1D (void)
 
virtual std::ostream & Restart (std::ostream &out) const
 
bool GetVelocity (const Vec3 &X, Vec3 &V) const
 
- Public Member Functions inherited from Gust
virtual ~Gust (void)
 
void SetAirProperties (const AirProperties *pap)
 
virtual Vec3 GetVelocity (const Vec3 &X) const
 

Private Attributes

Vec3 FrontDir
 
Vec3 GustDir
 
doublereal dVRef
 
DriveOwner Time
 
DriveOwner GustProfile
 

Additional Inherited Members

- Protected Attributes inherited from Gust
const AirPropertiespAP
 

Detailed Description

Definition at line 71 of file gust.cc.

Constructor & Destructor Documentation

Gust1D::Gust1D ( const Vec3 f,
const Vec3 g,
const doublereal v,
DriveCaller pT,
DriveCaller pG 
)

Definition at line 88 of file gust.cc.

References ASSERT.

90 : FrontDir(f),
91 GustDir(g),
92 dVRef(v),
93 Time(pT),
94 GustProfile(pG)
95 {
96  ASSERT(pT != NULL);
97  ASSERT(pG != NULL);
98 }
DriveOwner Time
Definition: gust.cc:76
doublereal dVRef
Definition: gust.cc:75
DriveOwner GustProfile
Definition: gust.cc:77
#define ASSERT(expression)
Definition: colamd.c:977
Vec3 GustDir
Definition: gust.cc:74
Vec3 FrontDir
Definition: gust.cc:73
Gust1D::~Gust1D ( void  )

Definition at line 100 of file gust.cc.

References NO_OP.

101 {
102  NO_OP;
103 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

bool Gust1D::GetVelocity ( const Vec3 X,
Vec3 V 
) const
virtual

Implements Gust.

Definition at line 117 of file gust.cc.

References DriveOwner::dGet(), dVRef, FrontDir, GustDir, GustProfile, and Time.

118 {
119  doublereal x = FrontDir*X + dVRef*Time.dGet();
120  doublereal v = GustProfile.dGet(x);
121  V = GustDir*v;
122  return true;
123 }
DriveOwner Time
Definition: gust.cc:76
doublereal dVRef
Definition: gust.cc:75
DriveOwner GustProfile
Definition: gust.cc:77
doublereal dGet(const doublereal &dVar) const
Definition: drive.cc:664
Vec3 GustDir
Definition: gust.cc:74
double doublereal
Definition: colamd.c:52
Vec3 FrontDir
Definition: gust.cc:73

Here is the call graph for this function:

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

Implements Gust.

Definition at line 106 of file gust.cc.

References dVRef, FrontDir, GustDir, GustProfile, DriveOwner::pGetDriveCaller(), DriveCaller::Restart(), and Vec3::Write().

107 {
108  out << "front 1D, ",
109  FrontDir.Write(out, ", ")
110  << ", ", GustDir.Write(out, ", ")
111  << ", " << dVRef
112  << ", ", GustProfile.pGetDriveCaller()->Restart(out);
113  return out;
114 }
std::ostream & Write(std::ostream &out, const char *sFill=" ") const
Definition: matvec3.cc:738
doublereal dVRef
Definition: gust.cc:75
virtual std::ostream & Restart(std::ostream &out) const =0
DriveOwner GustProfile
Definition: gust.cc:77
DriveCaller * pGetDriveCaller(void) const
Definition: drive.cc:658
Vec3 GustDir
Definition: gust.cc:74
Vec3 FrontDir
Definition: gust.cc:73

Here is the call graph for this function:

Member Data Documentation

doublereal Gust1D::dVRef
private

Definition at line 75 of file gust.cc.

Referenced by GetVelocity(), and Restart().

Vec3 Gust1D::FrontDir
private

Definition at line 73 of file gust.cc.

Referenced by GetVelocity(), and Restart().

Vec3 Gust1D::GustDir
private

Definition at line 74 of file gust.cc.

Referenced by GetVelocity(), and Restart().

DriveOwner Gust1D::GustProfile
private

Definition at line 77 of file gust.cc.

Referenced by GetVelocity(), and Restart().

DriveOwner Gust1D::Time
private

Definition at line 76 of file gust.cc.

Referenced by GetVelocity().


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