mdolab / adflow

ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Other
229 stars 100 forks source link

Add user functions to AeroProblem's available funcs as normal functionals are #365

Closed eytanadler closed 1 week ago

eytanadler commented 4 weeks ago

Purpose

The AeroProblem stores a map containing the available functions from the solver. ADflow adds these cost functions in the evalFunctions method, but currently it is implemented only for built-in cost functions, not custom user functions. This PR adds the line needed to include user-specified functionals in the AeroProblem's funcNames map.

Expected time until merged

A few days

Type of change

Testing

Checklist

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 41.08%. Comparing base (cd21478) to head (267b25a). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #365 +/- ## ========================================== + Coverage 41.05% 41.08% +0.02% ========================================== Files 13 13 Lines 4119 4121 +2 ========================================== + Hits 1691 1693 +2 Misses 2428 2428 ```

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


🚨 Try these New Features: