MIT-LAE / TASOPT.jl

Medium fidelity aircraft-propulsion system design and optimization.
https://mit-lae.github.io/TASOPT.jl/
MIT License
26 stars 12 forks source link

Choosing materials from a material database #21

Closed askprash closed 5 months ago

askprash commented 5 months ago

Chipping away at a more modular and cleaner code. This PR adds the ability to choose from some standard aerospace materials when designing an aircraft in TASOPT.

Users can add materials of their choice to the MaterialProperties.toml database file.

When creating components in TASOPT checks are performed if the properties provided in the database are sufficient to create a component that uses the material specified in that fashion. E.g., creating a component of type StructuralAlloy will only work if properties such as the density, elastic modulus, yield strength etc are provided. Similarly component of type Conductor can only be created if the database contains properties about the material's resistivity.

codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 83.01887% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 73.14%. Comparing base (ffe41de) to head (ffef309).

Files Patch % Lines
src/misc/materials.jl 83.01% 9 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #21 +/- ## ========================================== + Coverage 73.10% 73.14% +0.04% ========================================== Files 64 65 +1 Lines 12373 12426 +53 ========================================== + Hits 9045 9089 +44 - Misses 3328 3337 +9 ```

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