Skip to content

Total NOx rate state - #1348

Open
jkirk5 wants to merge 28 commits into
OpenMDAO:mainfrom
jkirk5:nox
Open

jkirk5 wants to merge 28 commits into
OpenMDAO:mainfrom
jkirk5:nox

Conversation

@jkirk5

@jkirk5 jkirk5 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add NOx summation as a state variable (Dynamic.Vehicle.CUMULATIVE_NOX_PRODUCTION). This state is only added if NOx rate is reported as an output of an engine (subsystem builder's mission_outputs()). A default ['*'] output is assumed to have NOx rate to be safe.

Related Issues

  • Resolves #

Backwards incompatibilities

None

AI Usage

Disclose any AI usage in this PR, including models used and files affected.

@cmbenne3 cmbenne3 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few suggested changes, but looks good to me!

@cmbenne3

cmbenne3 commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Would we like to include a new variable like Mission.NOX_MASS to go alongside the Mission.FUEL_MASS so that this is accessible at the problem level at the end of the analysis?

'units': 'lbm/distance_units',
'shape': nn,
'tags': [
'dymos.state_rate_source:cumulative_nox_produced',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we actually using the dymos feature where state-rates can be automatically located using tags?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea, I am just making sure to keep it consistent with our existing state declarations... I don't think so? I have never even heard of dymos' tag feature before

@Kenneth-T-Moore Kenneth-T-Moore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, only one comment that isn't consequential.

jkirk5 and others added 4 commits November 4, 2026 10:32
…tion_test_data_GASP.dat

Co-authored-by: Chris Bennett <165826178+cmbenne3@users.noreply.github.com>
…WB_GASP.dat

Co-authored-by: Chris Bennett <165826178+cmbenne3@users.noreply.github.com>
…gle_aisle_GASP.dat

Co-authored-by: Chris Bennett <165826178+cmbenne3@users.noreply.github.com>
Co-authored-by: Chris Bennett <165826178+cmbenne3@users.noreply.github.com>
@jkirk5

jkirk5 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Would we like to include a new variable like Mission.NOX_MASS to go alongside the Mission.FUEL_MASS so that this is accessible at the problem level at the end of the analysis?

Yeah good suggestion - that will be easy to add!

@jkirk5
jkirk5 requested review from cmbenne3 and removed request for cmbenne3 November 19, 2026 20:23
@jkirk5
jkirk5 enabled auto-merge November 19, 2026 20:43
@jkirk5
jkirk5 added this pull request to the merge queue Nov 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 24, 2026
@Kenneth-T-Moore
Kenneth-T-Moore added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@jkirk5
jkirk5 added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@jkirk5
jkirk5 added this pull request to the merge queue Nov 30, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 30, 2026
@jkirk5
jkirk5 enabled auto-merge December 1, 2026 20:59
@jkirk5
jkirk5 added this pull request to the merge queue Dec 1, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants