diff --git a/tools/evaluation/FiguresAndTablesForPaper.py b/tools/evaluation/FiguresAndTablesForPaper.py index 2390e1ddf127b8ba13deb355f29fea8baae43290..5909038a6476d210c1a09cef9b9c1600d1517a8f 100644 --- a/tools/evaluation/FiguresAndTablesForPaper.py +++ b/tools/evaluation/FiguresAndTablesForPaper.py @@ -4,8 +4,10 @@ from utility.plotting import Plot from utility.latexTables import Table from utility.latexTables import TableWriter from utility.documentWriter import DW +import Meshinfos - +pathBV='../../../datafiles/BiVentricle/' +pathEll='../../../datafiles/TestsFromHoreka/' def getPointNamebyNumber(p,inRef=False): if inRef: if p==1: @@ -42,9 +44,19 @@ def getPointNamebyNumber(p,inRef=False): elif p==8: return '\\LtwoSpace' - +def table2(): + #histplot benchmark ellipsoid + path = pathEll+'ActivationTimeSI/vtu/AT_l0j4.vtu' + savePath=pathEll+'ActivationTimeSI/tex/HistEllipsoidl0.tex' + + comHistplot(path,savePath) def figure2(): - #plotallPoints, convergence in time and convergence in space + LI = pathEll+'LI0001SAT' + #plotallPoints, + + #convergence in time + + #convergence in space i=0 def table4(): @@ -63,13 +75,15 @@ def table6(): i=0 def table7(): - # convergence cv in space - i=0 + #histplot bi-ventricle + path = pathBV+'SI0004/vtu/AT_l0j0.vtu' + savePath=pathBV+'SI0004/tex/HistBiVentriclel0.tex' + + Meshinfos.comHistplot(path,savePath) def figure5(): #work precision diagrams - eP='../../../datafiles/TestsFromHoreka/' - sP='../../datafiles/TestsFromHoreka/tex/' + eP=pathEll+'' fLI=eP+'LI0001SAT/' fSI=eP+'SI0001SAT/' @@ -106,30 +120,31 @@ def figure5(): output_file.write('\\end{figure}\n') -def table9(): - lL=[0,1,2] +def table8(): + lL=[0,1,2,3,4] tL=[0,1,2,3,4] - SI='../../../datafiles/BiVentricle/SI0004/' + SI=pathBV+'SI0004/' sdt=0.0004 endTime=0.16 listEvaluationPoints=[] - l0Path='../../../datafiles/BiVentricle/SI0004/vtu/AT_l0j0.vtu' + l0Path=pathBV+'SI0004/vtu/AT_l0j0.vtu' #plotTact: plot=Plot(lL,tL,sdt,endTime,1,listEvaluationPoints) - #plot.MeanTactSpace(SI,l0Path) + plot.MeanTactSpace(SI,l0Path) #tables tact - L=2 - J=3 + L=4 + J=4 savePath='images/' tabWriter = TableWriter(lL,tL,sdt,endTime,1,[SI],listEvaluationPoints) tabWriter.writeMeanTactTable(SI,l0Path,savePath,L,J) -if __name__=="__main__": +if __name__=="__main__": + #table2() #x #figure2() #table4() #table5() #figure3() #table6() - #table7() + #table7() #x #figure5() - table9() + table8()