geometry_mesh_gen.py

Utility for quickly generating a multi-section user specificed OAS mesh

openaerostruct.geometry.geometry_mesh_gen.generate_mesh(surface)[source]

Automatically generates meshes for single and multi-section wings using the OpenAeroStruct surface dictionary.

Parameters:
surfacedict

OpenAeroStruct surface or multi-section surface dictionary.

Returns:
mesh[nx, ny, 3]numpy array

Nodal mesh defining the aerodynamic surface.

sec_meshlist

List of nodal meshes corresponding to each section in a multi-section surface.

openaerostruct.geometry.geometry_mesh_gen.generate_section_geometry(sections, symmetry, section_data, ny, nx, root_section)[source]

Constructs the multi-section wing geometry specified by the user and generates a mesh for each section.

Parameters:
sectionsint

Integer for number of wing sections specified

symmetrybool

Bool inidicating if the funciton should only generate the left span of the wing

section_datadict

Dictionary with arrays corresponding the taper, span, sweep, and root chord of each section

nynumpy array

Array with ints correponding to the number of spanwise points per section

nxint

Number of chordwise points

root_section:

The section number that should be treated as the root section(y=0 origin)

Returns:
panel_gxList

List containing the mesh x-coordinates for each section

panel_gyList

List containing the mesh y-coordinates for each section

openaerostruct.geometry.geometry_mesh_gen.output_oas_mesh(panel_geom_x, panel_geom_y)[source]

Outputs the mesh in OAS format

Parameters:
panel_geom_xnumpy array

2D array of the mesh x-coordinates

panel_geom_ynumpy array

1D array of the mesh y-coordinates

Returns:
meshnumpy array

3-D array with the OAS format mesh

openaerostruct.geometry.geometry_mesh_gen.reflect_symmetric(panel_geom_x, panel_geom_y)[source]

Reflects the mesh over y=0

Parameters:
panel_geom_xnumpy array

Array of the mesh x-coordinates

panel_geom_ynumpy array

Array of the mesh y-coordinates

Returns:
panel_geom_xnumpy array

Array of the mesh x-coordinates

panel_geom_ynumpy array

Array of the mesh y-coordinates

openaerostruct.geometry.geometry_mesh_gen.stitch_section_geometry(sections, panel_gy, panel_gx)[source]

Combines the split section array into singular unified mesh

Parameters:
sectionsint

Integer for number of wing sections specified

panel_gxList

List containing the mesh x-coordinates for each section

panel_gyList

List containing the mesh y-coordinates for each section

Returns:
panel_geom_xnumpy array

Array of the mesh x-coordinates

panel_geom_ynumpy array

Array of the mesh y-coordinates