Skip to content

Stop NEMO runs with a clear error for unsupported inputs - #3035

Open
rois1995 wants to merge 2 commits into
su2code:developfrom
rois1995:fix_NEMO_input_checks_v2
Open

rois1995 wants to merge 2 commits into
su2code:developfrom
rois1995:fix_NEMO_input_checks_v2

Conversation

@rois1995

Copy link
Copy Markdown
Contributor

Problem

NEMO accepts some inputs that it cannot handle. The run then crashes or gives wrong numbers, with no message:

  • REF_DIMENSIONALIZATION other than DIMENSIONAL gives wrong results. The solver passes its values to the fluid model without scaling.
  • INLET_GAS_COMPOSITION or SUPERCATALYTIC_WALL_COMPOSITION with fewer entries than species is read past its end.
  • A FLUID_MODEL other than SU2_NONEQ or MUTATIONPP leaves the fluid model unset, and the code crashes.
  • GAS_MODEL= ARGON with TRANSPORT_COEFF_MODEL= GUPTA-YOS cannot work: the built-in library has no collision data for argon.

Also, the printed Reynolds number of runs with a moving grid was 0, because one velocity was never set.

Fix

  • Each of the four inputs above now stops the run with a clear error message.
  • The free-stream speed of sound used for that Reynolds number is now set.

Tests

  • I ran each wrong input once, starting from a NEMO test config. I tried the short list for both composition options. Each run stops with the new message.
  • The unchanged invwedge_ss_inlet and super_cat configs pass the new checks.
  • No result changes, so the regression values stay as they are.

Notes

  • Not tested: the printed Reynolds number with a moving grid. No test case uses one.

Related

PR Checklist

  • I am submitting my contribution to the develop branch.
  • My contribution generates no new compiler warnings (try with --warnlevel=3 when using meson).
  • My contribution is commented and consistent with SU2 style (https://su2code.github.io/docs_v7/Style-Guide/).
  • I used the pre-commit hook to prevent dirty commits and used pre-commit run --all to format old commits.
  • I have added a test case that demonstrates my contribution, if necessary.
  • I have updated appropriate documentation (Tutorials, Docs Page, config_template.cpp), if necessary.

🤖 Generated with Claude Code

rois1995 and others added 2 commits November 23, 2026 15:55
Stop with a clear message when:
- the fluid model is not SU2_NONEQ or MUTATIONPP (the fluid model pointer
  of the solver was left uninitialized),
- REF_DIMENSIONALIZATION is not DIMENSIONAL (the solver passes its values
  to the fluid model without scaling),
- GUPTA-YOS is used with ARGON in SU2TCLIB (no collision integrals),
- INLET_GAS_COMPOSITION or SUPERCATALYTIC_WALL_COMPOSITION do not have one
  value per species (read outside the list, or a null pointer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Mach2Vel_FreeStream was never set, so the Reynolds number of runs with a
moving grid was computed with a zero velocity. Printed value only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant