POEM ID: 013
Title: Unit conversion enhancements
Authors: robfalck (Rob Falck)
Competing POEMs: [N/A]
Related POEMs: [N/A]
Associated implementation PR: N/A
Status:
- Active
- Requesting decision
- Accepted
- Rejected
- Integrated
OpenMDAO's unit conversion is powerful but it should be easier for users to take advantage of our unit conversion tools in their models. Sometimes unit conversion within the compute/compute_partials methods is necessary, and we should provide a way of doing so consistently with the same conversion factors used internally within OpenMDAO.
This enhancement involves two changes:
openmdao.utils.units.convert_unitswill be added toopenmdao.apiopenmdao.utils.units.get_conversion(from, to)will be added toopenmdao.apiand renamed tounit_conversion(from, to). The existingget_conversionwill be deprecated.
N/A