-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMotionParameters.h
63 lines (54 loc) · 1.92 KB
/
MotionParameters.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef MOTION_PARAMETERS_H
#define MOTION_PARAMETERS_H
#include <Eigen/Dense>
using Eigen::VectorXd;
/* Declare global motion parameters (defined elsewhere) */
extern double h1, phi_h, alpha0, alpha1, omega, phi_alpha;
/**
* @brief Computes the instantaneous vertical displacement.
*
* This function calculates the instantaneous heaving motion of
* the airfoil at a given time `t` and angular frequency `omega`.
*
* @param t Current time instant.
* @param omega Angular frequency of motion.
* @return VectorXd The vertical displacement of the airfoil.
*/
VectorXd h_instantaneous(double t, double omega);
/**
* @brief Computes the instantaneous velocity in the vertical direction.
*
* This function determines the velocity corresponding to
* the heaving motion of the airfoil at time `t` and angular frequency `omega`.
*
* @param t Current time instant.
* @param omega Angular frequency of motion.
* @return VectorXd The vertical velocity.
*/
VectorXd h_dot_instantaneous(double t, double omega);
/**
* @brief Computes the instantaneous angle of attack.
*
* This function calculates the pitch angle of the airfoil
* as a function of time `t`.
*
* @param t Current time instant.
* @return double The instantaneous angle of attack in radians.
*/
double alpha_instantaneous(double t);
/**
* @brief Computes the instantaneous rate of change of angle of attack.
*
* This function calculates the angular velocity of the airfoil's
* pitching motion at time `t`.
*
* @param t Current time instant.
* @return double The instantaneous pitch rate in radians per second.
*/
double alpha_dot_instantaneous(double t);
/* Function declarations */
// VectorXd h_instantaneous(double t, double omega);
// VectorXd h_dot_instantaneous(double t, double omega);
// double alpha_instantaneous(double t);
// double alpha_dot_instantaneous(double t);
#endif // MOTION_PARAMETERS_H