|
6 | 6 | import openmdao.api as om |
7 | 7 | from openaerostruct.geometry.geometry_group import MultiSecGeometry |
8 | 8 | from openaerostruct.aerodynamics.aero_groups import AeroPoint |
9 | | -from openaerostruct.geometry.geometry_group import build_sections |
10 | | -from openaerostruct.geometry.geometry_unification import unify_mesh |
11 | | -from openaerostruct.geometry.multi_unified_bspline_utils import build_multi_spline, connect_multi_spline |
| 9 | +from openaerostruct.geometry.utils import build_section_dicts, unify_mesh, build_multi_spline, connect_multi_spline |
12 | 10 | import matplotlib.pyplot as plt |
13 | 11 |
|
14 | 12 | # docs checkpoint 1 |
|
57 | 55 | "S_ref_type": "wetted", # how we compute the wing area, can be 'wetted' or 'projected' |
58 | 56 | # Geometry Parameters |
59 | 57 | "taper": [1.0, 1.0], # Wing taper for each section. The list length must match the specified number of sections. |
60 | | - "span": [2.0, 2.0], # Wing span for each section. The list length must match the specified number of sections. |
| 58 | + "span": [1.0, 1.0], # Span length of each section. The list length must match the specified number of sections. |
61 | 59 | "sweep": [0.0, 0.0], # Wing sweep for each section. The list length must match the specified number of sections. |
62 | 60 | "chord_cp": sec_chord_cp, # The chord B-spline parameterization for each section. The list length must match the specified number of sections. |
63 | 61 | "twist_cp": [ |
|
112 | 110 | # In order to construct this global B-spline control vector we first need to generate the unified surface mesh. |
113 | 111 | # The unified surface mesh is simply all the individual section surface meshes combine into a single unified OAS mesh array. |
114 | 112 |
|
115 | | -# First we will call the utility function build_sections which takes the surface dictionary and outputs a list of surface dictionaries corresponding to |
| 113 | +# First we will call the utility function build_section_dicts which takes the surface dictionary and outputs a list of surface dictionaries corresponding to |
116 | 114 | # each section. |
117 | | -section_surfaces = build_sections(surface) |
| 115 | +section_surfaces = build_section_dicts(surface) |
118 | 116 |
|
119 | 117 | # We can then call unify_mesh which outputs the unified mesh of all of the sections. |
120 | 118 | uniMesh = unify_mesh(section_surfaces) |
|
0 commit comments