Simulations of AGN feedback in galaxy clusters and groups
Ewald Puchwein
There is compelling evidence that black holes (BHs) in cluster centers vigorously interact with their surroundings, indicating that any realistic model of cluster formation needs to account for these processes. Here we use high-resolution cosmological simulations of a large cluster and group sample to study how BHs affect their host systems. We focus on two specific properties, the halo gas fraction and the X--ray luminosity-temperature scaling relation, both of which are notoriously difficult to reproduce in self-consistent hydrodynamical simulations. We show that BH feedback can solve both of these issues, bringing them in excellent agreement with observations, without alluding to the `cooling only' solution that produces unphysically bright central galaxies.
aipcheck.tex
%
% $Id: aipcheck.tex,v 1.9 2005/12/01 16:16:27 frank Exp $
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Testing for potential problems with this class
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newif\ifproblem
\newif\ifobservation
\newif\iftimesok

\makeatletter
\def\IfStandaloneCheck{\def\next{aipcheck}
  \edef\currjob{\jobname}
  \edef\next{\meaning\next}
  \edef\currjob{\meaning\currjob}
  \ifx\currjob\next
    \expandafter\@firstoftwo
  \else
    \expandafter\@secondoftwo
  \fi
}
\makeatother

\typeout{***********************************************}
\typeout{*}
\typeout{* Testing if all files required for the aipproc}
\typeout{* class are available ...}
\typeout{*}
\typeout{***********************************************}

\typeout{*}
\typeout{* Looking for LaTeX2e ... }
\ifx\documentclass\undefined
 \typeout{*}
 \typeout{* Sorry this is a fatal error:}
 \typeout{*}
 \typeout{* The aipproc class can only be used with LaTeX2e which is}
 \typeout{* the standard LaTeX since 1994!}
 \typeout{*}
 \typeout{* Please make sure that your version of LaTeX is up-to-date}
 \typeout{* before attempting to use this class.}
 \typeout{*}
 \expandafter\stop
\else
 \typeout{* ... ok }
\fi


\def\next#1/#2/#3\next{#1#2}
\typeout{*}
\typeout{* Testing that LaTeX2e is not too old ... }
\ifnum\expandafter\next\fmtversion\next<199612 \relax
 \typeout{* ... what a vintage! }
 \typeout{*}
 \typeout{* Sorry this is a fatal error:}
 \typeout{*}
 \typeout{* The aipproc class can only be used with a recent version}
 \typeout{* of LaTeX2e. Your version is dated \fmtversion\space --- but}
 \typeout{* at least the 1996/12/01 version is required!}
 \typeout{*}
 \typeout{* Please make sure that your version of LaTeX is up-to-date}
 \typeout{* before attempting to use this class.}
 \typeout{*}
 \expandafter\stop
\else
 \ifnum\expandafter\next\fmtversion\next<199806 \relax
   \typeout{* ... probably ok }
   \typeout{*}
   \typeout{* Your version of LaTeX2e is quite old --- the aipproc class}
   \typeout{* hasn't been tested with your release.}
   \typeout{*}
   \typeout{* We believe that it will probably work, but if you encounter}
   \typeout{* problems you will need upgrade your installation.}
   \typeout{*}
   \typein{* Type <return> to continue ...}
   \problemtrue
 \else
   \typeout{* ... ok }
 \fi
\fi


\typeout{*}
\typeout{* Looking for aipproc.cls ... }
\IfFileExists{aipproc.cls}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* Before you can use the aipproc class you have to unpack}
     \typeout{* it from the documented source.}
     \typeout{*}
     \typeout{* Run LaTeX on the file 'aipproc.ins', e.g.,}
     \typeout{*}
     \typeout{* \space\space latex aipproc.ins}
     \typeout{*}
     \typeout{* or whatever is necessary on your installation to process}
     \typeout{* a file with LaTeX. This should unpack a number of files for you:}
     \typeout{*}
     \typeout{* aipproc.cls \space and \space aip-*.clo}
     \typeout{*}
     \typeout{* After that retry processing this guide.}
     \typeout{*}
     \stop
}

\typeout{*}
\typeout{* Looking for aipxfm.sty ... }
\IfFileExists{aipxfm.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The aipxfm.sty file which is part of the aipproc distribution}
     \typeout{* must be installed in a directory which is searched by LaTeX.}
     \typeout{*}
     \typeout{* Please install this file and retry.}
     \typeout{*}
     \stop
}

\typeout{*}
\typeout{* Looking for aip-8s.clo ... }
\IfFileExists{aip-8s.clo}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The aip-8s.clo file which is part of the aipproc distribution}
     \typeout{* must be installed in a directory which is searched by LaTeX.}
     \typeout{*}
     \typeout{* Please install this file and retry.}
     \typeout{*}
     \stop
}

\typeout{*}
\typeout{* Looking for aip-8d.clo ... }
\IfFileExists{aip-8d.clo}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The aip-8d.clo file which is part of the aipproc distribution}
     \typeout{* must be installed in a directory which is searched by LaTeX.}
     \typeout{*}
     \typeout{* Please install this file and retry.}
     \typeout{*}
     \stop
}


\typeout{*}
\typeout{* Looking for aip-6s.clo ... }
\IfFileExists{aip-6s.clo}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The aip-6s.clo file which is part of the aipproc distribution}
     \typeout{* must be installed in a directory which is searched by LaTeX.}
     \typeout{*}
     \typeout{* Please install this file and retry.}
     \typeout{*}
     \stop
}


\iffalse
\typeout{*}
\typeout{* Looking for aip-arlo.clo ... }
\IfFileExists{aip-arlo.clo}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The aip-arlo.clo file which is part of the aipproc distribution}
     \typeout{* must be installed in a directory which is searched by LaTeX.}
     \typeout{*}
     \typeout{* Please install this file and retry.}
     \typeout{*}
     \stop
}
\fi

\typeout{*}
\typeout{* Looking for fixltx2e.sty ... }
\IfFileExists{fixltx2e.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found, trying fix2col.sty instead ... }
     \typeout{*}
     \IfFileExists{fix2col.sty}
         {
          \typeout{* ... ok }
         }
         {
          \typeout{* ... not found! }
          \typeout{*}
          \typeout{* Sorry this is a fatal error:}
          \typeout{*}
          \typeout{* Your LaTeX distribution contains neither fixltx2e.sty}
          \typeout{* nor fix2col.sty.}
          \typeout{*}
          \typeout{* This means that it is either too old or incompletely}
          \typeout{* installed.}
          \typeout{*}
          \typeout{* fixltx2e.sty is part of the standard LaTeX distribution}
          \typeout{* since 1999; fix2col.sty is an earlier version of this}
          \typeout{* package.}
          \typeout{*}
          \typeout{* Best solution is to get the latest LaTeX distribution.}
          \typeout{* If this is impossible for you, download fix2col.sty.}
          \typeout{* You can get this software from a CTAN host.}
          \typeout{* Refer to http://www.ctan.org and search for "fix2col".}
          \typeout{*}
          \typeout{* After you have updated your LaTeX distribution}
          \typeout{* retry processing this guide.}
          \stop
     }
}

\typeout{*}
\typeout{* Looking for fontenc.sty ... }
\IfFileExists{fontenc.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The fontenc package, which is part of standard LaTeX}
     \typeout{* (base distribution) has to be installed at the site to}
     \typeout{* run the aipproc class.}
     \typeout{*}
     \typeout{* The fact that it cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* improperly.}
     \typeout{*}
     \typeout{* Please make sure that your version of LaTeX is okay}
     \typeout{* before attempting to use this class. The LaTeX distribution}
     \typeout{* contains the file "ltxcheck.tex" which can be used to}
     \typeout{* test the basic functionality and integrity of your installation.}
     \typeout{*}
     \stop
    }

\typeout{*}
\typeout{* Looking for calc.sty ... }
\IfFileExists{calc.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Sorry this is a fatal error:}
     \typeout{*}
     \typeout{* The calc package, which is part of standard LaTeX}
     \typeout{* (tool distribution) has to be installed at the site}
     \typeout{* to run the aipproc class.}
     \typeout{*}
     \typeout{* The fact that it cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts.}
     \typeout{*}
     \typeout{* Please make sure that the tools distribution of LaTeX}
     \typeout{* is installed before attempting to use this class.}
     \typeout{*}
     \typeout{* (You might be able to get calc.sty separately for your}
     \typeout{* installation if you are unable to upgrade to a recent}
     \typeout{* distribution for some reason.)}
     \typeout{*}
     \stop
    }

\typeout{*}
\typeout{* Looking for varioref.sty ... }
\IfFileExists{varioref.sty}
    {
     \typeout{* ... ok }
     \gdef\variorefoptionifavailable{varioref,}
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The varioref package, which is part of standard LaTeX}
     \typeout{* (tool distribution) is not installed at this site.}
     \typeout{*}
     \typeout{* The fact that it cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts.}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you cannot make use of the options "varioref" or "nonvarioref".}
     \typeout{*}
     \typeout{* Please also note that the aipguide.tex documentation}
     \typeout{* normally uses the "varioref" option to show its}
     \typeout{* effects (which  will now fail).}
     \typeout{*}
     \typein{* Type <return> to continue ...}
     \problemtrue
     \gdef\variorefoptionifavailable{}
     \let\vpageref\pageref
     \let\vref\ref
    }

\typeout{*}
\typeout{* Looking for times.sty ... }
\IfFileExists{times.sty}
    {
     \begingroup
% load times and forget it immediately again
       \RequirePackage{times}
       \global\expandafter\let\csname ver@times.sty\endcsname\relax    
       \long\def\next{ptm}
       \ifx\rmdefault\next
         \typeout{* ... ok }
         \gdef\psnfssproblemoption{}
         \endgroup
         \timesoktrue
       \else
         \endgroup
     \typeout{* ... obsolete! }
     \typeout{*}
     \typeout{* Serious problem detected:}
     \typeout{*}
     \typeout{* The times package, which is part of standard LaTeX}
     \typeout{* (psnfss distribution) is obsolete at this site.}
     \typeout{*}
     \typeout{* The fact that it contains incorrect code either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts with old files remaining!}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but}
     \typeout{* you have to specify the option "cmfonts" which result in}
     \typeout{* documents which are not conforming to the AIP layout specification!}
     \typeout{*}
     \typeout{* You can also try using the class in the following way:}
     \typeout{*}
     \typeout{* \space\space \string\documentclass[cmfonts]{aipproc}}
     \typeout{* \space\space \string\usepackage{times}}
     \typeout{* \space\space ...}
     \typeout{*}
     \typeout{* With luck this will result in Times Roman output but chances}
     \typeout{* are that you will get a larger number of error messages in}
     \typeout{* which case you have to remove the \string\usepackage declaration.}
     \typeout{*}
     \typein{* Type <return> to continue ...}
          \problemtrue
          \gdef\psnfssproblemoption{cmfonts}
          \def\textdegree{$^\circ$}            % used below but now
                                               % not setup
       \fi
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Serious problem detected:}
     \typeout{*}
     \typeout{* The times package, which is part of standard LaTeX}
     \typeout{* (psnfss distribution) can not be found.}
     \typeout{*}
     \typeout{* The fact that this package cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts!}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you have to specify the option "cmfonts" which result in}
     \typeout{* documents which are not conforming to the AIP layout specification!}
     \typeout{*}
     \typein{* Type <return> to continue ...}
     \problemtrue
     \gdef\psnfssproblemoption{cmfonts,}
    }

\iftimesok % don't bother testing other font options if times already
           % bad

\typeout{*}
\typeout{* Looking for t1ptm.fd or T1ptm.fd ... }
\IfFileExists{t1ptm.fd}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found, trying T1ptm.fd ... }
     \IfFileExists{T1ptm.fd}
          {
           \typeout{* ... ok }
          }
          {
           \typeout{* ... not found}
           \typeout{* Serious problem detected:}
           \typeout{*}
           \typeout{* The times package, which is part of standard LaTeX}
           \typeout{* (psnfss distribution) is available but the corresponding}
           \typeout{* .fd file (defining how to load Times Roman) is missing.}
           \typeout{*}
           \typeout{* The fact that this package is only partially installed}
           \typeout{* means that you LaTeX installation is unable to use Times}
           \typeout{* Roman fonts!}
           \typeout{*}
           \typeout{* You can use the aipproc class without this package but }
           \typeout{* you have to specify the option "cmfonts" which result in}
           \typeout{* documents which are not conforming to the AIP layout}
           \typeout{* specification!}
           \typeout{*}
           \typein{* Type <return> to continue ...}
           \problemtrue
           \timesokfalse
           \gdef\psnfssproblemoption{cmfonts,}
          }
    }

\fi


\newcommand\CheckFDFile[3]{%
  \typeout{*}
  \typeout{* Looking for #1#3.fd or #2#3.fd ... }
  \IfFileExists{#1#3.fd}
    {
     \typeout{* ... ok }
    }
    {
     \IfFileExists{#2#3.fd}
      {
       \typeout{* ... ok }
      }
      {\problemtrue
       \typeout{* ... not found! }
      }
    }
}

\iftimesok % don't bother testing other font options if Times already bad

%\CheckFDFile{ot1}{OT1}{ot1ztmcm}
%\CheckFDFile{oml}{OML}{omlztmcm}
%\CheckFDFile{oms}{OMS}{omsztmcm}
%\CheckFDFile{omx}{OMX}{omxztmcm}

\typeout{*}
\typeout{* Looking for mathptm.sty ... }
\IfFileExists{mathptm.sty}
    {
     \typeout{* ... ok }
     \CheckFDFile{ot1}{OT1}{ptmcm}
     \CheckFDFile{oml}{OML}{ptmcm}
     \CheckFDFile{oms}{OMS}{pzccm}
     \CheckFDFile{omx}{OMX}{psycm}
     \ifproblem
      \typeout{*}
      \typeout{* Problem detected:}
      \typeout{*}
      \typeout{* The mathptm package, which is part of standard LaTeX}
      \typeout{* (psnfss distribution) was found but some or all of its}
      \typeout{* support files describing which fonts to load are missing!}
      \typeout{*}
      \typeout{*}
      \typeout{* The fact that this package is only partially installed}
      \typeout{* means that the mathptm package cannot be used!}
      \typeout{*}
      \typeout{* You can use the aipproc class without this package but }
      \typeout{* you have to specify the option "nomathfonts" so that}
      \typeout{* math formulas will be typeset using Computer Modern.}
      \typeout{*}
      \typein{* Type <return> to continue ...}
      \problemtrue
      \gdef\psnfssproblemoption{nomathfonts,}
     \else
      \typeout{*}
      \typeout{* Looking for mathptmx.sty ... }
      \IfFileExists{mathptmx.sty}
       {
        \typeout{* ... ok }
        \CheckFDFile{ot1}{OT1}{ztmcm}
        \CheckFDFile{oml}{OML}{ztmcm}
        \CheckFDFile{oms}{OMS}{ztmcm}
        \CheckFDFile{omx}{OMX}{ztmcm}
        \ifproblem
          \typeout{*}
          \typeout{* Problem detected:}
          \typeout{*}
          \typeout{* The mathptmx package, which is part of standard LaTeX}
          \typeout{* (psnfss distribution) was found but some or all of its}
          \typeout{* support files describing which fonts to load are missing!}
          \typeout{*}
          \typeout{*}
          \typeout{* The fact that this package is only partially installed}
          \typeout{* means that the mathptmx package cannot be used!}
          \typeout{*}
          \typeout{* You can use the aipproc class without this package but }
          \typeout{* you have to specify the option "mathptm" (no x) so that}
          \typeout{* math formulas use the older version with upright greek letters.}
          \typeout{*}
          \typein{* Type <return> to continue ...}
          \problemtrue
          \gdef\psnfssproblemoption{mathptm,}
        \fi
       }
       {
        \typeout{* ... not found! }
        \typeout{*}
        \typeout{* Problem detected:}
        \typeout{*}
        \typeout{* The mathptmx package, which is part of standard LaTeX}
        \typeout{* (psnfss distribution) can not be found.}
        \typeout{*}
        \typeout{* This is unfortunate but not a disaster as the older}
        \typeout{* version of the package "mathptm" (no x) seems to exist.}
        \typeout{*}
        \typeout{* You can use the aipproc class without this package but }
        \typeout{* you have to specify the option "mathptm" so that}
        \typeout{* math formulas use the older version with upright greek letters.}
        \typeout{*}
        \typein{* Type <return> to continue ...}
        \problemtrue
        \gdef\psnfssproblemoption{mathptm,}
       }
      \fi
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The mathptm package, which is part of standard LaTeX}
     \typeout{* (psnfss distribution) can not be found.}
     \typeout{*}
     \typeout{* The fact that this package cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts!}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you have to specify the option "nomathfonts" so that}
     \typeout{* math formulas will be typeset using Computer Modern.}
     \typeout{*}
     \typein{* Type <return> to continue ...}
     \problemtrue
     \gdef\psnfssproblemoption{nomathfonts,}
    }

\typeout{*}
\typeout{* Looking for mathtime.sty ... }
\IfFileExists{mathtime.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* The mathime package can not be found.}
     \typeout{*}
     \typeout{* This is not a real problem but an observation,}
     \typeout{* because this package is only of interest}
     \typeout{* if you own the commerical MathTime fonts.}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you cannot use the "mathtime" option of the class.}
     \typeout{*}
     \observationtrue
    }
\typeout{*}
\typeout{* Looking for mtpro.sty ... }
\IfFileExists{mtpro.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* The mtpro package can not be found.}
     \typeout{*}
     \typeout{* This is not a real problem but an observation,}
     \typeout{* because this package is only of interest}
     \typeout{* if you own the commerical MathTime Professional fonts.}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you cannot use the "mtpro" option of the class.}
     \typeout{*}
     \observationtrue
    }
\else
\fi % iftimesok

\typeout{*}
\typeout{* Looking for graphicx.sty ... }
\IfFileExists{graphicx.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The graphics package, which is part of standard LaTeX}
     \typeout{* (graphics distribution) can not be found.}
     \typeout{*}
     \typeout{* The fact that this package cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts!}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you cannot use commands like \protect\includegraphics
                or \protect\resizebox}
     \typeout{* in this case.}
     \typeout{*}
     \typeout{* Please note that you will get a further error message below}
     \typeout{* about: "graphicx.sty not found" because the class will try}
     \typeout{* to load this package! Type return in response to that error.}
     \typeout{*}
     \typeout{* As a result the illustrations in aipguide will look strange.}
     \typeout{*}
     \typein{* Type <return> to continue ...}

     \gdef\resizebox##1##2{}
     \gdef\includegraphics{\textbf{graphics package missing:}}
     \problemtrue
    }

\typeout{*}
\typeout{* Looking for textcomp.sty ... }
\IfFileExists{textcomp.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The textcomp package, which is part of standard LaTeX}
     \typeout{* (base distribution) can not be found.}
     \typeout{*}
     \typeout{* The fact that this package cannot be found either means that}
     \typeout{* this LaTeX release is too old or that it was installed}
     \typeout{* only in parts!}
     \typeout{*}
     \typeout{* You can use the aipproc class without this package but }
     \typeout{* you will always get the error: "textcomp.sty not found"}
     \typeout{* because the class will try to load this package!}
     \typeout{* Type return in response to that error.}
     \typeout{*}
     \typein{* Type <return> to continue ...}

     \def\textdegree{$^\circ$}         % used below but now
                                       % not set up
     \problemtrue
    }


\typeout{*}
\typeout{* Looking for url.sty ... }
\IfFileExists{url.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The url package, which should be part of a good LaTeX}
     \typeout{* distribution, can not be found.}
     \typeout{*}
     \typeout{* Without this package you will not be able to use the \string\url}
     \typeout{* command. Try to download this package from a CTAN  host.}
     \typeout{* Refer to http://www.ctan.org and search for "url".}
     \typeout{*}
     \typein{* Type <return> to continue ...}

     \problemtrue
    }


\typeout{*}
\typeout{* Looking for textcase.sty ... }
\IfFileExists{textcase.sty}
    {
     \typeout{* ... ok }
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Problem detected:}
     \typeout{*}
     \typeout{* The textcase package, which should be part of a good LaTeX}
     \typeout{* distribution, can not be found.}
     \typeout{*}
     \typeout{* Without this package you should be careful not to put math}
     \typeout{* formulas into \noexpand\section headings as these headings are}
     \typeout{* converted to UPPERCASE and might spoil your formulas.}
     \typeout{* Try to download this package from a CTAN  host.}
     \typeout{* Refer to http://www.ctan.org and search for "url".}
     \typeout{*}
     \typein{* Type <return> to continue ...}

     \problemtrue
    }


\makeatletter

\typeout{*}
\typeout{* Looking for natbib.sty ... }
\IfFileExists{natbib.sty}
    {
     \IfStandaloneCheck
       {\begingroup
        \let\@listi\relax
        \let\thebibliography\@empty
        \let\bibstyle\@empty
        \RequirePackage{natbib}
        \@ifpackagelater{natbib}{1999/05/29}
          {
           \typeout{* ... ok }
          }{
           \typeout{* ... might be too old! }
           \typeout{*}
           \typeout{* Your version of the natbib package might be too}
           \typeout{* old to be usable. This class was designed to}
           \typeout{* work with the version 7.0 dated 1999/05/28}
           \typeout{*}
           \typeout{* If problems occur download a}
           \typeout{* recent version from a CTAN host.}
           \typeout{*}
           \typeout{* Refer to http://www.ctan.org and search for "natbib".}
           \typeout{*}
           \typein{* Type <return> to continue ...}

           \global\problemtrue
          }
        \endgroup
        }{}
    }
    {
     \typeout{* ... not found! }
     \typeout{*}
     \typeout{* Serious problem detected:}
     \typeout{*}
     \typeout{* The natbib package, which should be part of a good LaTeX}
     \typeout{* distribution, can not be found.}
     \typeout{*}
     \typeout{* Without this package you will not be able to use certain}
     \typeout{* citation styles. See the aipguide documentation!}
     \typeout{*}
     \typeout{* Especially the layout for ARLO requires this package!}
     \typeout{*}
     \typeout{* Try to download this package from a CTAN  host.}
     \typeout{* Refer to http://www.ctan.org and search for "natbib".}
     \typeout{*}
     \typein{* Type <return> to continue ...}

     \problemtrue
    }

\makeatother


\typeout{*}
\typeout{* ... finished testing}
\typeout{*}
\ifproblem
\typeout{* The tests have revealed some problems in your TeX installation.}
\typeout{*}
\typeout{* Please review the above comments carefully and read the file}
\typeout{* README for further information.}
\typeout{*}
\typeout{*****************************************************************}
\typein{* Type <return> to continue ...}
\else
 \ifobservation
  \typeout{****************************************************************}
  \typeout{*}
  \typeout{* The tests have reveiled no problems in your TeX installation,}
  \typeout{* but some observations have been made; see above.}
  \typeout{*}
  \typeout{****************************************************************}
 \else
  \typeout{****************************************************************}
  \typeout{*}
  \typeout{* The tests have reveiled no problems in your TeX installation.}
  \typeout{*}
  \typeout{****************************************************************}
 \fi
\fi


% if this file is run standalone stop otherwise continue

\makeatletter
\IfStandaloneCheck
 {
\typeout{*}
\typeout{* This document only produces terminal output.}
\typeout{*}
\stop
 }
 {
\AtBeginDocument{\relax\ifx\xfm@address@loop\@undefined
  \typeout{***************************}
  \typeout{* Oooops ... you seem to have picked up an obsolete}
  \typeout{* aipproc.cls file from a previous installation!}
  \typeout{*}
  \typeout{* Please check that LaTeX finds the right one.}
  \typeout{*}
  \typeout{* Sorry have to give up ....}
  \typeout{***************************}
  \stop
 \fi}
 }
\makeatother

\endinput

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 

main.tex
%%
%% This is file `template-6s.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% template.raw  (with options: `6s')
%% 
%% Template for the LaTeX class aipproc.
%% 
%% (C) 1998,2000,2001 American Institute of Physics and Frank Mittelbach
%% All rights reserved
%% 
%%
%% $Id: template.raw,v 1.12 2005/07/06 19:22:14 frank Exp $
%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Please remove the next line of code if you
%% are satisfied that your installation is
%% complete and working.
%%
%% It is only there to help you in detecting
%% potential problems.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%\input{aipcheck}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% SELECT THE LAYOUT
%%
%% The class supports further options.
%% See aipguide.pdf for details.
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[
    ,final            % use final for the camera ready runs
%%  ,draft            % use draft while you are working on the paper
%%  ,numberedheadings % uncomment this option for numbered sections
%%  ,aas_macros       % add further options here if necessary
  ]
  {aipproc}

\layoutstyle{6x9}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% FRONTMATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}

\title{Simulations of AGN feedback in galaxy clusters and groups}

\classification{98.65.Cw, 98.65.Bv, 98.54.Cm}
\keywords {Galaxy clusters, Small and compact galaxy groups, Active and
peculiar galaxies and related systems}

\author{Ewald Puchwein}{
  address={Max-Planck-Institut f\"{u}r Astrophysik,
      Karl-Schwarzschild-Stra\ss{}e 1, 85740 Garching bei
      M\"{u}nchen, Germany}
}

\author{Debora Sijacki}{
  address={Institute of Astronomy, Madingley
      Road, Cambridge, CB3 0HA, United Kingdom}
}

\author{Volker Springel}{
  address={Max-Planck-Institut f\"{u}r Astrophysik,
      Karl-Schwarzschild-Stra\ss{}e 1, 85740 Garching bei
      M\"{u}nchen, Germany} 
}


\begin{abstract}
There is compelling evidence that black holes (BHs) in cluster centers
vigorously interact with their surroundings,
indicating that any realistic model of cluster formation needs to
account for these processes. Here we use high-resolution cosmological
simulations of a large cluster and group sample to study how BHs affect
their host systems. We focus on two specific properties, the halo gas
fraction and the X--ray luminosity-temperature scaling relation, both of
which are notoriously difficult to reproduce in self-consistent
hydrodynamical simulations. We show that BH feedback can solve both of
these issues, bringing them in excellent agreement with observations,
without alluding to the `cooling only' solution that produces
unphysically bright central galaxies.
\end{abstract}

\maketitle

\input{aas_macros.sty}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% MAINMATTER
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Introduction}

Hydrodynamical cluster simulations which only
include radiative cooling typically suffer from excessive overcooling
within the densest cluster regions. This results in a very
large fraction of cold gas and consequently
a large amount of stars that would form out of it. While the associated
removal of low-entropy gas breaks the
self-similarity of the cluster scaling relations in a way that resembles
observations \citep{Bryan2000, Dave2002, Nagai2007}, this `cooling-only'
scenario is generally discounted because observed clusters do not show
such strong cooling flows and enormously bright central galaxies.
Instead, it is widely believed that some non-gravitational energy input
strongly affects the intracluster medium (ICM).

There has been considerable effort \citep[see][and references
therein]{Borgani2004} to include feedback mechanisms associated with
star formation in hydrodynamical simulations in order to reduce
excessive overcooling in cluster cores. However, so far simulation
models have failed to simultaneously reproduce the masses and colors of
central galaxies, the observed temperature and metallicity profiles, as
well as the observed X--ray luminosity-temperature ($L_{\rm X}-T$)
relation. In particular, the X--ray luminosities have been found to be
substantially larger than the observed values \citep{Borgani2004} on the
group scale.

Feedback from active galactic nuclei (AGN) might resolve the
discrepancies by providing a heating mechanism that offsets cooling,
lowers star formation rates and removes gas from the centers of poor
clusters and groups, thereby reducing their X--ray luminosities to
values compatible with observations. We investigate whether AGN
feedback can indeed solve these problems by performing simulations
of galaxy clusters and groups that employ a state-of-the-art model
\citep{Sijacki2007} for BH growth and feedback.

\section{The simulations}

We have performed high-resolution cosmological hydrodynamical
simulations of a large galaxy cluster and group sample,
accounting for radiative cooling, UV heating, star
formation and supernovae feedback. For each halo, two kinds of
simulations were performed. One containing the physics just described
and an additional one including a model for BH growth and associated
feedback processes as in \cite{Springel2005b} and \cite{Sijacki2007}.
This allows us to compare the very same clusters simulated with and
without AGN heating in order to clearly pin down the imprints of AGN
activity on cluster and group properties.

The simulations are described in detail in \cite{Puchwein2008}. Here we
just summarize the main features of our BH growth and
feedback model. We assume that low-mass seed BHs are produced
sufficiently frequently that any halo above a certain threshold mass
contains one such BH at its center. In the simulations,
an on-the-fly friends-of-friends group finder puts seed BHs with a mass
of $10^5 h^{-1} M_\odot$ into halos when they exceed a mass of $5
\! \times \! 10^{10} h^{-1} M_\odot$ and do not contain any BH yet. The
BHs are then allowed to grow by mergers with other BHs and by accretion
of gas at the Bondi-Hoyle-Lyttleton rate, but with the Eddington limit
additionally imposed.

We use two distinct feedback models depending on the BH accretion rate
(BHAR) \citep[see][]{Sijacki2007}. For large accretion rates above
$0.01$ of the Eddington rate, AGN feedback is assumed to occur in a
``quasar-mode'', where only a small fraction of the luminosity is
thermally coupled to the ICM. We adopt this thermal heating efficiency
to be $0.5\%$ of the rest mass-energy of the accreted gas, which
reproduces the observed BH mass-bulge stellar
velocity dispersion relation \citep{DiMatteo2005}. For lower BHARs,
 we assume that feedback is in a so-called ``radio-mode'', where AGN
jets inflate hot, buoyantly rising bubbles in the surrounding ICM. The
duty cycle of bubble injection, energy content of the bubbles as well as
their initial size are determined from the BHAR. We assume the
mechanical feedback efficiency provided by the bubbles to be $2\%$ of
the accreted rest mass-energy, which is in good agreement with
observations of X--ray luminous elliptical galaxies \citep{Allen2006}.

It was shown in \cite{Sijacki2007} that this model leads to a
self-regulated BH growth and brings BH and stellar mass densities into
broad agreement with observational constraints.

Finally, we obtain realistic X--ray luminosities and spectroscopic
temperatures for each simulated halo, as described
in \cite{Puchwein2008}.

\section{Halo gas fractions}

In Fig.~\ref{fig:gas_fractions}, we show the ratio of
gas mass to total mass inside the radius $r_{500}$ as a function of halo
X--ray temperature. 
%\citep{Vikhlinin2006,Sun2008,Sanderson2003}.
The most obvious effect of the AGN feedback is the significantly reduced
gas fraction at the low temperature end of our sample, i.e. in poor
clusters and groups. There the AGN heating drives a substantial fraction
of the gas to radii outside of $r_{500}$. This lowers halo gas fractions
in spite of the reduced fraction of gas that is converted into stars in
the runs with AGN. The potential wells of massive clusters are, on the
other hand, too deep for AGN to efficiently remove gas from
them. Thus the effect of the suppressed star formation becomes more
important towards more massive systems. While the gas
fraction in the very inner regions of massive clusters is somewhat
reduced by the AGN, we find it unchanged or slightly increased within
$r_{500}$.

\begin{figure}
%\begin{center}
 \scalebox{0.71}{\includegraphics{f1.eps}}
%\end{center}
  %\plotone{f1.eps}%  
\caption{Halo gas mass fractions within $r_{500}$ of clusters
    and groups simulated without (circles) and with AGN
feedback (squares). The arrows illustrate the effect of the AGN
heating for each halo. For comparison, we show constraints obtained from
X-ray observations.}
\label{fig:gas_fractions}
\end{figure}

\section{The $L_{\rm X}-T$ relation}

By removing gas from the centers of poor clusters and
groups, AGN heating also suppresses their X--ray luminosities and
affects the $L_{\rm X}-T$ relation. In Fig.~\ref{fig:L_X-T_relation}, we
plot the X--ray luminosities $L_{500}$ against the spectroscopic
temperatures $T_{500}$, for all our halos.
%Data from
%observational X--ray studies is shown for comparison \citep{Horner2001,
%Helsdon2000, Osmond2004, Arnaud1999, Markevitch1998}.

Without AGN, we obtain substantially larger X--ray
luminosities for poor clusters than observed, while for massive clusters
there is reasonable agreement. This finding is in line with
previous studies \citep{Borgani2004}, and is a manifestation of the
long-standing problem to explain cluster scaling relations in
hydrodynamical simulations. However, when we include the AGN feedback
the discrepancies between simulated and observed $L_X-T$ relation are
resolved. In particular, the relation is
steepened on the group scale, as AGN heating removes a
larger fraction of gas from smaller halos and thereby reduces their
X--ray luminosities. For massive clusters, the effect of AGN is
less important. Overall, the $L_X-T$ relation obtained from the
simulations with AGN feedback is consistent with observations at all
mass scales, from massive clusters to small groups.

\begin{figure}
  \scalebox{0.72}{\includegraphics{f2.eps}}%
\caption{X--ray luminosity as a function of spectroscopic temperature
  for clusters and groups simulated without (circles)
  and with AGN feedback (squares). For each halo, the arrow illustrates
the effect of the AGN heating. Data from observational X-ray studies is
shown for comparison. For a subset also the best-fit power-law
  $L_{\rm X}-T$ relation is plotted. Including AGN feedback into the
  simulations drastically improves the agreement with observations and
  resolves the discrepancy on the group scale.}
\label{fig:L_X-T_relation}
\end{figure}

\section{Summary and conclusions}

We have performed very high-resolution simulations of
a galaxy cluster and group sample and compared simulations
with and without AGN feedback. We find that:
\begin{itemize}
\item AGN feedback significantly lowers the gas mass fractions in poor
  clusters and groups, even though fewer baryons are turned into stars.
This is because the AGN heating drives gas from
  halo centers to their outskirts. Both the gas and
  stellar fractions are in a much better agreement with observations
when AGN  are included.
\item AGN feedback significantly reduces the X--ray luminosities of poor
  clusters and groups, while the X--ray temperature stays roughly the
same or is even slightly reduced. This results in a steepening of the
$L_{\rm X}-T$ relation on the group scale.
\item The $L_{\rm X}-T$ relation obtained from simulations with AGN
feedback is in excellent agreement with observations at all mass
scales.
\end{itemize}

We find it extremely encouraging that this simple model for BH growth
and feedback is capable of bringing the analyzed
properties of galaxy clusters and groups into much better agreement with
observations. This resolves a long-standing problem in their
hydrodynamical modeling and opens up new exciting possibilities for
using simulations to investigate their properties and their
co-evolution with central supermassive BHs.

%\begin{figure}
%  \includegraphics[height=.3\textheight]{golfer}
% \caption{Picture to fixed height}
%\end{figure}

\begin{theacknowledgments}
We thank Simon White, Martin Haehnelt,
Klaus Dolag and Gabriel Pratt for constructive discussions. D.S.
acknowledges Postdoctoral Fellowship from the STFC. Part of the
simulations were run on the Cambridge HPC cluster Darwin.
\end{theacknowledgments}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% The bibliography can be prepared using the BibTeX program or
%% manually.
%%
%% The code below assumes that BibTeX is used.  If the bibliography is
%% produced without BibTeX comment out the following lines and see the
%% aipguide.pdf for further information.
%%
%% For your convenience a manually coded example is appended
%% after the \end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% You may have to change the BibTeX style below, depending on your
%% setup or preferences.
%%
%%
%% For The AIP proceedings layouts use either
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\bibliographystyle{aipprocl}   % if natbib is available
%\bibliographystyle{aipprocl} % if natbib is missing

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% You probably want to use your own bibtex database here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliography{paper}

\end{document}

main.bbl
\begin{thebibliography}{1}
\providecommand{\enquote}[1]{``#1''}
\expandafter\ifx\csname url\endcsname\relax
  \def\url#1{\texttt{#1}}\fi
\expandafter\ifx\csname urlprefix\endcsname\relax\def\urlprefix{URL }\fi

\bibitem{Bryan2000}
G.~L. {Bryan}, \emph{\apjl} \textbf{544}, L1--L5 (2000).

\bibitem{Dave2002}
R.~{Dav{\'e}}, N.~{Katz}, and D.~H. {Weinberg}, \emph{\apj} \textbf{579},
  23--41 (2002).

\bibitem{Nagai2007}
D.~{Nagai}, A.~{Vikhlinin}, and A.~V. {Kravtsov}, \emph{\apj} \textbf{655},
  98--108 (2007).

\bibitem{Borgani2004}
S.~{Borgani}, G.~{Murante}, V.~{Springel}, A.~{Diaferio}, K.~{Dolag},
  L.~{Moscardini}, G.~{Tormen}, L.~{Tornatore}, and P.~{Tozzi}, \emph{\mnras}
  \textbf{348}, 1078--1096 (2004).

\bibitem{Sijacki2007}
D.~{Sijacki}, V.~{Springel}, T.~{di Matteo}, and L.~{Hernquist}, \emph{\mnras}
  \textbf{380}, 877--900 (2007).

\bibitem{Springel2005b}
V.~{Springel}, T.~{Di Matteo}, and L.~{Hernquist}, \emph{\mnras} \textbf{361},
  776--794 (2005).

\bibitem{Puchwein2008}
E.~{Puchwein}, D.~{Sijacki}, and V.~{Springel}, \emph{\apjl} \textbf{687},
  L53--L56 (2008).

\bibitem{DiMatteo2005}
T.~{Di Matteo}, V.~{Springel}, and L.~{Hernquist}, \emph{\nat} \textbf{433},
  604--607 (2005).

\bibitem{Allen2006}
S.~W. {Allen}, R.~J.~H. {Dunn}, A.~C. {Fabian}, G.~B. {Taylor}, and C.~S.
  {Reynolds}, \emph{\mnras} \textbf{372}, 21--30 (2006).

\end{thebibliography}
