OpenMDAO / OpenMDAO/Aviary

Default values do not work when using multiple engine types

Open
#621 1 comment 0 reactions 1 assignee View on GitHub

@jkirk5 is already working on this.

Since Nov 28, 2025.

Dominant language
Python
Stars
287
Forks
140
Avg merge
6d 14h
Merged PRs (30d)
18

Description

Description

Normally, if your Aviary model does not define a variable, the default value is used. In the case where your model using multiple engine types, and you do not specify a required variable that should be vectorized across engines (Aircraft.Engine.*, Aircraft.Nacelle.*), an error occurs. This happens because all set_input_defaults() is called on every variable in the metadata using metadata defaults, which neglects to add the vectorization needed for multiple engine types.

Example

This error can be seen when running test_bench_multiengine.py, which fails because Aircraft.Nacelle.LAMINAR_FLOW_UPPER and Aircraft.Nacelle.LAMINAR_FLOW_LOWER were not defined in the input data used

Aviary Version

latest

Relevant environment information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.