\documentclass[11pt,reqno]{article}
\usepackage{graphicx}
\usepackage{xspace}
\usepackage{doublespace}
\usepackage{calc,ifthen}
\usepackage{version}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{lscape}
\usepackage[raggedright,figtopcap,TABTOPCAP,tight]{subfigure}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{amsmath_jsb}
\usepackage[notcite,saferef,notref]{saferef_jsb}
\usepackage{url_jsb}
\usepackage{float_jsb}
\usepackage{variables_jsb2}
\usepackage{jsb}
\headheight 0.in %added 1/25/90
\headsep 0.in %added 1/25/90
\textheight 9.in %from 8.in before 1/25/90
\textwidth 6.46in
\oddsidemargin 0.02in
\evensidemargin 0.02in
\parskip 0.6ex


\setstretch{1.2}
\renewcommand{\arraystretch}{1.2}
\begin{document}

%From SRD final report
\include{JSB_definitions.1999-09-02}

\excludeversion{test}
\excludeversion{comment}

\setlength{\topmargin}{-0.5in}
\setlength{\headsep}{0.5in}
\pagestyle{fancy}
\lhead{\textsc{PeGn624a}}
\chead{Compositional Modeling - Application to Enhanced Oil Recovery }
\rhead{Spring 2009}
\lfoot{}
\cfoot{\thepage\ of \pageref{LastPage}}
\rfoot{}

%========  v TitlePage v =======================
{\large\textbf{\textsc{PeGn624} Homework \# 10}}
\begin{itemize}
\item Assigned: 2009-02-06
\item Due: 2009-02-13
\end{itemize}


%========  v Definitions v =======================

\refname{figure}{Figure}{Figures}
\refname[Fig]{figure}{Fig.}{Figs.}
\refname[Figure]{figure}{Figure}{Figures}

\refname{table}{Table}{Tables}
\refname[Tab]{table}{Table}{Tables}
\refname[Table]{table}{Table}{Tables}

\refname{section}{Section}{Sections}
\refname[Sec]{section}{Sec.}{Secs.}
\refname[Section]{section}{Section}{Sections}

\refname{equation}{Eq.}{Eqs.}
\refname[Eq]{equation}{Eq.}{Eqs.}
\refname[Equation]{equation}{Equation}{Equations}

\newcommand{\XX}{\textsf{X}}
\newcommand{\fug}{\mathfrak{f}}
\newcommand{\ff}{\textsf{f}}
\newcommand{\liq}{\textsc{l}}
\newcommand{\vap}{\textsc{v}}

\newcolumntype{R}{>{$}r<{$}}
\newcolumntype{C}{>{$}c<{$}}

%========  v Main Paper v =======================

\section{Question 1: Expansion }

The primary variables are $P_o$, $S_o$, $T$.
When $T<T_s$, $S_g=0$ and $T_s$ is used as the fourth primary variable.
When $T\geq T_s$, $S_g$ is used as the fourth primary variable.

\subsection{Part (a): Water Equation}
\Eqref{water} represents the left-hand-side of the water equation.  
Expand in terms of the primary variables for a 1D problem.
Collect terms for $P_o^{n+1}$ and terms which do not contain $P_o^{n+1}$.
\begin{equation}
  \Delta \left( T_w^n\right)
\end{equation}

\begin{LongVariables}{Variables used in this document}{variables}{4in}
A & \units{L}^2 & Area \\
A & \units{varies} & Generic variable \\
\end{LongVariables}

\section{Question 2: Blank Matrix}



\end{document}






