mdolab / pygeo

pyGeo provides geometric design variables and constraints suitable for gradient-based optimization.
https://mdolab-pygeo.readthedocs-hosted.com/en/latest/?badge=latest
Apache License 2.0
122 stars 54 forks source link

Added surface area constraint function to pyGeo MPhys wrapper #237

Closed eytanadler closed 6 months ago

eytanadler commented 6 months ago

Purpose

There was no surface area constraint function in the MPhys wrapper for DVCon. Now there is.

Expected time until merged

A few days

Type of change

Testing

When setting up the geometric constraints in an MPhys problem, call something like self.geometry.nom_addSurfaceAreaConstraint("surface_area") to add a geometry output that computes the surface area of the constraint surface. It works in my scripts.

Checklist

codecov[bot] commented 6 months ago

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (7043a74) 65.32% compared to head (efe6af1) 65.30%.

Files Patch % Lines
pygeo/mphys/mphys_dvgeo.py 0.00% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #237 +/- ## ========================================== - Coverage 65.32% 65.30% -0.02% ========================================== Files 47 47 Lines 12121 12124 +3 ========================================== Hits 7918 7918 - Misses 4203 4206 +3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.