Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed unit test #9

Open
pl96andy opened this issue Oct 19, 2024 · 0 comments
Open

failed unit test #9

pl96andy opened this issue Oct 19, 2024 · 0 comments

Comments

@pl96andy
Copy link

Hi,
i am trying to install MachLine on Ubuntu according to instruction, however when i am running unit tests, one of tests is failed:
`
test/test_machline.py ...........F......... [100%]

=================================== FAILURES ===================================
__________________ test_12_subsonic_comp_pressure_corrections __________________

def test_12_subsonic_comp_pressure_corrections():

    # Tests the half wing case with the source-free formulation returns the consistent result

    C_p_max, C_p_min, Cx, Cy, Cz = run_machline("test/input_files/compressible_half_wing_input.json")

    print(C_p_max)
    print(C_p_min)
    print(Cx)
    print(Cy)
    print(Cz)

    assert(abs(C_p_max - 0.817285785213847) < 1e-9)
    assert(abs(C_p_min - -1.09376107707523) < 1e-9)
    assert(abs(Cx - -0.508549885785561) < 1e-9)
    assert(abs(Cy - 0.0102005794126269) < 1e-9)
  assert(abs(Cz - 26.2795099006351) < 1e-8)

E assert 1.329930299220905e-08 < 1e-08
E + where 1.329930299220905e-08 = abs((26.2795098873358 - 26.2795099006351))

/home/vdi-user/MachLine/MachLine-main/test/test_machline.py:425: AssertionError
----------------------------- Captured stdout call -----------------------------
0.817285785147843
-1.09376107693001
-0.508549885553291
0.0102005794029252
26.2795098873358
=========================== short test summary info ============================
FAILED test/test_machline.py::test_12_subsonic_comp_pressure_corrections - assert 1.329930299220905e-08 < 1e-08
======================== 1 failed, 20 passed in 12.91s =========================
`
Code looks some how validated as for subsonic flow, so am I doing some mistake during compilation process?
Thank you

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

No branches or pull requests

1 participant