From c269b6dfb370f992296af682fa3cf0c135f695b0 Mon Sep 17 00:00:00 2001 From: Alberto Cuadra Lara Date: Thu, 5 Aug 2021 21:36:19 +0200 Subject: [PATCH] miscellaneous --- .../__pycache__/Define_FOI.cpython-38.pyc | Bin 3288 -> 3317 bytes .../__pycache__/Initialize.cpython-38.pyc | Bin 9102 -> 9157 bytes Solver/Chemical_Equilibrium/SolveProblem.py | 14 ++++++++++---- .../GibbsMinimization.cpython-38.pyc | Bin 6553 -> 6553 bytes .../__pycache__/SolveProblem.cpython-38.pyc | Bin 911 -> 1382 bytes Solver/Functions/ComputeProperties.py | 4 ++-- Solver/Functions/SetSpecies.py | 3 --- .../ComputeProperties.cpython-38.pyc | Bin 2352 -> 2340 bytes 8 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Settings/__pycache__/Define_FOI.cpython-38.pyc b/Settings/__pycache__/Define_FOI.cpython-38.pyc index 6341ca520a1479253456ebd004f927f9c8f1ef81..2ada7a0c9603b3a3dba978de9cd79937110531f6 100644 GIT binary patch delta 242 zcmca1`BjoPl$V!_0SLYt@+3~#$h(}CONfzyp@wk+V-efrhwKKE-?5&P&ErU6u3^Yx zjOVFg2xib^@q5Vv)bf%ENE9(nKE-xRMgn98BO9X#qYR@0qY|S86zVZ?FiqaaF3*@W z`5wC&V;Imlg~>LYJY2yHE1CR?fL1X~w&5rfcLp+wdBBE%j9_6@0%|OBoqT{@Wb$o} z^-M)hllwVWG5Srm;+o975=dX-N*9g-Y2pBDl3-K;+F0Z_*@xSV(Q9%uw+&o88oi| delta 217 zcmew=c|(#nl$V!_0SK7Bb0lhR+*-iouqFb+Q2U7P(Ho$SyMZFUNXTO(wr0#>wkAS221_j^vumTI2*&KKVUYx^M_c u9|w?N0NSGh#6`Z7Gr7$eohC2fwqcB(e3$zYqwnMmJa+7STpV0H9P9v7;xEJi diff --git a/Settings/__pycache__/Initialize.cpython-38.pyc b/Settings/__pycache__/Initialize.cpython-38.pyc index 8995b88a66ea4b46fa0af3f462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!o?iI(-qO~i-})6F>xSpmXF|3#){oRw3JEI8l+NV}vl^$8 z3vvg)l0FR2l~vMbvHefJ()=0D+9RT28t(d=4v(ffv)OzxU&>}x#wD9Z|4U^l(mN^q zQ1Aaf%1;Bg{T=f>R8v$_SIR*9@mp2g>{EQRUQ&liS*uJO8CAi^%XUH9(J+o;cu;u+ zPfe{fZ@RXcGFwP7qzSTi>1pM&!w4S$;i*~7Nx7c zhs%u}#Uj3=YIa(X#;PLOk|UcfrGseD38WGgQj!?WOrh*N@G??G+}1bie-Mxy3odZT z1w(I>R`Y+3p{7u>ZwpYuX?~*}!_WnkT~5cWF8Djl8qEq#H#m@I8v2`gEx-m44&Yk& zIK-n7@J3XpX8JbL%P(#ak$x>JZV-!Gblw5WupB+mK7RT`b^skGOR(B734PHKry>`l zy?nYS5akv;j7-94V)!t z%;C3>Aj%rbZcmI@J@HfXj1yv@rT;XyCFoGSSB6MqRgrCX4t1o}Lu?Rkv?N188oyT| z8g{^omIRE|gQvOyJQbpWPePg;8mbuY_5KMwph#; zr{g-C(KS}0`%*=BMP#(~@Ic8;m1bCW%6_My%U=Xeo82W;33JUbp9sx=NOyjM5r0zb z&S^tqRjIc9XV&#fw-=s`sOUst9i)gIqsX#97<6GZc;9a%e`yVq$xkXk%Dvaqa$Mfu F`VM@VeCPlG diff --git a/Solver/Chemical_Equilibrium/SolveProblem.py b/Solver/Chemical_Equilibrium/SolveProblem.py index cdb83fb..ad49023 100644 --- a/Solver/Chemical_Equilibrium/SolveProblem.py +++ b/Solver/Chemical_Equilibrium/SolveProblem.py @@ -9,12 +9,18 @@ ---------------------------------------------------------------------- """ from Solver.Chemical_Equilibrium.Equilibrate import equilibrate +from Solver.Shocks_and_detonations.Shock_incident import shock_incident def SolveProblem(self, i): - if not i: - self.PS.strP.append(equilibrate(self, self.PS.strR[i], self.PD.pP.Value)) - else: - self.PS.strP.append(equilibrate(self, self.PS.strR[i], self.PD.pP.Value, self.PS.strP[i - 1])) + if not any(self.PD.ProblemType.upper() == pt for pt in ['SHOCK_I', 'SHOCK_R', 'DET', 'DET_OVERDRIVEN']): + if not i: + self.PS.strP.append(equilibrate(self, self.PS.strR[i], self.PD.pP.Value)) + else: + self.PS.strP.append(equilibrate(self, self.PS.strR[i], self.PD.pP.Value, self.PS.strP[i - 1])) + elif self.PD.ProblemType.upper() == 'SHOCK_I': + str1, str2 = shock_incident(self, self.PS.strR[i], self.PD.pR.Value, self.PD.TR.Value, self.PD.u1.Value) + self.PS.strR.append(str1) + self.PS.strP.append(str2) return self \ No newline at end of file diff --git a/Solver/Chemical_Equilibrium/__pycache__/GibbsMinimization.cpython-38.pyc b/Solver/Chemical_Equilibrium/__pycache__/GibbsMinimization.cpython-38.pyc index 7f3b883b365dd6aa4f0da99c8d59093647bcab96..2a176fc2ff35870ca0a5703a794055ff83f34ae9 100644 GIT binary patch delta 51 zcmbPfJkyvvl$V!_0SM|$c{Xw@vN2Xn)@5^Ltk_)4W+%vaYw{-XdyHk1CrWGulJ1g0 E07GLAZ~y=R delta 51 zcmbPfJkyvvl$V!_0SLkwIX7}EvN0x4)@5^LOx|3~W+%uPHF=ZxJ;u_>6D76+Nq5O0 E04S>sW&i*H diff --git a/Solver/Chemical_Equilibrium/__pycache__/SolveProblem.cpython-38.pyc b/Solver/Chemical_Equilibrium/__pycache__/SolveProblem.cpython-38.pyc index d27f702527944e049a1f37c3f55bf09e49810725..19b0181e74b17e178bf9f9c5bbd9b7b740bd4c48 100644 GIT binary patch delta 830 zcmZWnPiqrF6rVRco1{s)Egp&m(VKKZf~|reAqXbeqNE|IIV>$<%}isG&2F6Ch?UeF zQnWXbe1Y`XqhF*4kMjWpzk(;{O=9uS!28YHo%i1F_a5(a`g_)Sxw@Jq`t0rG{Ui3p zxmDQGUz~V^1E&EDs7C>PE3gL4W7=ojJ|mvZQw`##zrN_e#0BNVucLOq)eYNSF2bZu zvFP$JeXnSIDS@$E5eqL=EWdzqgT%b&GR)LB`OhO`_YO z9MhrdT8h@nDp!-yt3V76PKH9+qv23UmnvGgujnwj1jS+z9AA>3ANk|MXHnD%#O#cI zn5+~#A{6h2vb2VbICDlQd4H!71#iW&W}z5FZ9j-hh3jaSsdQs^|LODAp0{-Bo>i_K zC`UtUzgel5>wC>g^#^t*9S!c9vi$Hwt8HjCiL9xVKij426N#)^W=+{mKNtyVV@e7E zN1iC8R0vo{KE`12=Pyh!UDsjM7 z>ZWE})+6EFGikEWz@3a+e#l!~BvI%m-6)I~zpq!-NHYZ%>_&nCBOy~9M0^y861E>> KFD#pfJpBcvEXG>^ delta 332 zcmaFH)z8is%FD~e00e$-xf9nhP2`hNk^%Bk7@`3ySm{V9<7^0X{ zSc4ff*)~R`Gu9_FfwVyZh|LMa&Olt803>P{i?wPPvKX=$7ciAD*D!$DEH#XhAQo#D zTNZmW^Fl^OhCCzusvxp8j46x~43Z4ZEFe8K3_wS4GWoq^1X`rYF$h(w@@z>_fO!paCYZ$VWL?%yU5r?ogFK1cE%q+tw JGufNtCIIA&5RU)=