Commits

Matthew Turk committed 9c0a5b6

Starting to add derived quantity info

Comments (0)

Files changed (2)

scripts/derived_quantity_access.py

+from yt.mods import *
+
+pf = load("IsolatedGalaxy/galaxy0030/galaxy0030")
+sp = pf.h.sphere("max", (100.0, 'kpc'))
+
+print sp.quantities.keys()
+print sp.quantities["CenterOfMass"]()
 \end{enumerate}
 \end{frame}
 
+\bigsimple{Derived Quantites}
+
+\defslide{Derived Quantity}{
+Reduction of a field, combination of fields, or other information to a fixed
+number of outputs.  In practice, this is any non-field property computation.
+These can be computed on \textit{any} data object.
+}
+
+\begin{frame}[fragile, t]{Accessing Derived Quantities}
+\tiny
+<<d['scripts/derived_quantity_access.py|fn|pyg|l']>>
+\end{frame}
+
+\begin{frame}[fragile, t]{Accessing Derived Quantities}
+\tiny
+<<d['scripts/derived_quantity_access.py|fn|py|pyg|l']>>
+\end{frame}
+
+\begin{frame}[t]{Example Derived Quantities}
+\smfont{}
+\begin{center}
+\begin{tabular}{l|p{2.5in}}
+\textt{TotalMass} & Mass of cells plus particles \\[9pt]
+\texttt{CenterOfMass} & \\[9pt]
+\end{tabular}
+\end{center}
+\end{frame}
+
 \end{document}