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

Link caeroc.formulae.shock to caeroc.gui.runtime #1

Open
ashwinvis opened this issue Nov 13, 2017 · 1 comment
Open

Link caeroc.formulae.shock to caeroc.gui.runtime #1

ashwinvis opened this issue Nov 13, 2017 · 1 comment

Comments

@ashwinvis
Copy link
Owner

Allow user to use Normal Shock and Oblique Shock modes.

@ashwinvis
Copy link
Owner Author

Bug: cannot use p2_p1 with normal shock mode.

ERROR:caeroc-app:Insufficient data to calculate Mach number
Traceback (most recent call last):
  File "/home/avmo/src/caeroc/caeroc/gui/runtime.py", line 218, in on_qpb_calculate_released
    self.mode.calculate(**kwargs)
  File "/home/avmo/src/caeroc/caeroc/formulae/shock.py", line 81, in calculate
    self.M_1 = self.get_M_1(p2_p1, rho2_rho1, T2_T1)
  File "/home/avmo/src/caeroc/caeroc/formulae/shock.py", line 59, in get_M_1
    return M_1
UnboundLocalError: local variable 'M_1' referenced before assignment

@ashwinvis ashwinvis added the bug label Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant