quark.h

00001 /*
00002   -------------------------------------------------------------------
00003   
00004   Copyright (C) 2006, 2007, Andrew W. Steiner
00005   
00006   This file is part of O2scl.
00007   
00008   O2scl is free software; you can redistribute it and/or modify
00009   it under the terms of the GNU General Public License as published by
00010   the Free Software Foundation; either version 3 of the License, or
00011   (at your option) any later version.
00012   
00013   O2scl is distributed in the hope that it will be useful,
00014   but WITHOUT ANY WARRANTY; without even the implied warranty of
00015   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016   GNU General Public License for more details.
00017   
00018   You should have received a copy of the GNU General Public License
00019   along with O2scl. If not, see <http://www.gnu.org/licenses/>.
00020 
00021   -------------------------------------------------------------------
00022 */
00023 #ifndef O2SCL_QUARK_H
00024 #define O2SCL_QUARK_H
00025 
00026 #include <string>
00027 #include <iostream>
00028 #include <fstream>
00029 #include <cmath>
00030 #include <o2scl/constants.h>
00031 #include <o2scl/mroot.h>
00032 #include <o2scl/inte.h>
00033 #include <o2scl/fermion.h>
00034 
00035 #ifndef DOXYGENP
00036 namespace o2scl {
00037 #endif
00038 
00039   /** 
00040       \brief Quark base
00041 
00042   */
00043   class quark : virtual public fermion {
00044   public:
00045 
00046     /// Contribution to the bag constant
00047     double B;
00048 
00049     /// Quark condensate
00050     double qq;
00051 
00052     /// Create a quark with mass \c m and degeneracy \c g
00053     quark(double mass=0.0, double dof=0.0);
00054 
00055     virtual int calc_mu(const double temper);
00056     virtual int calc_density(const double temper);
00057     virtual int pair_mu(const double temper);
00058     virtual int pair_density(const double temper);
00059 
00060     /// Return string denoting type ("quark")
00061     virtual const char *type() { return "quark"; }
00062 
00063 #ifndef DOXYGENP  
00064     
00065     friend class io_tlate<quark>;
00066 
00067   protected:
00068 
00069 #endif
00070   
00071   };
00072 
00073   template<> int io_tlate<quark>::input
00074     (cinput *co, in_file_format *ins, quark *q);
00075   template<> int io_tlate<quark>::output
00076     (coutput *co, out_file_format *outs, quark *q);
00077   template<> const char *io_tlate<quark>::type();
00078   
00079   typedef io_tlate<quark> quark_io_type;
00080 
00081 #ifndef DOXYGENP
00082 }
00083 #endif
00084 
00085 #endif

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page