&iE/SSKrSSKrSSKJr SSKJr SSKJ r SSK J r SSK Js Jr SSKrSSKrSSKJr SSKJr SSKJr Srg)N) OrderedDict) Normalize)GridSpec)Circlec^^URUS5nUSS2SS24nUSS2SS24nUSS2SS24nUR5R5nUR5R5n UR5R5n USSS2SS24R5R5n USSS2SS24R5R5n Supn[R"SS[R -S5nU[R "U5-U -mU[R"U5-U-mUU4Sjn[SS5nU"US [R"U 5[R"U 5[R"U5S 5 U"US [R"U 5[R"U 5[R"U 5S 5 U"US [R"U 5[R"U 5[R"U 5S5 [R"5 [R"USUS35 [SUSUS35 [R"5 UU4Sjn[SS5nU"US [R"U 5[R"U 5[R"U5S 5 U"US [R"U 5[R"U 5[R"U 5S 5 U"US [R"U 5[R"U 5[R"U 5S5 [R"5 [R"USUS35 [SUSUS35 [R"5 g)NX_colr)rrg?ic>[R"U5 [R"XUSSS9n[R"TTSSS9 [R"U5 [R "5R S5 [R"U5 [R"S5 [R"S 5 g ) a this is an explanation for tripcontour() and tripplot() which are two different methods for plotting contour type plots Args: grid: plot position in subplot x: x-array (x coords) y: y-array (y coords) z: z-array (engineering value at [x,y]) title: title 2rainbow)levelscmapblue?coloralphaequalxyN) pltsubplot tricontourffillcolorbargca set_aspecttitlexlabelylabel)gsrrzr tcf cylinder_x cylinder_ys f/Users/natalie/Documents/masters/GDP/code/masters-project/PINN/Steady_Cylinder_flow/post_processing.py tricontourPlotting..tricontoursx BooaAbyA JfDA S  W% % 3 3)rrzPressure contour)rr zu velocity contour)r rzv velocity contour/z /contour.jpgza contour has been saved to: c>[R"U5 [R"XUSS9 [R"TTSSS9 [R"SS5 [R "SS5 [R "5 [R"U5 [R"S 5 [R"S 5 g) Nr)rrrrgg@rr) rr tripcolorrylimxlimrr r!r")r#rrr$r r&r's r(tripplotPlotting..tripplotsy B aAI. JfDA c a  % 3 3r+z/zoomed_contour.jpgz'a zoomed in contour has been saved to: )modeldetachnumpynplinspacepicossinrsqueezer tight_layoutsavefigprintclose)r4Tensors results_path version_namey_predsuvpp_npu_npv_npx_npy_npxcycrthetar)r#r2gs2r&r's @@r(PlottingrRskk''*+G1Q3A1Q3A1Q3AXXZ   D XXZ   D XXZ   D W a1f % , , . 4 4 6D W a1f % , , . 4 4 6DHB1 KK1RUU7C (EbffUm#b(JbffUm#b(J. !ABr#w 4("**T*:BJJt<.Pc deIIKr+)r6r7torchtorch.nnnnmatplotlib.pyplotpyplotr collectionsrscipy.ioiosioscipy.stats.qmcstatsqmcpandaspdosmatplotlib.colorsrmatplotlib.gridspecrmatplotlib.patchesrrRr+r(rfs@ # '(%OdM^Jr+