Skip to content

failed unit test #9

@pl96andy

Description

@pl96andy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions