Skip to content

Commit

Permalink
regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
FengWang3119 committed Oct 29, 2024
1 parent a100589 commit 83f9acc
Show file tree
Hide file tree
Showing 10 changed files with 135 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" ?>
<TurbulentViscosity>
<Snapshot_0 TurbulentViscosity_0="1.0000000000000005e-09" />
<Snapshot_200 TurbulentViscosity_0="8.2102115766795707e-05" />
<Snapshot_400 TurbulentViscosity_0="8.8074326807474146e-05" />
<Snapshot_600 TurbulentViscosity_0="0.0046243477553926096" />
<Snapshot_800 TurbulentViscosity_0="0.0046113289498275712" />
<Snapshot_1000 TurbulentViscosity_0="0.0044760599398110425" />
<Snapshot_1200 TurbulentViscosity_0="0.0045680982478298595" />
<Snapshot_1400 TurbulentViscosity_0="0.0045934302025844136" />
<Snapshot_1600 TurbulentViscosity_0="0.0047656371321763667" />
<Snapshot_1800 TurbulentViscosity_0="0.0047774437026232228" />
<Snapshot_2000 TurbulentViscosity_0="0.0047393833509010701" />
<Snapshot_2200 TurbulentViscosity_0="0.0047617183187992126" />
<Snapshot_2400 TurbulentViscosity_0="0.0047291564955812427" />
<Snapshot_2600 TurbulentViscosity_0="0.0047602590891793204" />
<Snapshot_2800 TurbulentViscosity_0="0.0047567703516683026" />
<Snapshot_3000 TurbulentViscosity_0="0.004744929104613594" />
<Snapshot_3200 TurbulentViscosity_0="0.004750235069173072" />
<Snapshot_3400 TurbulentViscosity_0="0.004771972246660052" />
<Snapshot_3600 TurbulentViscosity_0="0.0047896193475000228" />
<Snapshot_3800 TurbulentViscosity_0="0.004653060984489304" />
<Snapshot_4000 TurbulentViscosity_0="0.0046500028442428747" />
<Snapshot_4200 TurbulentViscosity_0="0.0046698173299548661" />
<Snapshot_4400 TurbulentViscosity_0="0.00471065821651462" />
<Snapshot_4600 TurbulentViscosity_0="0.0046608360133760969" />
<Snapshot_4800 TurbulentViscosity_0="0.0046561015280773476" />
<Snapshot_5000 TurbulentViscosity_0="0.0046467001679472318" />
<Snapshot_5200 TurbulentViscosity_0="0.00470171743560389" />
<Snapshot_5400 TurbulentViscosity_0="0.0047449988149529604" />
<Snapshot_5600 TurbulentViscosity_0="0.0047458177660335233" />
<Snapshot_5800 TurbulentViscosity_0="0.0047466582568579914" />
<Snapshot_6000 TurbulentViscosity_0="0.0047132343217507694" />
<Snapshot_6200 TurbulentViscosity_0="0.0047366469347330667" />
<Snapshot_6400 TurbulentViscosity_0="0.0047052036356753854" />
</TurbulentViscosity>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.2113518393020775e-05" snapshot_2="8.628528025301954e-05" snapshot_3="0.004488286848089878" snapshot_4="0.004663516321264027" snapshot_5="0.0045316647040251701" snapshot_6="0.0046338340151360156" snapshot_7="0.0045780214041810756" snapshot_8="0.0047975913797220883" snapshot_9="0.0046777650280563649" snapshot_10="0.0047536776362304464" snapshot_11="0.0047193436881813704" snapshot_12="0.0046660871063155564" snapshot_13="0.004735234668496722" snapshot_14="0.0046798227475827832" snapshot_15="0.0046711817798788611" snapshot_16="0.0047511198504994146" snapshot_17="0.0047118794299594322" snapshot_18="0.004749063502194264" snapshot_19="0.004738864990061987" snapshot_20="0.0046951741676520701" snapshot_21="0.0047700604598084782" snapshot_22="0.0045839160326846522" snapshot_23="0.0047168045124508142" snapshot_24="0.0047417662558111376" snapshot_25="0.00478807442925905" snapshot_26="0.00471077661721597" snapshot_27="0.0047411058664933482" snapshot_28="0.0047557364889089472" snapshot_29="0.004769447495389924" snapshot_30="0.0047588263055177316" snapshot_31="0.0047680709019295086" snapshot_32="0.004788771705400657" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.3301912124095676e-05" snapshot_2="0.00012745171104824984" snapshot_3="0.0042893750720303259" snapshot_4="0.0046109566366622909" snapshot_5="0.0046403814597001025" snapshot_6="0.0045793733682700458" snapshot_7="0.0045685804761652626" snapshot_8="0.0047539709796599787" snapshot_9="0.0047841655927131146" snapshot_10="0.0047544705648853731" snapshot_11="0.0047409849590733678" snapshot_12="0.0047244163698715903" snapshot_13="0.0046832706405939345" snapshot_14="0.0047496735327515055" snapshot_15="0.0046559312626813405" snapshot_16="0.0046970684964167805" snapshot_17="0.0047215686749089878" snapshot_18="0.0047434775667969525" snapshot_19="0.0047705852958716726" snapshot_20="0.0047135227296426115" snapshot_21="0.0047580818042544416" snapshot_22="0.0046950523357783755" snapshot_23="0.004742028064026565" snapshot_24="0.0047311802534307675" snapshot_25="0.0047574400115233655" snapshot_26="0.0047742106169651171" snapshot_27="0.0047644876302388112" snapshot_28="0.0048525614262455935" snapshot_29="0.0047705370693184729" snapshot_30="0.0047496486258909176" snapshot_31="0.0047675710413936862" snapshot_32="0.0047811311754983694" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.2113518451359919e-05" snapshot_2="0.00012258852372309644" snapshot_3="0.0044136274392822007" snapshot_4="0.0045585209099261708" snapshot_5="0.0045436834828941905" snapshot_6="0.004558337072505218" snapshot_7="0.0045871707207923327" snapshot_8="0.0047807847341770808" snapshot_9="0.0046799370843543173" snapshot_10="0.004739388313821538" snapshot_11="0.0047054633072224281" snapshot_12="0.0047558353664669565" snapshot_13="0.0046801857964703071" snapshot_14="0.0047489750020161033" snapshot_15="0.0047833925953932998" snapshot_16="0.0047425400675990262" snapshot_17="0.0047669060034844848" snapshot_18="0.0045724324585935932" snapshot_19="0.0045764888769327253" snapshot_20="0.0046494895715702075" snapshot_21="0.0046285861828079542" snapshot_22="0.0047302134968973284" snapshot_23="0.0047783761097671216" snapshot_24="0.0047212705243708806" snapshot_25="0.0047456196357466259" snapshot_26="0.0045065604945513128" snapshot_27="0.0044168123774479687" snapshot_28="0.0040786744530452359" snapshot_29="0.0046879305061548826" snapshot_30="0.0047801101504281913" snapshot_31="0.0047511873397118242" snapshot_32="0.0047314368197612418" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.3301913896933845e-05" snapshot_2="0.00012970560848857274" snapshot_3="0.0043833023325395258" snapshot_4="0.0045668318029733973" snapshot_5="0.004557180032999539" snapshot_6="0.0045375270030190932" snapshot_7="0.0045109329906806656" snapshot_8="0.0046632694024984359" snapshot_9="0.0046797137850069235" snapshot_10="0.0047700827435368442" snapshot_11="0.0047844150871821185" snapshot_12="0.0047089449312524272" snapshot_13="0.0047736852834518086" snapshot_14="0.0047150089283965841" snapshot_15="0.0046686615539990603" snapshot_16="0.0047853649143410745" snapshot_17="0.0046827741027712687" snapshot_18="0.0047020670911686593" snapshot_19="0.004607062343506464" snapshot_20="0.0047439079060612567" snapshot_21="0.0047509325407227698" snapshot_22="0.0046591230830896994" snapshot_23="0.0047236974948056251" snapshot_24="0.0046825594084739398" snapshot_25="0.0047629575095347876" snapshot_26="0.0047275728458826523" snapshot_27="0.0047627433371795454" snapshot_28="0.0047405216506871467" snapshot_29="0.004749409765161406" snapshot_30="0.0047457520514990557" snapshot_31="0.004723248055773877" snapshot_32="0.0047192905096243559" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.3301912492253491e-05" snapshot_2="8.7072393244340299e-05" snapshot_3="0.0043661442108537691" snapshot_4="0.0046088854334215262" snapshot_5="0.004560193725680479" snapshot_6="0.0045932700543926484" snapshot_7="0.0045658565241733472" snapshot_8="0.0047270156226420874" snapshot_9="0.0047261376439112169" snapshot_10="0.0047996751731212116" snapshot_11="0.0047463627923610046" snapshot_12="0.0047325092021099193" snapshot_13="0.0047035722450814678" snapshot_14="0.0045952724571263256" snapshot_15="0.0047299019021305785" snapshot_16="0.0047234317695822965" snapshot_17="0.0046868153185902137" snapshot_18="0.0047472584980460938" snapshot_19="0.0047811317733366335" snapshot_20="0.0047460591938129132" snapshot_21="0.0046872241700492015" snapshot_22="0.0046959607712478103" snapshot_23="0.0048078437819958474" snapshot_24="0.0047174522976154354" snapshot_25="0.0047613593203527944" snapshot_26="0.0047197436522321209" snapshot_27="0.0046997661897747066" snapshot_28="0.0047867459801643163" snapshot_29="0.0047269488736209472" snapshot_30="0.0047318460808817627" snapshot_31="0.0046831491649869453" snapshot_32="0.0047359330423919271" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" ?>
<result>
<Snapshot_Element>
<Snapshot number_of_snapshot_for_local_result_="33" />
</Snapshot_Element>
<Result_Element>
<Particle_0 snapshot_0="1.0000000000000007e-09" snapshot_1="8.2113518465297419e-05" snapshot_2="0.00012041315840429924" snapshot_3="0.004308548982058619" snapshot_4="0.0045276828529525019" snapshot_5="0.0045310587528359916" snapshot_6="0.0045794673035170581" snapshot_7="0.0046033704420308172" snapshot_8="0.0045080762956399992" snapshot_9="0.0045727811890497894" snapshot_10="0.0045977376761925232" snapshot_11="0.0047552299792829626" snapshot_12="0.0045963416866815401" snapshot_13="0.0045469102408614136" snapshot_14="0.004758331952444142" snapshot_15="0.0047759054652206367" snapshot_16="0.0047695852736559224" snapshot_17="0.0047337178719731162" snapshot_18="0.004723269720161849" snapshot_19="0.004666448427485312" snapshot_20="0.0046940835950223083" snapshot_21="0.0045887923095829257" snapshot_22="0.0046359577309789341" snapshot_23="0.0046538458080345371" snapshot_24="0.0047110142613815886" snapshot_25="0.0047380207479899546" snapshot_26="0.0047631275513173319" snapshot_27="0.00476051990235438" snapshot_28="0.004706054297996135" snapshot_29="0.0047912267985481599" snapshot_30="0.0047440529443131376" snapshot_31="0.0047557002747693165" snapshot_32="0.0046789743950982838" />
</Result_Element>
</result>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8" ?>
<dtw_distance>
<DTWDistance TurbulentViscosity_0="0.00025226234477784219" />
</dtw_distance>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
true
6
4
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# !/usr/bin/env python3
import os
import sys

path = os.path.abspath('../../../../../PythonScriptStore/RegressionTest')
sys.path.append(path)
from regression_test_base_tool import SphinxsysRegressionTest

"""
case name: 2d_turbulent_channel_VI_offset_model
"""

case_name = "2d_turbulent_channel_VI_offset_model"
body_name = "ObserverCenterPoint"
parameter_name = "TurbulentViscosity"


number_of_run_times = 0
converged = 0
sphinxsys = SphinxsysRegressionTest(case_name, body_name, parameter_name)


while True:
print("Now start a new run......")
sphinxsys.run_case()
number_of_run_times += 1
converged = sphinxsys.read_dat_file()
print("Please note: This is the", number_of_run_times, "run!")
if number_of_run_times <= 100:
if (converged == "true"):
print("The tested parameters of all variables are converged, and the run will stop here!")
break
elif converged != "true":
print("The tested parameters of", sphinxsys.sphinxsys_parameter_name, "are not converged!")
continue
else:
print("It's too many runs but still not converged, please try again!")
break

0 comments on commit 83f9acc

Please sign in to comment.