-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from GodotMisogi/develop
Version 0.4.7: HyperEllipseFuselage bug fixes
- Loading branch information
Showing
8 changed files
with
87 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "AeroFuse" | ||
uuid = "477c59f4-51f5-487f-bf1e-8db39645b227" | ||
authors = ["GodotMisogi <[email protected]>"] | ||
version = "0.4.6" | ||
version = "0.4.7" | ||
|
||
[deps] | ||
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
## Fuselage example | ||
using AeroFuse | ||
using Plots | ||
|
||
# Fuselage parameters | ||
l_fuselage = 18. # Length (m) | ||
h_fuselage = 1.5 # Height (m) | ||
w_fuselage = 1.8 # Width (m) | ||
S_fuselage = 90 # Surface area (m)² | ||
K_fuselage = 0.487 # Fuselage parameter | ||
l_fuselage = 18. # Length (m) | ||
h_fuselage = 1.5 # Height (m) | ||
w_fuselage = 1.8 # Width (m) | ||
|
||
## Hyperelliptic fuselage | ||
fuse = HyperEllipseFuselage( | ||
radius = w_fuselage / 2, | ||
length = l_fuselage, | ||
c_nose = 2, | ||
c_rear = 2, | ||
) | ||
|
||
ts = 0:0.1:1 # Distribution of sections | ||
S_f = wetted_area(fuse, ts) # Surface area, m² | ||
V_f = volume(fuse, ts) # Volume, m³ | ||
|
||
# Chordwise locations and corresponding radii | ||
## Plot | ||
plot(fuse, | ||
aspect_ratio = 1, | ||
zlim = (-0.5, 0.5) .* fuse.length, | ||
label = "Fuselage" | ||
) | ||
|
||
## Chordwise locations and corresponding radii | ||
lens = [0.0, 0.005, 0.01, 0.03, 0.1, 0.2, 0.4, 0.6, 0.7, 0.8, 0.98, 1.0] | ||
rads = [0.05, 0.15, 0.25, 0.4, 0.8, 1., 1., 1., 1., 0.85, 0.3, 0.01] * w_fuselage / 2 | ||
|
||
fuse = Fuselage(l_fuselage, lens, rads, [0., 0., 0.]) | ||
|
||
## Plotting | ||
using Plots | ||
|
||
plot(fuse, aspect_ratio = 1, zlim = (-10,10)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e26c8c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
e26c8c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/80401
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: