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

#include <windprof.h>

Inheritance diagram for ScalarFuncWindProfile:
Collaboration diagram for ScalarFuncWindProfile:

Public Member Functions

 ScalarFuncWindProfile (const Vec3 &X0, const Mat3x3 &R0, const BasicScalarFunction *sf)
 
virtual ~ScalarFuncWindProfile (void)
 
virtual bool GetVelocity (const Vec3 &X, Vec3 &V) const
 
virtual std::ostream & Restart (std::ostream &out) const
 
- Public Member Functions inherited from WindProfile
 WindProfile (const Vec3 &X0, const Mat3x3 &R0)
 
virtual ~WindProfile (void)
 
- Public Member Functions inherited from Gust
virtual ~Gust (void)
 
void SetAirProperties (const AirProperties *pap)
 
virtual Vec3 GetVelocity (const Vec3 &X) const
 

Protected Attributes

const BasicScalarFunctionsf
 
- Protected Attributes inherited from WindProfile
const Vec3 X0
 
const Mat3x3 R0
 
- Protected Attributes inherited from Gust
const AirPropertiespAP
 

Detailed Description

Definition at line 61 of file windprof.h.

Constructor & Destructor Documentation

ScalarFuncWindProfile::ScalarFuncWindProfile ( const Vec3 X0,
const Mat3x3 R0,
const BasicScalarFunction sf 
)

Definition at line 62 of file windprof.cc.

References ASSERT.

66 : WindProfile(X0, R0),
67 sf(sf)
68 {
69  ASSERT(sf != 0);
70 }
WindProfile(const Vec3 &X0, const Mat3x3 &R0)
Definition: windprof.cc:45
#define ASSERT(expression)
Definition: colamd.c:977
const BasicScalarFunction * sf
Definition: windprof.h:63
ScalarFuncWindProfile::~ScalarFuncWindProfile ( void  )
virtual

Definition at line 72 of file windprof.cc.

References NO_OP.

73 {
74  NO_OP;
75 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

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

Implements Gust.

Definition at line 78 of file windprof.cc.

References Mat3x3::GetVec(), WindProfile::R0, and WindProfile::X0.

79 {
80  // dZ is the component of (X - X0) along axis 3 of R0
81  doublereal dZ = R0.GetVec(3)*(X - X0);
82 
83  // V is projected along axis 1 of R0
84  V = R0.GetVec(1)*(*sf)(dZ);
85 
86  return true;
87 }
Vec3 GetVec(unsigned short int i) const
Definition: matvec3.h:893
const Mat3x3 R0
Definition: windprof.h:50
double doublereal
Definition: colamd.c:52
const Vec3 X0
Definition: windprof.h:49

Here is the call graph for this function:

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

Implements Gust.

Definition at line 90 of file windprof.cc.

References WindProfile::R0, and WindProfile::X0.

91 {
92  return out << "scalar function, "
93  << ", reference position, " << X0
94  << ", reference orientation, " << R0
95  << " # not implemented yet";
96 }
const Mat3x3 R0
Definition: windprof.h:50
const Vec3 X0
Definition: windprof.h:49

Member Data Documentation

const BasicScalarFunction* ScalarFuncWindProfile::sf
protected

Definition at line 63 of file windprof.h.


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