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
8 changed files
with
234 additions
and
80 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
67 changes: 67 additions & 0 deletions
67
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,67 @@ | ||
## @ingroup Methods-Aerodynamics-Common-Fidelity_Zero-Lift | ||
# extract_wing_collocation_points.py | ||
# | ||
# Created: Feb 2022, R. Erhard | ||
# Modified: | ||
|
||
# ---------------------------------------------------------------------- | ||
# Imports | ||
# ---------------------------------------------------------------------- | ||
|
||
# package imports | ||
import numpy as np | ||
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 used for | ||
Source: | ||
None | ||
Inputs: | ||
geometry - SUAVE vehicle | ||
wing_instance - wing instance to extract VD for | ||
Outputs: | ||
None | ||
Properties Used: | ||
N/A | ||
""" | ||
# unpack vortex distribution properties | ||
VD = geometry.vortex_distribution | ||
n_sw = VD.n_sw | ||
n_cw = VD.n_cw | ||
|
||
VD_wing = Data() | ||
vd_i = 0 # count of current VD wing elements | ||
j = 0 # count of current VD wing index | ||
size = n_cw * n_sw | ||
|
||
for idx,wing in enumerate(geometry.wings): | ||
|
||
if wing.symmetric: | ||
wing_cp_size = size[j] + size[j+1] | ||
j += 2 | ||
else: | ||
wing_cp_size = size[j] | ||
j += 1 | ||
|
||
if idx == wing_instance_idx: | ||
# store the VD corresponding to this wing | ||
VD_wing.XC = VD.XC[vd_i : vd_i + wing_cp_size] | ||
VD_wing.YC = VD.YC[vd_i : vd_i + wing_cp_size] | ||
VD_wing.ZC = VD.ZC[vd_i : vd_i + wing_cp_size] | ||
VD_wing.n_cp = len(VD_wing.XC) | ||
|
||
ids = (np.linspace(vd_i, vd_i+wing_cp_size-1, wing_cp_size)).astype(int) | ||
|
||
vd_i += wing_cp_size | ||
|
||
|
||
return VD_wing, ids | ||
|
||
|
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.