Skip to content

Commit f91f7c2

Browse files
Add docs for coefficients_data
Also add entry on docs structure
1 parent 12027ef commit f91f7c2

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# coefficients_data
2+
3+
This file contains several functions for calculating the lift, drag and moment coefficients for a fictional airfoil based on the Selig1223. It also contains the same functions for calculating the coefficient of the inverted version of the airfoil (usually used on horizontal stabilizers).
4+
5+
This fictional airfoil stalls for 15 degrees and -5 degrees of AoA.
6+
7+
One just need to call the corresponding function with the desired angle-of-attack as argument:
8+
```python
9+
from adr.World.Aerodynamic.coefficients_data import get_CL, get_CD, get_CM, get_CL_inv, get_CD_inv, get_CM_inv
10+
11+
print(get_CL(18))
12+
>>> 0
13+
print(get_CL(12))
14+
>>> 1.8
15+
print(get_CL(-2))
16+
>>> 0.399
17+
print(get_CL(-12))
18+
>>> 0
19+
20+
21+
print(get_CD(18))
22+
>>> 2.1
23+
print(get_CD(12))
24+
>>> 0.18
25+
26+
27+
print(get_CM(18))
28+
>>> 0
29+
print(get_CM(12))
30+
>>> -0.251
31+
32+
33+
print(get_CL_inv(18))
34+
>>> 0
35+
print(get_CL_inv(-12))
36+
>>> -1.8
37+
38+
39+
print(get_CD_inv(12))
40+
>>> 2.1
41+
print(get_CD_inv(-18))
42+
>>> 2.1
43+
44+
45+
print(get_CM_inv(18))
46+
>>> 0
47+
print(get_CM_inv(-12))
48+
>>> 0.251
49+
```

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ nav:
1010
World:
1111
Ambient: World/Ambient.md
1212
constants: World/constants.md
13+
Aerodynamic:
14+
coefficients_data: World/Aerodynamic/coefficients_data.md
1315
helper funtions:
1416
algebric: helper functions/algebric.md
1517

0 commit comments

Comments
 (0)