-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInfluenceMatrix.h
36 lines (31 loc) · 1.54 KB
/
InfluenceMatrix.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
/**
* @file InfluenceMatrix.h
* @brief Provides a function to compute the influence of a linearly varying vortex panel.
*
* This file contains function that compute the influence of a vortex panel of linearly varying strength
* at an arbitrary point in the flowfield.
*
* @author [Rohit Chowdhury]
* @date [Date]
*/
#ifndef INFLUENCEMATRIX_H
#define INFLUENCEMATRIX_H
#include <Eigen/Dense>
using namespace Eigen;
/**
* @brief Computes the influence matrix for a linearly varying vortex panel.
*
* Given the endpoints of a vortex panel and a desired point in the flowfield,
* this function calculates the influence matrix, which is useful in solving the
* panel method for aerodynamic simulations.
*
* @param point1_x X-coordinate of the first endpoint of the panel.
* @param point1_y Y-coordinate of the first endpoint of the panel.
* @param point2_x X-coordinate of the second endpoint of the panel.
* @param point2_y Y-coordinate of the second endpoint of the panel.
* @param desired_point_x X-coordinate of the target point in the flowfield.(point where the influence needs to be conmputed)
* @param desired_point_y Y-coordinate of the target point in the flowfield.(point where the influence needs to be conmputed)
* @return MatrixXd (2x2) representing the influence matrix corresponding to a particular panel.
*/
MatrixXd influence_matrix(double point1_x, double point1_y, double point2_x, double point2_y, double desired_point_x, double desired_point_y);
#endif // INFLUENCEMATRIX_H