mdolab / OpenAeroStruct

OpenAeroStruct is a lightweight tool that performs aerostructural optimization using OpenMDAO.
Apache License 2.0
175 stars 112 forks source link

Right-side symmetric wing does not work for aerostructural analysis. #399

Open kanekosh opened 1 year ago

kanekosh commented 1 year ago

Description

Aerostructural analysis (both tubular and wingbox) does not work with right-side symmetric wings. Currently, only the aerodynamic analysis/optimization can handle right-side wings as fixed in PR #381 .

Most of the examples in OAS use left-side symmetric wing, therefore this bug does not affect most of the cases. Exception is the OpenVSP-generated symmetric wings, which sit on the right-side plane (as reported in #396 )

Steps to reproduce issue

  1. Copy any aerostructural example with a symmetric wing, and flip the mesh to obtain the right-side mesh:
    mesh = mesh[:, ::-1, :]
    mesh[:, :, 1] *= -1.0
  2. Run aerostructural analysis with the flipped mesh.

Current behavior

Aerostructural solver fails.

Expected behavior

The right-side wing results should be the same as the original left-wing results.

Code versions