-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
321 additions
and
87 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
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
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
54 changes: 54 additions & 0 deletions
54
trunk/SUAVE/Methods/Aerodynamics/Common/Fidelity_Zero/Lift/extract_wing_VD.py
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## @ingroup Methods-Aerodynamics-Common-Fidelity_Zero-Lift | ||
# extract_wing_VD.py | ||
# | ||
# Created: Feb 2022, R. Erhard | ||
# Modified: | ||
|
||
# ---------------------------------------------------------------------- | ||
# Imports | ||
# ---------------------------------------------------------------------- | ||
|
||
# package imports | ||
from SUAVE.Core import Data | ||
|
||
## @ingroup Methods-Aerodynamics-Common-Fidelity_Zero-Lift | ||
def extract_wing_collocation_points(geometry, wing_instance_idx): | ||
|
||
""" This extracts the collocation points of the vehicle vortex distribution | ||
belonging to the specified wing instance index. This is useful for slipstream | ||
analysis, where the wake of a propeller is included in the VLM analysis | ||
of a specified wing in the vehicle. | ||
Source: | ||
None | ||
Inputs: | ||
geometry - SUAVE vehicle | ||
wing_instance - wing instance tag | ||
Outputs: | ||
VD_wing - colocation points of vortex distribution for specified wing | ||
ids - indices in the vortex distribution corresponding to specified wing | ||
Properties Used: | ||
N/A | ||
""" | ||
# unpack vortex distribution properties | ||
VD = geometry.vortex_distribution | ||
span_breaks = VD.spanwise_breaks | ||
wing = list(geometry.wings.keys())[wing_instance_idx] | ||
sym = geometry.wings[wing].symmetric | ||
|
||
VD_wing = Data() | ||
id_start = span_breaks[wing_instance_idx] | ||
id_end = span_breaks[wing_instance_idx + 1 + int(sym)] | ||
ids = range(id_start,id_end) | ||
|
||
VD_wing.XC = VD.XC[ids] | ||
VD_wing.YC = VD.YC[ids] | ||
VD_wing.ZC = VD.ZC[ids] | ||
VD_wing.n_cp = len(VD_wing.XC) | ||
|
||
return VD_wing, ids | ||
|
||
|
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
4 changes: 2 additions & 2 deletions
4
trunk/SUAVE/Methods/Propulsion/Rotor_Wake/Fidelity_Zero/__init__.py
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,5 +1,5 @@ | ||
## @defgroup Methods-Aerodynamics-Rotor_Wake-Fidelity_Zero | ||
# Rotor wake methods that are directly specified by analyses. | ||
|
||
from .compute_bevw_induced_velocity import compute_bevw_induced_velocity | ||
from .compute_wake_contraction_matrix import compute_wake_contraction_matrix | ||
from .compute_fidelity_zero_induced_velocity import compute_fidelity_zero_induced_velocity | ||
from .compute_wake_contraction_matrix import compute_wake_contraction_matrix |
Oops, something went wrong.