1 | % $Id: exercise_interface.tex 1657 2015-09-17 18:31:36Z gronemeier $ |
---|
2 | \input{header_tmp.tex} |
---|
3 | %\input{../header_lectures.tex} |
---|
4 | |
---|
5 | \usepackage[utf8]{inputenc} |
---|
6 | \usepackage{ngerman} |
---|
7 | \usepackage{pgf} |
---|
8 | \usepackage{subfigure} |
---|
9 | \usepackage{units} |
---|
10 | \usepackage{tabto} |
---|
11 | \usepackage{multimedia} |
---|
12 | \usepackage{hyperref} |
---|
13 | \newcommand{\event}[1]{\newcommand{\eventname}{#1}} |
---|
14 | \usepackage{xmpmulti} |
---|
15 | \usepackage{tikz} |
---|
16 | \usetikzlibrary{shapes,arrows,positioning} |
---|
17 | \usetikzlibrary{decorations.markings} %neues paket |
---|
18 | \usetikzlibrary{decorations.pathreplacing} %neues paket |
---|
19 | \def\Tiny{\fontsize{4pt}{4pt}\selectfont} |
---|
20 | \usepackage{amsmath} |
---|
21 | \usepackage{amssymb} |
---|
22 | \usepackage{multicol} |
---|
23 | \usepackage{pdfcomment} |
---|
24 | \usepackage{graphicx} |
---|
25 | \usepackage{listings} |
---|
26 | \lstset{language=[90]Fortran, |
---|
27 | basicstyle=\ttfamily \tiny, |
---|
28 | keywordstyle=\color{black}, |
---|
29 | commentstyle=\color{black}, |
---|
30 | morecomment=[l]{!\ }% Comment only with space after ! |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
34 | \institute{Institute of Meteorology and Climatology, Leibniz UniversitÀt Hannover} |
---|
35 | \selectlanguage{english} |
---|
36 | \date{last update: \today} |
---|
37 | \event{PALM Seminar} |
---|
38 | \setbeamertemplate{navigation symbols}{} |
---|
39 | |
---|
40 | \setbeamertemplate{footline} |
---|
41 | { |
---|
42 | \begin{beamercolorbox}[rightskip=-0.1cm]& |
---|
43 | {\includegraphics[height=0.65cm]{imuk_logo.pdf}\hfill \includegraphics[height=0.65cm]{luh_logo.pdf}} |
---|
44 | \end{beamercolorbox} |
---|
45 | \begin{beamercolorbox}[ht=2.5ex,dp=1.125ex, |
---|
46 | leftskip=.3cm,rightskip=0.3cm plus1fil]{title in head/foot} |
---|
47 | {\leavevmode{\usebeamerfont{author in head/foot}\insertshortauthor} \hfill \eventname \hfill \insertframenumber \; / \inserttotalframenumber} |
---|
48 | \end{beamercolorbox} |
---|
49 | \begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot} |
---|
50 | \end{beamercolorbox} |
---|
51 | } |
---|
52 | %\logo{\includegraphics[width=0.3\textwidth]{luhimuk_logo.pdf}} |
---|
53 | |
---|
54 | \title[Exercise 3: User Interface]{Exercise 3: User Interface} |
---|
55 | \author{PALM group} |
---|
56 | |
---|
57 | \setbeamersize{text margin left=.2cm,text margin right=.2cm} |
---|
58 | |
---|
59 | \begin{document} |
---|
60 | \footnotesize |
---|
61 | % Folie 1 |
---|
62 | \begin{frame} |
---|
63 | \titlepage |
---|
64 | \end{frame} |
---|
65 | |
---|
66 | \section{Exercise} |
---|
67 | \subsection{Exercise} |
---|
68 | |
---|
69 | % Folie 2 |
---|
70 | \begin{frame} |
---|
71 | \frametitle{Exercise 3: User Interface} |
---|
72 | \begin{itemize} |
---|
73 | \item Carry out a run for a convective boundary layer where a surface heat flux is given for a limited rectangular area: |
---|
74 | |
---|
75 | \tikzstyle{green} = [rectangle, draw, fill=green!70, minimum size=51pt, font=\tiny] |
---|
76 | \tikzstyle{red} = [rectangle, draw, fill=red!90, text width=44.77pt, minimum size=20pt, font=\tiny] |
---|
77 | \tikzstyle{textd} = [rectangle, font=\normalsize] |
---|
78 | \tikzstyle{line} = [draw, -] |
---|
79 | \begin{center} |
---|
80 | \begin{tikzpicture}[auto, node distance=0] |
---|
81 | \uncover<2->{\node [green] (green) {};} |
---|
82 | \uncover<3->{\node [red, rotate=90] (red) {};} |
---|
83 | \uncover<4->{\node [textd] (textd) {$d$};} |
---|
84 | \uncover<4->{\draw [latex-,line width=0.8pt] (red.south) -- (textd.east);} |
---|
85 | \uncover<4->{\draw [latex-,line width=0.8pt] (red.north) -- (textd.west);} |
---|
86 | \end{tikzpicture} |
---|
87 | \end{center} |
---|
88 | |
---|
89 | \item<5-> It should be possible to control the area width $d$ by a user-defined parameter in the parameter file. All other parameters should be chosen as in the example run ({\texttt{\scriptsize example\_cbl}}). Chose a stripe width of $d=300$m. |
---|
90 | \item<6-> Create horizontal and vertical cross sections of variables in order to analyze the flow field. |
---|
91 | |
---|
92 | \only<7->{\scriptsize \textit{Recommendations: Create mean vertical profiles of temperature and resolved/subgrid-scale heatflux for the total domain but also for the limited rectangular area and the total domain without the limited area. Also create time series for these three domains. This can be done by using the \textbf{statistic region concept} already implemented in PALM.}} |
---|
93 | |
---|
94 | \end{itemize} |
---|
95 | |
---|
96 | \end{frame} |
---|
97 | |
---|
98 | % Folie 3 |
---|
99 | \begin{frame} |
---|
100 | \frametitle{The statistic region concept} |
---|
101 | \begin{itemize} |
---|
102 | \item<1-> By default, mean horizontal profiles are calculated and output for the total domain. |
---|
103 | \item<2-> The user can define up to nine so-called statistic regions, which can be arbitrary subsets of the total domain and PALM will calculate and output mean profiles for these regions, too. |
---|
104 | \end{itemize} |
---|
105 | \vspace{1em} |
---|
106 | \onslide<3->\textbf{Procedure:} |
---|
107 | \begin{enumerate} |
---|
108 | \item<3-> Set the number of statistic regions you additionally want to define by assigning a value to the {\texttt{\scriptsize {\&}inipar}}-parameter {\texttt{\scriptsize \textcolor{blue}{statistic\_regions}}}. |
---|
109 | \item<4-> Within the user-interface ({\texttt{\scriptsize user\_init}}), set the masking array {\texttt{\scriptsize rmask}}. It is an {\texttt{\scriptsize INTEGER}} array with array-bounds |
---|
110 | \begin{center} |
---|
111 | {\texttt{\scriptsize rmask(nysg:nyng,nxlg:nxrg,0:\textcolor{blue}{statistic\_regions})}} |
---|
112 | \end{center} |
---|
113 | The last index represents the respective statistic region (index {\texttt{\scriptsize 0}} stands for total domain). Assign a 1 to each array element (grid point) which shall belong to the respective statistic region. {\texttt{\scriptsize rmask}} is pre-set as: |
---|
114 | \begin{center} |
---|
115 | {\texttt{\scriptsize rmask(:,:,0:\textcolor{blue}{statistic\_regions}) = 1}} |
---|
116 | \end{center} |
---|
117 | \end{enumerate} |
---|
118 | \end{frame} |
---|
119 | |
---|
120 | |
---|
121 | % Folie 4 |
---|
122 | \begin{frame} |
---|
123 | \frametitle{Additional hints} |
---|
124 | \begin{itemize} |
---|
125 | \item<1-> Keep in mind that every PE calculates for a different subset of the total domain. Array bounds of the total domain are {\texttt{\scriptsize (0:ny,0:nx)}}, those of the subdomains {\texttt{\scriptsize (nys:nyn,nxl:nxr)}}, where {\texttt{\scriptsize nys, nyn, nxl, nxr}} vary for each subdomain. |
---|
126 | \item<2-> {\texttt{\scriptsize rmask}} can also be used to modify the array which defines the surface heatflux ({\texttt{\scriptsize shf}}): |
---|
127 | \begin{center} |
---|
128 | {\texttt{\scriptsize shf $=$ shf * rmask(:,:,1)}} |
---|
129 | \end{center} |
---|
130 | This sets the surface heatflux to zero at all those array elements (grid points) where {\texttt{\scriptsize rmask(...,1)}} is zero. |
---|
131 | \item<3-> In case of using the default netCDF format, the profile data for the additional statistic regions are added to the default local file {\texttt{\scriptsize DATA\_1D\_PR\_NETCDF}}. |
---|
132 | \item<4-> The developing mean flow is quasi two-dimensional (in the $xz$-plane). You can easily get plots of the mean flow by averaging results along the $y$-axis. The standard output provides such averages. See description of parameter {\texttt{\scriptsize \textcolor{blue}{section\_xz}}} on how to get averages along $y$. |
---|
133 | \end{itemize} |
---|
134 | \end{frame} |
---|
135 | |
---|
136 | % Folie 5 |
---|
137 | \begin{frame} |
---|
138 | \frametitle{Bonus (if you finished the exercise very fast):} |
---|
139 | \begin{itemize} |
---|
140 | \item<1-> Repeat the simulation, but now for a geostrophic wind of 0.5 m s$^{-1}$ |
---|
141 | |
---|
142 | (Consider the wind direction!) |
---|
143 | \item<1-> The resulting flow will be quite similar to the flow over an arctic lead |
---|
144 | \end{itemize} |
---|
145 | \begin{columns} |
---|
146 | \begin{column}{8cm} |
---|
147 | \includegraphics[angle=0,width=0.95\textwidth]{exercise_interface_figures/arctic_lead_nasa_2013.jpg} |
---|
148 | \end{column} |
---|
149 | \begin{column}{3cm} |
---|
150 | \tiny |
---|
151 | \vspace{-4.8cm} |
---|
152 | $\Leftarrow$ Image curtesy: NASA, 2013 |
---|
153 | \end{column} |
---|
154 | \end{columns} |
---|
155 | \end{frame} |
---|
156 | |
---|
157 | \bgroup |
---|
158 | \setbeamercolor{background canvas}{bg=white} |
---|
159 | \begin{frame}[plain,noframenumbering]{} |
---|
160 | \end{frame} |
---|
161 | \egroup |
---|
162 | |
---|
163 | % Folie 6 |
---|
164 | \section{Results \quad \, } |
---|
165 | \subsection{Results} |
---|
166 | |
---|
167 | % Folie 7 |
---|
168 | \begin{frame} |
---|
169 | \frametitle{xy cross-sections: vertical velocity and surface heat flux} |
---|
170 | \vspace{-0.15cm} |
---|
171 | \begin{center} |
---|
172 | \includegraphics[width=0.9\textwidth]{exercise_interface_figures/interface_shf.pdf} |
---|
173 | \end{center} |
---|
174 | \end{frame} |
---|
175 | |
---|
176 | % Folie 8 |
---|
177 | \begin{frame} |
---|
178 | \frametitle{vertical profiles: potential temperature} |
---|
179 | \begin{center} |
---|
180 | \includegraphics[angle=0,width=1.0\textwidth]{exercise_interface_figures/interface_pt.pdf} |
---|
181 | \end{center} |
---|
182 | \end{frame} |
---|
183 | |
---|
184 | % Folie 9 |
---|
185 | \begin{frame} |
---|
186 | \frametitle{xz cross-sections: vertical velocity} |
---|
187 | \vspace{-0.15cm} |
---|
188 | \begin{center} |
---|
189 | \includegraphics[angle=0,width=0.9\textwidth]{exercise_interface_figures/interface_w_av.pdf}\\ |
---|
190 | \end{center} |
---|
191 | \end{frame} |
---|
192 | |
---|
193 | % Folie 10 |
---|
194 | \begin{frame} |
---|
195 | \frametitle{vertical profiles: resolved vertical heat flux} |
---|
196 | \begin{center} |
---|
197 | \includegraphics[angle=0,width=1.0\textwidth]{exercise_interface_figures/interface_wpt_res.pdf} |
---|
198 | \end{center} |
---|
199 | \end{frame} |
---|
200 | |
---|
201 | % Folie 11 |
---|
202 | \begin{frame} |
---|
203 | \frametitle{vertical profiles: subgrid scale vertical heat flux} |
---|
204 | \begin{center} |
---|
205 | \includegraphics[angle=0,width=1.0\textwidth]{exercise_interface_figures/interface_wpt_sgs.pdf} |
---|
206 | \end{center} |
---|
207 | \end{frame} |
---|
208 | |
---|
209 | % Folie 12 |
---|
210 | \begin{frame} |
---|
211 | \frametitle{time series: potential temperature and vertical heat flux} |
---|
212 | \begin{center} |
---|
213 | \includegraphics[angle=0,width=0.85\textwidth]{exercise_interface_figures/interface_ts.pdf}\\ |
---|
214 | \end{center} |
---|
215 | \end{frame} |
---|
216 | |
---|
217 | % Folie 13 |
---|
218 | \begin{frame} |
---|
219 | \frametitle{Bonus: xz cross-sections: vertical velocity} |
---|
220 | \vspace{-0.15cm} |
---|
221 | \begin{center} |
---|
222 | \includegraphics[angle=0,width=0.9\textwidth]{exercise_interface_figures/interface_lead.pdf} |
---|
223 | \end{center} |
---|
224 | \end{frame} |
---|
225 | |
---|
226 | \end{document} |
---|