aboutsummaryrefslogtreecommitdiff
path: root/makeBoundary
diff options
context:
space:
mode:
authorPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-29 11:56:10 +0000
committerPaul Garlick <pgarlick@tourbillion-technology.com>2019-10-29 11:56:10 +0000
commit0ed129571e7de2f7a9ad6c427cbb622129a6b4bc (patch)
tree4d74b6b893de648d2ca5d8ed538c0d725b3e1280 /makeBoundary
parentf099eb3df2ddef1fca4a50c86bbb638bad8a08d0 (diff)
downloadfullSWOF-utils-0ed129571e7de2f7a9ad6c427cbb622129a6b4bc.tar.gz
re-order operands.
Diffstat (limited to 'makeBoundary')
-rwxr-xr-xmakeBoundary4
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