Skip to content

Commit

Permalink
Fixed bug in ML_RANS/Data_generation/training_data_maker.py - see #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Romit-Maulik committed Sep 14, 2020
1 parent 034518a commit 1b8c137
Show file tree
Hide file tree
Showing 19 changed files with 1,082 additions and 78 deletions.
Binary file modified ML_RANS/Data_generation/OF_Data.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion ML_RANS/Data_generation/training_data_maker.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def read_vector(filename): # Only x,y components
cx = read_scalar('cx_6')
cy = read_scalar('cy_6')
# create array of Re information
h = np.ones(shape=(np.shape(U)[0],1),dtype='double')*1.75
h = np.ones(shape=(np.shape(U)[0],1),dtype='double')*1.25
temp_dataset = np.concatenate((U,cx,cy,h,nut),axis=-1)
total_dataset = np.concatenate((total_dataset,temp_dataset),axis=0)

Expand Down
Binary file removed ML_RANS/Testing/2132.zip
Binary file not shown.
Binary file added ML_RANS/Testing/2418.zip
Binary file not shown.
Binary file modified ML_RANS/Testing/ML_SA_CG.pb
Binary file not shown.
Binary file modified ML_RANS/Testing/Vel_Err_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ML_RANS/Testing/Vel_ML_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ML_RANS/Testing/Vel_SA_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,002 changes: 1,002 additions & 0 deletions ML_RANS/Testing/Wall_plot.csv

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions ML_RANS/Testing/means
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2 6
(
(4.079686917592934492e+01 -1.208243514188240608e+00 -3.261139731191171065e-01 5.640163886112639635e-02 1.382706624699276299e+00 1.613694987496413135e-03)
(6.916749517394584323e+00 5.413467829647387930e+00 5.565129236052048789e-01 4.110704482615899769e-02 5.507583080990012814e-01 2.269512471019279141e-03)
(4.079686917592934492e+01 -1.208243514188240608e+00 -3.261139731191171065e-01 5.640163886112639635e-02 1.303085616937946556e+00 1.613694987496413135e-03)
(6.916749517394584323e+00 5.413467829647387930e+00 5.565129236052048789e-01 4.110704482615899769e-02 5.275577461920756273e-01 2.269512471019279141e-03)
);



Binary file modified ML_RANS/Testing/nut_Err_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ML_RANS/Testing/nut_ML_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ML_RANS/Testing/nut_SA_DG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified ML_RANS/Training/Original/ML_SA_CG.pb
Binary file not shown.
Binary file modified ML_RANS/Training/Original/model.h5
Binary file not shown.
Binary file modified ML_RANS/Training/Original/mv_scaler.save
Binary file not shown.
149 changes: 74 additions & 75 deletions ML_RANS/Training/Original/training.log
Original file line number Diff line number Diff line change
@@ -1,76 +1,75 @@
epoch,loss,r2_2,val_loss,val_r2_2
0,0.17007724272989602,0.8283464,0.08161982012491165,0.9180859
1,0.07155750537013865,0.92767274,0.052983437490157236,0.94688356
2,0.027666493221670016,0.97208893,0.017552874508365658,0.9824278
3,0.015179669625179628,0.98468095,0.012842293161260124,0.9870766
4,0.012958969376784134,0.9869048,0.011590651729440274,0.9883838
5,0.010751472286437695,0.98913765,0.010496370567799352,0.98946846
6,0.009453563742424597,0.9904469,0.012818402191509485,0.9871487
7,0.007328973367046665,0.9925988,0.006577784729922469,0.9934037
8,0.006120697324622794,0.99380577,0.00528497522963208,0.9947099
9,0.00550468476229593,0.9944276,0.005128368814112408,0.9948617
10,0.005168032448998341,0.9947796,0.004918148166672885,0.9950616
11,0.0046017558639423195,0.9953514,0.005972903537766952,0.99400437
12,0.0046607433463641676,0.99528533,0.003885671408012999,0.99610275
13,0.0045082336350662595,0.9954411,0.004704383737538016,0.9952707
14,0.004173981033975675,0.99578273,0.004271678532534638,0.9957048
15,0.00407018475527878,0.99588865,0.003732975051282971,0.99625385
16,0.0039896965572026625,0.99595994,0.0034276499999640214,0.9965548
17,0.004075735730603801,0.9958793,0.003737216668082143,0.9962378
18,0.0037792856111142324,0.99617434,0.004064075458096603,0.9959306
19,0.0038916663525604884,0.99606043,0.0034765568284489657,0.9965101
20,0.0037113139874669038,0.9962494,0.0031903009488362345,0.99680066
21,0.0036857506941421724,0.99627256,0.0035470136221167855,0.9964274
22,0.003455242151339566,0.9965039,0.0035447586020476295,0.99644023
23,0.0034734106923036794,0.9964841,0.0037812602713368925,0.99620056
24,0.0034928216801907077,0.99646616,0.0032329462017389354,0.9967511
25,0.0034410835292948763,0.99652046,0.003180311331044062,0.9968042
26,0.0033327623333417327,0.99663424,0.0029872043304977813,0.9970087
27,0.003317265040661119,0.9966444,0.003824258392581171,0.99616444
28,0.0034343391393060604,0.99653345,0.0031803556766248995,0.9967924
29,0.003161974590369959,0.99679804,0.003399427287748771,0.9965885
30,0.0032691715172912415,0.99669373,0.0027074820777349584,0.9972869
31,0.003246253205169519,0.9967207,0.0028890870709490694,0.9971047
32,0.0032339921277863837,0.99673164,0.0028387839169807944,0.9971399
33,0.0031963215499033015,0.99677235,0.0030868913868055342,0.9969018
34,0.003183926523413014,0.9967795,0.0026782222976418184,0.99731725
35,0.0029566709754846594,0.9970052,0.0030427880864029697,0.99694246
36,0.0030765275639455317,0.9968856,0.0029415414300541756,0.99703354
37,0.0029636230948383974,0.99700207,0.0029843277307815713,0.9970018
38,0.003147109882733747,0.99681544,0.003085115123638489,0.9968988
39,0.0029233483352906478,0.997043,0.003260106230779361,0.99673194
40,0.003124377011944053,0.9968423,0.0027511472010758407,0.9972405
41,0.002801330095416408,0.99716896,0.002770976100533783,0.997221
42,0.0029333021293472955,0.9970344,0.0031442238786431372,0.9968282
43,0.0030321721769006925,0.9969321,0.0027556252144292524,0.997229
44,0.002905604306386257,0.9970654,0.0026230545284626266,0.9973692
45,0.002956340644595813,0.9970114,0.00381837451959021,0.9961464
46,0.0027564429953999547,0.9972134,0.0032480732136050913,0.99673384
47,0.0030291992205801186,0.99694,0.0026811659721478645,0.9973152
48,0.002816017494208894,0.9971462,0.002660780586453684,0.9973252
49,0.002896537207655182,0.99706155,0.0024825269262735723,0.9975063
50,0.0027060207012203482,0.9972632,0.0025658397044150414,0.9974288
51,0.002827117697476619,0.997142,0.002598628628369593,0.9973911
52,0.002763086519965153,0.99719995,0.003380949150994128,0.9966177
53,0.0027566193438118792,0.99720854,0.002470478282209348,0.9975247
54,0.0027313318035395795,0.99723685,0.002435221105997875,0.99754626
55,0.0028216058328435025,0.9971481,0.0028382045585310456,0.99713993
56,0.002703749288257737,0.99726105,0.00257251538504905,0.99742657
57,0.002690100006528849,0.99728054,0.0025956605480142833,0.9973825
58,0.0027761643398234383,0.99719745,0.003038941403254463,0.9969578
59,0.0026167345063435586,0.9973525,0.0023805471748667042,0.9976055
60,0.0026408698438583882,0.9973295,0.0029814480464601494,0.9970099
61,0.0025722407723845963,0.99739933,0.002562439347728883,0.9974168
62,0.002729390624665384,0.9972386,0.002676541304402447,0.9973127
63,0.0026589223673708132,0.9973131,0.003470800879911515,0.9965154
64,0.0026477768451443314,0.9973216,0.0023400018356389447,0.9976374
65,0.0025779482204192914,0.9973913,0.002851142189885882,0.99714255
66,0.0027252963013346394,0.9972444,0.002511505332170225,0.9974862
67,0.0025652797204382613,0.99740916,0.0023478195269426806,0.9976513
68,0.002596201156890467,0.9973733,0.0025616373015159457,0.9974373
69,0.002579030753304003,0.9973942,0.002501663758261453,0.9974879
70,0.002643917197356878,0.9973308,0.0024958701837117033,0.9974901
71,0.0024809647339883475,0.9974884,0.002399754493582363,0.9975874
72,0.002573410819297461,0.9973989,0.0024599283349037125,0.9975262
73,0.0024913926287048987,0.99747705,0.0023517534668987734,0.9976477
74,0.0026296786844523263,0.9973406,0.0025646019959439472,0.9974272
0,0.15270384013226396,0.84591764,0.07759137258616511,0.92216957
1,0.06916105687538365,0.9300923,0.05944286325419842,0.9403785
2,0.03241371175201059,0.9672906,0.01641126587847816,0.98358774
3,0.013146020210230416,0.9867327,0.0157319459361084,0.9841921
4,0.008242102276989944,0.9916935,0.007129771534549364,0.99286324
5,0.006375986419661007,0.9935502,0.00448732077520454,0.99551505
6,0.004723583323390185,0.99522424,0.0036082977257474117,0.9963902
7,0.0035203337954326746,0.996442,0.008371421805269874,0.9916047
8,0.0028516160790422796,0.9971147,0.003017316410760553,0.9969766
9,0.0024845233155189003,0.9974898,0.001680692046625224,0.9983167
10,0.0026463425616377427,0.9973252,0.0019803178131545672,0.99801654
11,0.001663690158853053,0.9983183,0.0021203325245650467,0.99786985
12,0.0016316479245947933,0.998352,0.001032322629209397,0.998965
13,0.001921257895097301,0.9980586,0.0020817359240389464,0.99790674
14,0.0017471319379637254,0.99824125,0.0017618165967582804,0.99823076
15,0.001175252150428009,0.9988114,0.0009143395214736267,0.999084
16,0.0012392746372351367,0.99875116,0.007670854357077427,0.99229574
17,0.0015879344089726791,0.9983871,0.0008863777009706189,0.99910843
18,0.0011352499336157976,0.99885654,0.0006894993059179564,0.9993085
19,0.0011263240554401103,0.99886274,0.0011447711090281031,0.9988511
20,0.0012436511559899127,0.99874824,0.0005971614167270596,0.9994012
21,0.00099314817949571,0.99899924,0.0006952121524254868,0.99930507
22,0.001128528270817392,0.9988663,0.0011631079903608736,0.9988313
23,0.0011429369824916499,0.99883777,0.007190641046480545,0.99278474
24,0.0008824852761775257,0.99911046,0.0005088427678786822,0.9994913
25,0.0008630441844189835,0.9991359,0.0007783377371688997,0.9992199
26,0.0007975345062560654,0.99919367,0.0008874956851796196,0.99911124
27,0.0009746138100946913,0.99901605,0.0009404927675512874,0.9990564
28,0.0008647259181036171,0.9991272,0.0008174788487360109,0.9991827
29,0.0007666371713225014,0.9992249,0.0007989486991083122,0.9991975
30,0.0008357737694168609,0.9991551,0.0011682275596442354,0.99882543
31,0.0006786488757332635,0.99931246,0.0005079498669729005,0.9994905
32,0.0008861839811959018,0.9990942,0.00035182232159686877,0.999647
33,0.0006536956757276482,0.9993391,0.00704805518366293,0.9929206
34,0.0007043250034628613,0.99928725,0.0015682741555601782,0.99842775
35,0.0007582832823905324,0.9992401,0.0004322923464438916,0.9995661
36,0.0006058247134773395,0.9993813,0.0005493915921038527,0.99944645
37,0.0004782269620383795,0.9995164,0.0003153313785348337,0.9996844
38,0.0007656725450894495,0.9992282,0.00028513585042977044,0.99971426
39,0.0006815169849620532,0.99930954,0.00024390289680438544,0.99975395
40,0.0005365091915656455,0.9994564,0.0002604355034653569,0.99973917
41,0.0005543397040636458,0.9994438,0.00036866902709791166,0.9996296
42,0.0006789092372896451,0.9993095,0.0006277316029243356,0.9993686
43,0.000507072730950176,0.9994883,0.0002875124626301003,0.9997118
44,0.0005764065571856514,0.9994184,0.00027641507985886915,0.9997232
45,0.0005525247689221128,0.99943876,0.0002476116930141635,0.99975115
46,0.0005535802176256787,0.99944276,0.0002202931973519808,0.9997786
47,0.0005430170936421723,0.99945337,0.001284469352469211,0.99871266
48,0.0005146985577628596,0.9994782,0.0007290180994281695,0.9992699
49,0.0007366323812720224,0.99925923,0.00019610648308984364,0.9998032
50,0.00040827483222190703,0.99959284,0.0002595497109863967,0.9997405
51,0.0003590262472384626,0.9996361,0.0002593767621830726,0.9997405
52,0.00046155756369861554,0.9995347,0.0007993064130079291,0.99919784
53,0.0005884791311136168,0.9994074,0.00024245173303756722,0.9997573
54,0.0003577078397438827,0.9996397,0.0002937719069498024,0.9997041
55,0.0005109324962812153,0.999485,0.0002834829192783003,0.99971503
56,0.0004960257674897764,0.9994959,0.00022683408123206513,0.999773
57,0.0005743547326968166,0.99942434,0.0002703204115730215,0.9997286
58,0.00039455348848151426,0.99960023,0.00015305054627267576,0.9998465
59,0.00036188260478822536,0.999633,0.00044289866531814243,0.99955577
60,0.00044783143950520154,0.99954754,0.00014606973423928892,0.9998537
61,0.0003637247850274099,0.9996331,0.0007670982565870493,0.99922955
62,0.00043390730511060576,0.9995611,0.00016884208288596897,0.9998307
63,0.0006856919354772561,0.9993069,0.00012240487231027816,0.99987763
64,0.00032589608378268516,0.9996701,0.0007295176259238176,0.99926776
65,0.00040346942221353534,0.9995931,0.00020942202614339817,0.99979043
66,0.0004047934028574556,0.9995894,0.00023879615537619712,0.99975926
67,0.00029072245600087393,0.9997046,0.0002807754311247272,0.99971867
68,0.0004032699734648837,0.9995926,0.0003023409963712592,0.9996958
69,0.00041545620527706827,0.9995815,0.0001261770347719532,0.9998734
70,0.00033065108326093754,0.9996676,0.0003088568130873426,0.9996905
71,0.0003571883207760238,0.9996393,0.00014373163446094743,0.9998555
72,0.0004128955956068906,0.9995845,0.00032285504779501245,0.99967647
73,0.0003974939393366898,0.9996004,0.00012856715930663188,0.99987155

0 comments on commit 1b8c137

Please sign in to comment.