Location: Acid-Base Physiology @ 5c6d2c520a9f / BG / Notes / acid-base.tex

Author:
Soroush <ssaf006@aucklanduni.ac.nz>
Date:
2020-05-10 21:27:00+12:00
Desc:
added new sedml
Permanent Source URI:
https://models.fieldml.org/workspace/297/rawfile/5c6d2c520a9faad399fd954401d658362d25ef03/BG/Notes/acid-base.tex

\documentclass{article}
\usepackage{graphicx}
\usepackage{amsmath}
\graphicspath{{Figures/}}
\usepackage{fourier}
\usepackage{natbib}
\bibliographystyle{unsrt}
\usepackage{authblk}
\usepackage{chemformula}
\usepackage[hidelinks]{hyperref}
\hypersetup{urlcolor=cyan}
\usepackage[font={small,it}]{caption}
\usepackage[margin=1cm]{caption}
\usepackage[a4paper, total={6in, 9in}]{geometry}

\begin{document}
\author{Peter Hunter}
\affil{Auckland Bioengineering Institute}
\title{\textbf{Acid-Base Physiology as CellML Modules}}
\date{}
\maketitle

\noindent The following text is designed to go into the tutorial on CellML, OpenCOR and PMR. It may also form the basis of a review paper. 

\section*{Building multiscale models}

Much progress has been made over the last $15$ years on establishing model encoding standards (CellML, SBML, FieldML) together with model repositories (PMR, Biomodels) and simulation tools (OpenCOR, \emph{etc.}) based on those standards (refs). CellML also allows a modular approach to model building via imports of separately defined component modules, facilitated by annotation of model variables and parameters so that imported components can be inserted automatically into the composite model (ref). In this section we show how composite multiscale models can be constructed from CellML and FieldML models. We first deal with lumped parameter models based on ODEs and algebraic equations that can be encoded in CellML. The CellML models can be extended to include spatially distributed FieldML models where these are needed.\\

\noindent First, some definitions:\\

\noindent\textit{\textbf{Compartments}} are well mixed regions of cells, tissues or organs that represent either specific locations or more generic locations that can exist in multiple parts of the body. \textit{\textbf{Variables}} are quantities that have units and fixed or variable numeric values and can be associated with compartments. \textit{\textbf{Parameters}} are variables with fixed values. \textit{\textbf{Models}} contain one or more equations in these variables and can stand alone or be associated with one or more compartments. Note that CellML models require compartments, variables and equations. Until filled with variables and equations, compartments are just empty containers.\\

\noindent Note that the term `well-mixed' signifies that to an acceptable approximation in the model, the variables within a compartment are distributed homogeneously throughout that compartment. Of course no biological region is perfectly homogeneous and, if necessary, a well-mixed compartment can be replaced by more than one compartment or by a spatially distributed model where concentration gradients are governed by diffusion equations. However, it is often useful to start with a simple lumped parameter compartment model in order to understand basic mechanisms.\\

\noindent \textit{Modularity} is an important aspect of multiscale modelling and we create composite models by importing other more basic models, as we will demonstrate. \textit{Model reduction} can also be used to simplify a model for computational efficiency. But \textit{model expansion} is equally important - there may be situations where more biophysical detail is called for under certain conditions, or spatial fields need to be considered as part of a model.\\

\noindent \textit{Reactions} are the binding and unbinding of chemical species (almost always catalysed by an enzyme) and are always reversible under the appropriate conditions. When models include reactions, it is usually with equations that express mass conservation of chemical species and use either first order mass action kinetics or a steady state version in the form of an equilibrium equation. Note that it is often useful in diagrams to show the transfer of mass, energy or information across compartment boundaries and we use arrows to indicate the movement of variables across compartment boundaries, sometimes with the \textit{flux} (time-varying flow of a variable) written beside the arrow. The direction of these arrows is just for explanatory reasons to show normal directions of movement - the fluxes could be in the reverse direction if conditions allowed it.\\

\noindent The formulation of a model and its encoding in CellML and/or FieldML is a completely separate exercise from the numerical solution of that model. Once a model is formulated it can be solved by any solver that can handle the syntax of the model encoding languages. The verification of the solver is an important but separate issue.\\

\noindent We demonstrate these concepts and how they are supported by CellML and FieldML with the following example of acid-base physiology and the control of pH. Note that some of these models use molecular components while others are treated in a more empirical `black-box' fashion - possibly to be replaced at a later stage with a more mechanistic model when the physiological data is available to justify this or the questions being asked of the model require this level of detail.   

\section*{Acid-base physiology}

Oxidative metabolism in tissue provides the bulk of the body's energy currency (ATP) by oxidising carbohydrates and fats to carbon dioxide and water. To get rid of this metabolic waste product, \ch{CO2} is transferred from the tissues to the lungs via the blood, primarily in the form of bicarbonate (\ch{HCO3^-}) and carried primarily by red blood cells (RBCs). The formation of \ch{HCO3^-} from \ch{CO2} via the  \ch{CO2} hydration reaction is catalysed by carbonic anhydrase (CA):

\begin{center}
  \ch{CO2 + H2O <->[ CA ] H+ + HCO3^-}
\end{center}

\noindent This generates large quantities of \ch{H+} in the blood. Buffering this \ch{H+} - \emph{i.e.} controlling pH within the narrow range compatible with life \footnote{Binding proteins are heavily influenced by the dissociation of acidic or basic amino acids, especially histodine, and are therefore dependent on ambient pH. Intracellular metabolism is also influenced by pH - for example, glycolysis and lactic acid formation are inhibited by acidosis (and, conversely, stimulated by alkalosis). \ch{K+} channels in a wide variety of cells are inactivated by acidosis. \ch{H+} affects smooth muscle in blood vessels (vasoconstriction in pulmonary arterioles and vasodilation in the systemic circulation) and reduces \ch{Ca^{2+}} binding by plasma proteins.} - requires multiple weak acids and bases to be present in blood [1]. Understanding acid-base physiology therefore requires models of several organs: the muscles (as the major source of metabolism and hence metabolic waste products), the lungs (to exhale \ch{CO2}) with the respiratory centre in the mid-brain to control respiration rate, the stomach where acid is excreted to maintain a low pH environment hostile to bacteria, the pancreas (where \ch{HCO3^-} is excreted to neutralise stomach acid passed in the chime to the small intestines), the kidneys (to recover filtered \ch{HCO3^-}, generate new \ch{HCO3^-} and excrete filtered buffers) and the arterial, capillary and venous components of the circulation system (each as homogeneous systems containing blood plasma and RBCs). These six organs or organ systems are illustrated, with their inputs and outputs, in Figure \ref{fig:1}. \\

\noindent We follow the physiological approach described in the Boron and Boulpaep textbook on Medical Physiology \cite{boron2016medical}, the models described in Occhipinti and Boron \cite{occhipinti2015mathematical} together with earlier publications from the Boron group in Cleveland \cite{boron2004regulation,boron2010sharpey,boron1976active,boron1976intracellular,somersalo2012reaction,occhipinti2014evidence}, and models from the Vaughan-Jones and Swietach group in Oxford \cite{villafuerte2014facilitation,hulikova2014rapid,swietach2014pumping,swietach2003modelling,virkki2002functional}.

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig1.pdf}
    \caption{A whole body model containing organ level models for ion or gas exchange in the kidneys, muscles, lungs (with respiratory control), stomach, pancreas and systemic circulation. }
    \label{fig:1}
  \end{center}
\end{figure}

\noindent We first describe some basic equations that will be used in a number of the models below. The first deals with  hydration which, when catalysed by carbonic anhydrase, occurs extremely rapidly with an equilibrium constant 

\begin{equation*}
  K_{\ch{CO2}}=\dfrac{[\ch{H+}][\ch{HCO3-}]}{[\ch{CO2}]}
\end{equation*}

\noindent It is not clear whether the \ch{CO2}/\ch{HCO3-} buffering system can be assumed to be in equilibrium, since during rapid changes in pH it may not be, but we make this assumption here and examine the consequences of that assumption later. Taking logs and using Henry's law, $[\ch{CO2}]=s.p_{\ch{CO2}}$, where $s$ is the solubility coefficient for \ch{CO2} in the relevant fluid, yields the Henderson-Hasselbalch equation for the \ch{CO2}/\ch{HCO3-} buffer system:

\begin{equation}
  pH=pK+\log{\dfrac{[\ch{HCO3-}]}{s.p_{\ch{CO2}}}}
\end{equation}

\noindent where $pH=-\log_{10}{[\ch{H+}]}$, $pK=-\log_{10}{K}$.\footnote{For arterial blood $pK\approx 6.1$, $\ch{HCO3-}\approx 24 \mathrm{mM}$, $s=0.03\mathrm{mM/mmHg}$ and $p_{\ch{CO2}}=40\mathrm{mmHg}$, giving $pH\approx 7.4$.}\\

\noindent Next, the buffering of \ch{H+} by weak acids and weak bases occurs via two types of reaction\footnote{Note that an acid or base (alkali) is any chemical substance that can donate or accept an \ch{H+}, respectively \cite{boron2016medical}.}. The first is the dissociation of cationic weak acid (\ch{BH+}) to weak base (\ch{B}), governed by the reaction

\begin{center}
  \ch{BH+ <-> B + H^+},\qquad \emph{e.g.}\quad\ch{NH4+ <-> NH3 + H^+}
\end{center}

\noindent Assuming a rapid equilibration, the governing equation for the model is 

\begin{equation}
  K_{\ch{B}}=\dfrac{[\ch{B}][\ch{H+}]}{[\ch{BH+}]}
  \label{eqn:2}
\end{equation}

\noindent Whether these buffers are sufficiently close to equilibrium to make this assumption is debatable [ref].\\

\noindent Similarly, dissociation of uncharged weak acid (\ch{HA}) to anionic weak base (\ch{A-}) is governed by the reaction

\begin{center}
  \ch{HA <-> A- + H+},\qquad \emph{e.g.}\quad\ch{HCO3- <-> OH- + CO2}
\end{center}

\noindent and at equilibrium

\begin{equation}
  K_{\ch{A}}=\dfrac{[\ch{A-}][\ch{H+}]}{[\ch{HA}]}
\end{equation}

\noindent These reactions hold on both sides of a cell membrane, with the same equilibrium constants on both sides. The neutral species (\ch{B} and \ch{HA}) move freely down their concentration gradients to equilibrate at equal concentration on either side of the membrane, as indicated in Figure \ref{fig:2}. The charged species (\ch{BH+}, \ch{A-} and \ch{H+}), on the other hand, move down their concentration gradients (within a membrane protein channel) until equilibrating with their Nernst potentials,

\begin{equation}
  E_{\ch{BH}}=\dfrac{RT}{F}\ln{\dfrac{[\ch{BH+}]_o}{[\ch{BH+}]_i}}, \qquad E_{\ch{A}}=\dfrac{RT}{F}\ln{\dfrac{[\ch{A-}]_o}{[\ch{A-}]_i}}, \qquad E_{\ch{H}}=\dfrac{RT}{F}\ln{\dfrac{[\ch{H+}]_o}{[\ch{H+}]_i}}.\footnote{$R\approx 8.4 \mathrm{J.mol^{-1}.K^{-1}}$ and $F\approx 0.96e5 \mathrm{C.mol^{-1}}$, therefore at $T=298\mathrm{K} (25\mathrm{C})$, $RT\approx 2.5\mathrm{kJ.mol^{-1}}$ and $RT/F\approx 25\mathrm{mV}$.} 
\end{equation}

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=1]{Fig2.pdf}
    \caption{Movement of weak acids and weak bases across the cell membrane. The dotted lines indicate free movement of the uncharged species across the cell membrane. The solid lines indicate the flux of a charged species for which thermally driven diffusion equilibrates the concentration difference with the electrostatic charge difference (the Nernst equation).}
    \label{fig:2}
  \end{center}
\end{figure}

\noindent Since the reaction \ch{BH+ <-> B + H^+} is in equilibrium on both sides of the membrane and both $K_B$ and [\ch{B}] are the same on both sides (free permeation of the uncharged molecule), from Equation (\ref{eqn:2})

\begin{equation}
  K_B=\dfrac{[\ch{B}][\ch{H+}]_o}{[\ch{BH+}]_o}=\dfrac{[\ch{B}][\ch{H+}]_i}{[\ch{BH+}]_i}, \qquad or \qquad \dfrac{[\ch{H+}]_o}{[\ch{H+}]_i}=\dfrac{[\ch{BH+}]_o}{[\ch{BH+}]_i}
\end{equation}

\noindent and therefore

\begin{equation}
  E_{BH}=E_H.
\end{equation}

\noindent On the other hand, since the reaction \ch{HA <-> A- + H+} is in equilibrium, and $[\ch{HA}]_o=[\ch{HA}]_i=[\ch{HA}]$, now we have

\begin{equation}
  K_A=\dfrac{[\ch{A-}]_o[\ch{H+}]_o}{[\ch{HA}]}=\dfrac{[\ch{A-}]_i[\ch{H+}]_i}{[\ch{HA}]}, \qquad or \qquad \dfrac{[\ch{A-}]_o}{[\ch{A-}]_i}=\dfrac{[\ch{H+}]_i}{[\ch{H+}]_o}
\end{equation}

\noindent and therefore

\begin{equation}
  E_{A}=-E_H.
\end{equation}

\noindent There are many sources of \ch{H+} flux across a cell membrane and we list the important ones for the current analysis below. If $J_E$ is the rate of acid extrusion (generally at a metabolic cost) and $J_L$ is the rate of acid loading, the difference between them drives the time rate of change of pH in the cell:

\begin{equation}
  \dfrac{dpH_i}{dt}=\dfrac{\rho}{\beta}(J_E-J_L)
  \label{pH}
\end{equation}

\noindent (called the fundamental law of $\mathrm{pH_i}$ regulation) where $\rho \mathrm{(m^{-1})}$ is the surface to volume ratio of the cell, and $\beta \mathrm{(mM/pH\_unit)}$ is the buffering power\footnote{A buffer is any substance that tends to minimize changes in pH by reversely producing or consuming \ch{H+}. The buffering power of a solution is measured by the amount of added acid or base (per unit volume of solution) needed to decrease or increase the solution pH by one pH unit. \emph{i.e.} a buffer with a high value of $\beta$ requires a lot of additional acid or base to produce a unit change in pH. Without \ch{CO2}/\ch{HCO3-}, the buffering power of whole blood is about $25 \mathrm{mM/pH\_unit}$ (called the non-\ch{HCO3-} buffering power). $80\%$ of this non-\ch{HCO3-} buffering power is associated with the cellular components of blood \cite{boron2016medical}.}. We consider an open system (the free exchange of energy and mass - in this case \ch{CO2} - with the atmosphere) only, in which case $\beta$ is $\beta_{open}=2.3[\ch{HCO3-}]$. Note that ${\rho}/{\beta}$ has units of $\mathrm{pH\_unit.m^{-1}.mM^{-1}}$, $J_E$ and $J_L$ have units of $\mathrm{mol.s^{-1}.m^{-2}}$ (or $\mathrm{mM.s^{-1}.m}$) and ${dpH_i}/{dt}$ has units of $\mathrm{pH\_unit.s^{-1}}$.\\

\noindent For a particular cell the acid fluxes $J_E$ and $J_L$ are dependent on a range of protein exchangers, channels and pumps that reside in the cell membrane and are modelled individually. For the cells of interest here these are the acid extruding membrane transporters (NHE, NBC and NDCBE, all driven by the sodium gradient), the acid loading membrane transporters (NBCe1,2 and AE), and various  leak channels and ATP-dependent pumps (such as HKA and V-type) shown individually in Figure \ref{fig:3}.  Note that NHE, NBC and NDCBE depend on the sodium gradient which must be maintained by the ATP-dependent sodium-potassium exchange pump NCX, but since we are not tracking sodium or metabolism, that pump is not included. \\

\noindent The equations governing these exchangers and pumps are provided on the CellML model repository. Most depend on carrier-mediated mechanisms, rather than simple diffusion gradients and therefore obey Michaelis-Menten kinetics where the steady state flux is given by  

\begin{equation}
  J_E=J_{max}\dfrac{[\ch{H+}]}{K_m+[\ch{H+}]},
\end{equation}

\noindent where $J_{max}$ and $K_m$ are constants. Here we assume that these models have already been established as CellML models in PMR - see, for example, https://models.physiomeproject.org/e/236/.\\

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig3.pdf}
    \caption{Membrane proteins (channels and transporters) divided into acid extruders (on the left) and acid loaders (on the right), shown here within a composite cell model. Note that the movement of ions across the cell membrane is driven by a sodium gradient (NHE, NBC, NDCBE), a chloride gradient (AE) or a metabolically dependent process (ATP label). Each channel and transporter is modelled with a separate CellML model on the PMR website.}
    \label{fig:3}
  \end{center}
\end{figure}

\noindent The cells of interest for the tissue level models below are a muscle cell, a renal epithelial cell, a gastric epithelial cell, a pancreatic epithelial cell, the red blood cell or RBC (treated as 3 cases: within the arterial system, within the capillary bed and within the venous system). For the tissue level models we define seven tissue compartments (see Figure \ref{fig:4}): alveoli space; renal tubule; gastric interior; pancreas interior; and arterial, capillary and venous blood plasma.\\ 

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig4.pdf}
    \caption{Cell and tissue compartments, to which variables and equations are assigned.}
    \label{fig:4}
  \end{center}
\end{figure}

\noindent Using these cell and tissue compartments, we now define \textit{\textbf{composite multicellular tissue models}} for each of the six organ-level models (kidney, muscle, lung, stomach, pancreas and vascular system). Equation (\ref{pH}) is used with appropriate transporters for each parenchymal cell in the organ or organ system tissue model. In each case the parenchymal cells for each organ connect with blood plasma (arterial, capillary or venous). We later accumulate all exchange with blood plasma into one model for the arterial blood plasma, one for capillary blood plasma and one for venous blood plasma. Each model includes the variables shown to the right associated with each compartment. The inputs and outputs for each model are shown above and below the box with an inward or outward arrow, respectively.  

\section*{Model 1: Kidney}

There are several mechanisms to be considered in this model, as shown in Figure \ref{fig:5}

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig5.pdf}
    \caption{Cellular mechanisms in the kidney: (a) \ch{HCO3-} reabsorption, (b) ammonium excretion, and (c) titratable acid formation.}
    \label{fig:5}
  \end{center}
\end{figure}

\noindent (a) One is the cellular mechanism of \textit{\ch{HCO3-} reabsorption} in the kidney. The \ch{HCO3-} filtered by the glomerulus is combined with \ch{H+} excreted from the epithelial cell (via the ATP-dependent H-pump and HKA pump, and the Na-dependent exchanger NHE) to form \ch{CO2} and water (via the carbonic anhydrase reaction in the tubule) that diffuses back into the epithelial cell to then regenerate \ch{HCO3-} in the blood (via the carbonic anhydrase reaction in the epithelial cell). The kidney reclaims virtually all filtered \ch{HCO3-}.\footnote{At $180$L of filtered blood per day with [\ch{HCO3-}]= $24$mM, this is $4.32$ moles of \ch{HCO3-} per day \cite{boron2016medical}.}\\

\noindent (b) The second is \textit{ammonium excretion}. The kidney synthesizes \ch{NH3}/\ch{NH4+} as a urinary buffer to assist with the excretion of \ch{H+}. Filtered \ch{H+} in the tubule titrates \ch{NH3} excreted from the epithelial cell following glutamine metabolism (which produces both \ch{NH4+} and \ch{OH-}, thereby also generating new \ch{HCO3-} into the blood). Conversion of the amino acid glutamine to urea and ammonia, is catalysed by glutaminase in both the liver and the kidney. Under conditions of blood acidosis, \ch{NH4+} excretion in the kidney is enhanced by up-regulating glutaminase production to increase \ch{NH3} production, and glutaminase production is correspondingly down-regulated in the liver\footnote{The liver also consumes glutamine for urea synthesis, and this is enhanced by an alkalosis-induced increase in glutaminase production in the liver.} . \\

\noindent (c) The third is \textit{titratable acid formation}. When the excreted \ch{H+} combines with filtered buffers other than \ch{HCO3-} or ammonia, the outcome is the urinary loss of uncharged weak acid \ch{HA} and the generation of new \ch{HCO3-} into the blood\footnote{Note that about $70$ mmole/day of new \ch{HCO3-} is needed to neutralise the $\sim70$ mmole/day of non-volatile acid - comprised of $\sim40$ mmol/day of non-volatile acid produced (in addition to \ch{CO2}) by metabolism, $\sim20$ mmol/day of dietary strong acid, and the intestinal loss of $\sim10$ mmol/day of \ch{HCO3-}. There must also be a corresponding excretion of $\sim70$ mmol/day of \ch{H+} into the urine \cite{occhipinti2015mathematical}.}. \\

\noindent In formulating the equations for the kidney model, we assume that every \ch{HCO3-} that is transported out of the epithelial cell to the blood plasma is immediately replaced with a \ch{H+} from the \ch{CO2} hydration reaction - \emph{i.e.} there is no shortage of carbonic anhydrase and there is no shortage of \ch{CO2} available to feed the reaction. This \ch{CO2} is also assumed to diffuse with no delay from the renal tubule. Note that we are assuming the cell to be a well-stirred system. In reality there may be significant gradients of [\ch{H+}] and [\ch{HCO3-}] particularly adjacent to transport proteins that influence the trans-membrane fluxes, but here we neglect the possible influence of unstirred layers.\\

\noindent Using sub- or superscripts \textit{pt} for renal proximal tubule, \textit{ec} for renal epithelial cell and \textit{cb} for peritubular capillary blood to indicate which compartment a variable belongs to, the equations for this model are:

\subsection*{Renal proximal tubule}

\begin{equation}
  \dfrac{dpH_{pt}}{dt}=\dfrac{-\rho}{\beta_{\ch{CO2}}}(-J_{\ch{HCO3-}}^{pt}+J_{\ch{H+}}^{NHE}+J_{\ch{H+}}^{Vtype}+J_{\ch{H+}}^{hyd})
  \label{pH-pt}
\end{equation}

\begin{equation}
  [\ch{H+}]_{pt}=10^{-pH_{pt}}
  \label{H-pt}
\end{equation}

\noindent Note that we are assuming that every \ch{H+} transported to the renal tubule from the epithelial cell immediately combines with a filtered \ch{HCO3-} to produce water and \ch{CO2}, which diffuses back to the epithelial cell to continue the cycle. In reality there may be pH gradients along the tubule created by diffusion or advection by urinary flow.\\

\noindent With [\ch{H+}] now calculated on both sides of the apical (tubule-epithelial) membrane, the Nernst potential $E_H$ can be calculated and therefore the ratio of \ch{NH4+} and \ch{OH-} concentrations on either side of the membrane:   

\begin{equation}
E_{\ch{H}}=\dfrac{RT}{F}\ln{\dfrac{[\ch{H+}]_{pt}}{[\ch{H+}]_{ec}}}
  \label{}
\end{equation}

\begin{equation}
\dfrac{RT}{F}\ln{\dfrac{[\ch{NH4+}]_{pt}}{[\ch{NH4+}]_{ec}}}=E_{\ch{H}}
  \label{}
\end{equation}

\begin{equation}
\dfrac{RT}{F}\ln{\dfrac{[\ch{OH-}]_{pt}}{[\ch{OH-}]_{ec}}}=-E_{\ch{H}}
  \label{}
\end{equation}

\subsection*{Renal epithelial cell}

\begin{equation}
  \dfrac{dpH_{ec}}{dt}=\dfrac{-\rho}{\beta}(-J_{\ch{H+}}^{NHE}-J_{\ch{H+}}^{Vtype}+3.J_{\ch{HCO3-}}^{NBC}+J_{\ch{H+}}^{hyd}+J_{\ch{HCO3-}}^{leak}+J_{\ch{H+}}^{source})
  \label{pH-ec}
\end{equation}

\begin{equation}
  [\ch{H+}]_{ec}=10^{-pH_{ec}}
  \label{H-ec}
\end{equation}

\noindent Note that the flux terms $J$ in Equation \ref{pH-ec} are positive in the direction of the arrows in Figure \ref{fig:5} - \emph{i.e.} a positive flux of \ch{H+} from the epithelial cell to the renal tubule and a positive flux of \ch{HCO3-} from the epithelial cell to the capillary. The factor of 3 for the NBC transporter reflects the transfer of 3\ch{HCO3-}  ions for every one \ch{Na+}. The term $J_{\ch{H+}}^{source}$ includes all sources of \ch{H+} production within the cell. Note that $p_{\ch{CO2}}$ is constant across all three renal compartments.

\subsection*{Arterial blood plasma}

\begin{equation}
  \dfrac{dpH_{cb}}{dt}=\dfrac{-\rho}{\beta}(-3.J_{\ch{HCO3-}}^{NBC}+J_{\ch{H+}}^{hyd}-J_{\ch{HCO3-}}^{leak}+J_{\ch{HCO3-}}^{sink})
  \label{pH-cb}
\end{equation}

\noindent The bicarbonate sink term in this equation is considered later when we model \ch{CO2} and \ch{HCO3-} exchange with the RBCs.

\section*{Model 2: Muscle}

\subsection*{Myocyte}

\begin{equation}
  \dfrac{dpH_{myo}}{dt}=\dfrac{\rho}{\beta}(3.J_{\ch{HCO3-}}^{NBC}+J_{\ch{HCO3-}}^{AE}+J_{\ch{HCO3-}}^{leak})
  \label{pH-myo}
\end{equation}

\subsection*{Capillary blood plasma}

\begin{equation}
  \dfrac{dpH_{cb}}{dt}=\dfrac{\rho}{\beta}(3.J_{\ch{HCO3-}}^{NBC}+J_{\ch{HCO3-}}^{AE}+J_{\ch{HCO3-}}^{leak}-J_{\ch{HCO3-}}^{cb-sink})
  \label{pH-blood}
\end{equation}

\noindent Metabolic activity in muscle produces \ch{CO2} which diffuses across the cell membranes to the capillary blood, or the \ch{CO2} is converted to bicarbonate and actively transported, as illustrated in Figure \ref{fig:6}.

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig6.pdf}
    \caption{The release of \ch{CO2} from metabolic activity in muscle into the blood stream.}
    \label{fig:6}
  \end{center}
\end{figure}

\noindent The bicarbonate sink term in this equation is considered later when we model \ch{CO2} and \ch{HCO3-} exchange with the RBCs.


\section*{Model 3: Lungs \& Respiratory Control}

\noindent There are several ways to develop a model for gas exchange between the pulmonary capillaries and alveolar air. One approach is to develop a detailed biophysical model that takes into account the anatomy and material properties of all the cells and tissues that influence the diffusion of \ch{O2} and \ch{CO2} (see \cite{boron2016medical} for a detailed discussion of this). Another, more empirical, approach is to represent the volume rate of transport of \ch{CO2} across the lung endothelium from capillary to alveolar space\footnote{A $70$ Kg person on a typical western diet produces $\sim15$ mol/day or $0.66$ Kg/day of \ch{CO2} from metabolism.} with Fick's law using a proportionality constant that takes into account the cross-sectional area and length of the diffusion path and the molecular weight of the gas:

\begin{equation}
  \dot{V}_{\ch{CO2}}=k\dfrac{A.s}{h\sqrt{MW}}(p^a_{\ch{CO2}}-p^c_{\ch{CO2}})
\end{equation}

\noindent where $A$ ($\mathrm{m^2}$) is the surface area for gas exchange, $h$ (m) is the distance between the alveolar space and the blood plasma, $s$ ($0.03$ mM/mmHg or $0.03$ $\mathrm{mol.m^{-3}.mmHg^{-1}}$) is the solubility of \ch{CO2} in the tissue, $MW$ is molecular weight (44 for \ch{CO2}) and $k$ is a proportionality constant \cite{boron2016medical}. $p^a_{\ch{CO2}}$ and $p^c_{\ch{CO2}}$ are the alveolar and capillary partial pressures of \ch{CO2} (mmHg).\\

\noindent The nerves involved in respiratory control are shown in Figure \ref{fig:1} by green dashed lines. Blood gases (\ch{CO2}, \ch{O2} and pH) are sensed peripherally by glomus cells in the carotid and aortic bodies at the bifurcation of each of the common carotid arteries and in the aortic arch, respectively, and send feedback signals to the medulla via afferents of the glossopharyngeal nerve (CN IX) and the vagus nerve (CN X), respectively. They respond to hypoxia, hypercapnia and acidosis. Other so-called central chemoreceptors are located within the brain parenchyma in brain extracellular fluid behind the blood-brain barrier. These appear to be responsible for 65-80\% of the integrated response but with a slower time constant than the faster acting peripheral receptors. The end result of this feedback is modulation of a respiratory rhythm generator in the medulla that controls the inspiratory phase of breathing via the phrenic nerve output to the respiratory muscles. Lung movement is mainly controlled by the diaphragm, which is excited during inspiration by a signal from the phrenic nerve. It recoils during expiration which is usually passive in mammals, although forced expiration can be induced by the abdominal muscles. The resistance to flow in the upper airway and movements of the tongue are affected by signals from the hypoglossal nerve. The vagus nerve is an important bundle of nerves that carries signals to and from the brainstem. Signals from chemoreceptors and baroreceptors in the aorta as well as signals from stretch receptors in the lungs are transferred via the vagus nerve to the brainstem, and signals that act to slow the heart rate are transferred by the vagus nerve to the heart. Chemoreceptors and baroreceptors are also located in the carotid sinus and their signals are transferred to the brainstem via the glossopharyngeal nerve. The lung itself is a complex organ that comprises of airways and blood vessels that are ‘suspended’ within a delicate network of gas exchange tissue4. The airways, pulmonary arteries, and pulmonary veins converge at the alveoli (microscopic airfilled sacs, with walls comprised of capillaries) where respiratory gas exchange occurs.

\noindent For the purposes of the present whole body acid-base model we will ignore the details of both gas exchange on the lungs and the feedback control of respiration and just define an empirical relationship between ventilation and blood gas concentrations. This is discussed in \citep{boron2016medical} and shown in Figure \ref{fig:7} as plots of total ventilation (in $\mathrm{L.min^{-1}}$) as a function of (a) $p^a_{\ch{CO2}}$ and (b) $p^a_{\ch{O2}}$.


\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig7.pdf}
    \caption{Integrated ventilatory responses to changes in (a) $p^a_{\ch{CO2}}$ and (b) $p^a_{\ch{O2}}$ (adapted from \cite{boron2016medical}).}
    \label{fig:7}
  \end{center}
\end{figure}

\section*{Model 4: Stomach}

\noindent The acidic environment in the stomach ($pH\approx2$), required to kill bacteria and to aid food breakdown, is maintained by the \ch{H+}/\ch{K+}-ATPase pump in parietal cells lining the stomach, as shown in Figure \ref{fig:8}.

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig8.pdf}
    \caption{Release of \ch{H+} via the \ch{H+}/\ch{K+}-ATPase in parietal cells of the stomach.}
    \label{fig:8}
  \end{center}
\end{figure}

\noindent The acid produced by parietal cells in the stomach has to be neutralised for chyme arriving in the duodenum. This is achieved via the release of cholecysto-kinase (CCK) from ... which stimulates the release of \ch{HCO3-} from S-cells in the pancreas.

\section*{Model 5: Pancreas}

Pancreas

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig9.pdf}
    \caption{Release of \ch{HCO3-} via the \ch{HCO3-}/\ch{Cl-} exchanger in S-cells of the pancreas.}
    \label{fig:9}
  \end{center}
\end{figure}

\section*{Model 6: Blood Circulation}

\noindent We treat the arterial circulation as one homogenous compartment and the venous circulation as another separate homogenous compartment, in order to allow for the differences in arterial and venous concentrations of \ch{CO2}, \ch{HCO3-} and \ch{H+}.\\

\subsection*{Exchange of \ch{CO2} and \ch{HCO3-} between plasma and red blood cells}

\noindent The vascular transport of muscle-generated \ch{CO2} or recycled \ch{HCO3-} from the kidney depends heavily on the gas-channel mediated transport of \ch{CO2} from plasma to red blood cells where it is hydrolysed to \ch{HCO3-}, dissolved or stored as carbamino hemoglobin (${\ch{Hb}\_\ch{NH}\_\ch{COO}^-}$) via the reaction

\begin{center}
\ch{Hb\_ NH2 + CO2 <-> {Hb}\_{NH}\_{COO}^- + H+}
\end{center}

\noindent within the RBC. Assuming equilibrium,

\begin{equation}
K_H=\dfrac{[\ch{{Hb}\_{NH}\_{COO}^-}]_{rbc}.10^{-pH_{rbc}}}{[\ch{Hb\_ NH2 + CO2}]_{rbc}}
\end{equation}

\noindent Similarly in the RBC, \ch{HCO3- <-> OH- + CO2} at equilibrium gives

\begin{equation}
K_A=\dfrac{s.p_{CO2}.[\ch{OH-}]_{rbc}}{[\ch{HCO3-}]_{rbc}}
\end{equation}

\noindent And in the plasma

\begin{equation}
pH_{plasma}=pK + \log{\dfrac{[\ch{HCO3-}]_{plasma}}{s.p_{\ch{CO2}}}}
\end{equation}

\noindent As indicated in Figure \ref{fig:9}, nearly 70\% of the newly generated is carried away in the blood stream as bicarbonate (mostly in the RBC) about 20\% as carbamino haemoglobin and only 10\% in solution.\\

\noindent Note that the significance of membrane transporters such as the Rh complex and AQP1 for \ch{CO2} is controversial (RVJ ref) since diffusion delays in the unstirred layers adjacent to the membrane may be as important as the kinetics of the membrane transporters. The RBC membrane is unusual in being crammed with proteins that limit the area of bilipid membrane available for \ch{CO2} diffusion, so it is possible that membrane protein-facilitated transport may be more significant here than in other cell types (ref). We ignore these subtleties here and just assume an unimpeded rapid transfer of \ch{CO2} across the RBC membrane.\\

\noindent Note also that here we are not dealing with the Bohr effect (the enhanced release of \ch{O2} from haemoglobin through \ch{CO2} binding) or the movement of water to supply \ch{OH-} for bicarbonate production in the RBCs (and their consequent swelling) in the systemic capillaries, but both effects may be readily added to the model.

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig10.pdf}
    \caption{Exchange of \ch{CO2}, \ch{HCO3-} and \ch{H+} between parenchymal cells and plasma and between plasma and red blood cells. \ch{CO2} is transported to the RBC by diffusion (dotted line) and via membrane protein channels (Rh complex and AQP1). \ch{CO2} is stored as \ch{HCO3-}, ${\ch{Hb}\_\ch{NH}\_\ch{COO}^-}$ or in solution. }
    \label{fig:10}
  \end{center}
\end{figure}

\section*{Composite Model}

\begin{figure}[ht]
  \begin{center}
    \includegraphics[scale=0.5]{Fig11.pdf}
    \caption{Block diagram showing how models relate to each other.}
    \label{fig:11}
  \end{center}
\end{figure}

\bibliography{acid-base}
\end{document}