-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathturbulent-reconstructions.tex
91 lines (78 loc) · 3.55 KB
/
turbulent-reconstructions.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
% !TEX root = turbulent-reconstructions.tex
\input{tikz_preamble}
\definecolor{RYB1}{rgb}{0.63, 0.74, 0.78}
\definecolor{RYB2}{rgb}{0.18, 0.42, 0.41}
\definecolor{RYB6}{rgb}{0.85, 0.55, 0.13}
\definecolor{RYB5}{rgb}{0.69, 0.67, 0.66}
\definecolor{RYB3}{rgb}{0.72, 0.26, 0.06}
\definecolor{RYB4}{RGB}{251,220,127}
\pgfplotscreateplotcyclelist{newcolors}{
{RYB5,every mark/.append style={fill=RYB2!30,mark size={2}},mark=*},
{RYB2,every mark/.append style={fill=RYB2,mark size={2}},mark=*},
{RYB3,every mark/.append style={fill=RYB3,mark size={2}},mark=triangle*},
{RYB4,every mark/.append style={fill=RYB4,mark size={2}},mark=diamond*},
{RYB5,every mark/.append style={fill=RYB5,mark size={2}},mark=pentagon*},
{RYB6,every mark/.append style={fill=RYB6,mark size={2}},mark=10-pointed star},
{RYB7,every mark/.append style={fill=RYB7},mark=*},
}
\pgfplotsset{
standard/.style={
scale only axis,
width=0.5\textwidth,
enlarge x limits=0.05,
enlarge y limits=0.05,
max space between ticks=30,
cycle list name=newcolors,
}
}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}
\begin{groupplot}[group style={group size=2 by 1,horizontal sep=1.7cm}]
\nextgroupplot[
title=(a),
every axis title/.style={below left,at={(0,0)},inner sep=0.15in},
standard,
xlabel=$x_2$,
ylabel={$\overline{u_1^\prime u_1^\prime}/u_\tau^2$},
width=0.3\textwidth,
height=0.25\textwidth,
enlarge x limits=0,
legend style={
at={(1.17,1.0)},
inner sep=1pt,
anchor=south,
legend columns=5,
legend cell align={left},
draw=none,
fill=none,
},
legend style={/tikz/every even column/.append style={column sep=0.25cm}},
ylabel near ticks,
]
\addlegendimage{line width=0.1cm,dashed,no marks};
\addplot+[very thick,no marks,dotted] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D1121_bousin.csv};
\addplot+[very thick,no marks,dashed] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D1121_rsvd.csv};
\addplot+[very thick,no marks] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D1121_peel.csv};
\addplot+[black,line width=0.1cm,dashed,no marks] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D1121_dns.csv};
\legend{Exact, Boussinesq,Randomized low-rank approx., Fast MFM};
\nextgroupplot[
standard,
title=(b),
every axis title/.style={below left,at={(0,0)},inner sep=0.15in},
xlabel=$x_2$,
ytick={-1,0,1},
ylabel near ticks,
ylabel={$\overline{u_2^\prime u_1^\prime}/u_\tau^2$},
width=0.3\textwidth,
height=0.25\textwidth,
enlarge x limits=0,
ymin=-1.4,ymax=1.4,
]
\addplot+[very thick,no marks,dotted] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D2121_bousin.csv};
\addplot+[very thick,no marks,dashed] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D2121_rsvd.csv};
\addplot+[very thick,no marks] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D2121_peel.csv};
\addplot+[black,line width=0.1cm,dashed,no marks] table[col sep=comma,x expr=\thisrowno{0}+1] {../data/turbulent_channel/reconstructions/D2121_dns.csv};
\end{groupplot}
\end{tikzpicture}
\end{document}