\documentclass[12pt]{beamer}
\input{BEAMERoptions.tex}

% ----- Packages and libraries ----- %
\usepackage[T1]{fontenc} 				% cut/paste and search with "_"
\usepackage[english]{babel}
\usepackage{graphics}
\usepackage{verbatim}
\usepackage{times}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{subfigure}
\usepackage{amssymb}
\usepackage{amsmath, amsfonts}
\usepackage{amsthm}
\usepackage{color}
\usepackage{alltt}
\usepackage{anyfontsize}
\usepackage{tikz}
   \usetikzlibrary{shapes, arrows, shadows}

\newcommand{\Frametitle}[1]{\frametitle{\includegraphics[width=0.25in]{esp_logo.png}
      \hspace{0.05in} #1}}

\newcommand{\FrameTitle}[1]{\frametitle{\includegraphics[width=0.3in]{caps_logo.png}
      \hspace{0.05in} #1}}

\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]

%============================
% command to repeate a ~ n-times
%============================
\newcount\myloopcounter

\newcommand{\spaces}[1][10]{%
  \myloopcounter0% initialize the loop counter
  \loop\ifnum\myloopcounter < #1 % Test if the loop counter is < #1
  ~%
  \advance\myloopcounter by 1 %
  \repeat % start again
}
%============================

% ----- Presentation information ----- %
\title[Input, Execution and Output]{
\includegraphics[width=1.0in]{caps_logo.png}\\
Computational Aircraft Prototype Syntheses\\
AIM Programming  \\
Input, Execution and Output\\[0.02in]
For {\tt ESP} Rev 1.28}

\author[Haimes]{
Bob Haimes \\
  {\footnotesize \textcolor{blue}{bob@geocentrictech.com}~~or~~\textcolor{blue}{haimes@mit.edu} \\[-0.03in]
    Geocentric Technologies LLC}
}

\date[July 2025]{}

% ----- Document follows ----- %

\begin{document}

\begin{frame}
\vspace{-0.1in}
  \titlepage
\end{frame}

\begin{frame}
\FrameTitle{Exercise: An AIM that Executes An Analysis}

Build an AIM ({\tt theAIM}) for the simple analysis: {\tt tankCalc}
\begin{itemize}
\item Review the input requirements for the analysis (next page)
\item Determine what outputs you wish to expose and how they need to be retrieved
\item Map out which AIM functions will be responsible for declaring the variables and filling them
\item Code it up!
\item {\it Make} and other ancillary files provided
\item Hints:\\Look at the following utility functions ({\it lectures/session08.pdf}):
{\footnotesize
\begin{itemize}
\item {\tt aim\_file}
\item {\tt aim\_system}
\item {\tt aim\_fopen}
\end{itemize}}
\end{itemize}
  
 \end{frame}
 
 \begin{frame}
\FrameTitle{Exercise: Create an AIM that does something}
 
\begin{block}{The simple analysis: {\tt tankCalc}}
Computes a fuel tank's mass given densities and a triangulation
\begin{itemize}
\item Input file format -- ASCII
\begin{itemize}
\item An Integer -- 0
\item 2 doubles -- wall density ($\frac{\tt mass}{\tt area}$) and fuel
  density ($\frac{\tt mass}{\tt volume}$)
 \vspace{0.015in}
\item 9 floating point numbers -- 3 coordinates for 3 points for a triangle\\
There may be as many triangles as necessary, which should represent a closed volume\\
See {\footnotesize {\tt tankCalc.in}} for an example
\end{itemize}
\item Output file format -- ASCII
\begin{itemize}
\item 3 floating point numbers on a single line
\item These represent the area, volume and mass of the fuel tank\\
See {\footnotesize {\tt tankCalc.out}} for an example
\end{itemize}
\item Command-line execution: {\footnotesize {\tt tankCalc inFile outFile}}
\end{itemize}
\end{block}
  
 \end{frame}


\end{document}

