diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-29 11:56:10 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2019-10-29 11:56:10 +0000 |
commit | 0ed129571e7de2f7a9ad6c427cbb622129a6b4bc (patch) | |
tree | 4d74b6b893de648d2ca5d8ed538c0d725b3e1280 | |
parent | f099eb3df2ddef1fca4a50c86bbb638bad8a08d0 (diff) | |
download | fullSWOF-utils-0ed129571e7de2f7a9ad6c427cbb622129a6b4bc.tar.gz |
re-order operands.
-rwxr-xr-x | makeBoundary | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/makeBoundary b/makeBoundary index fc8390c..76eaf21 100755 --- a/makeBoundary +++ b/makeBoundary @@ -295,8 +295,8 @@ print('insertion point =', ind_q) # find height at target flow by linear interpolation h_extra = h_i[panel[ind_p]][ind_q-1] \ - + (h_i[panel[ind_p]][ind_q] - h_i[panel[ind_p]][ind_q-1])\ - *(panel_target_flow - Q_i[panel[ind_p]][ind_q-1])\ + + (panel_target_flow - Q_i[panel[ind_p]][ind_q-1])\ + *(h_i[panel[ind_p]][ind_q] - h_i[panel[ind_p]][ind_q-1])\ /(Q_i[panel[ind_p]][ind_q] - Q_i[panel[ind_p]][ind_q-1]) print('heights:', h_i[panel[ind_p]][ind_q-1], h_extra, h_i[panel[ind_p]][ind_q]) # find area at target flow by linear interpolation |