Skip to content

test: numerical baseline for geometry and panel method - #4

Open
PSamuele wants to merge 1 commit into
chore/repo-hygienefrom
test/numerical-baseline
Open

PSamuele wants to merge 1 commit into
chore/repo-hygienefrom
test/numerical-baseline

Conversation

@PSamuele

@PSamuele PSamuele commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

What

  • tests/baseline_check.py: compares geometry (X, Y) and panel-method results (Cl and the full Cp distribution) for NACA 0012, 2412 and 4412 at alpha = -4, 0, +5 deg (160 panels) with a saved reference. Tolerance: 1e-9.
  • tests/baseline_reference.json: reference generated from the current code, before any refactor.

Why

The next PRs move and rewrite the solver code (shared core, vectorized panel method). This check proves they don't change any number.
Cp is stored in full because Cl alone can miss errors: a test change to the tangential-velocity formula left Cl identical but changed Cp by up to 2e-5.

How to use

python tests/baseline_check.py must end with All 24 quantities match the baseline.
--generate refuses to overwrite an existing reference, so a refactor cannot silently replace it.

Depends on

#3 (this PR is based on chore/repo-hygiene). Merge #3 first and delete its branch: GitHub will then retarget this PR to main.

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.

1 participant