00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 char eos_bpal12_C[] = "$Header: /cvsroot/Lorene/C++/Source/Eos/eos_bpal12.C,v 1.2 2002/10/16 14:36:35 j_novak Exp $" ;
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051 #include "headcpp.h"
00052 #include "eos.h"
00053
00054
00055
00056
00057
00058
00059
00060 Eos_BPAL12::Eos_BPAL12(const char* path)
00061 : Eos_tabul("EOS BPAL12",
00062 "eos_bpal12.d", path)
00063 {}
00064
00065
00066
00067
00068 Eos_BPAL12::Eos_BPAL12(FILE* fich) : Eos_tabul(fich) {}
00069
00070
00071
00072
00073
00074 Eos_BPAL12::Eos_BPAL12(ifstream& fich) :
00075 Eos_tabul(fich, "eos_bpal12.d") {}
00076
00077
00078
00079
00080
00081
00082
00083 Eos_BPAL12::~Eos_BPAL12(){
00084
00085
00086
00087 }
00088
00089
00090
00091
00092
00093
00094
00095 bool Eos_BPAL12::operator==(const Eos& eos_i) const {
00096
00097 bool resu = true ;
00098
00099 if ( eos_i.identify() != identify() ) {
00100 cout << "The second EOS is not of type Eos_BPAL12 !" << endl ;
00101 resu = false ;
00102 }
00103
00104 return resu ;
00105
00106 }
00107
00108 bool Eos_BPAL12::operator!=(const Eos& eos_i) const {
00109
00110 return !(operator==(eos_i)) ;
00111
00112 }
00113
00114
00115
00116
00117
00118
00119 ostream& Eos_BPAL12::operator>>(ostream & ost) const {
00120
00121 ost <<
00122 "EOS of class Eos_BPAL12 : Bombaci et al. 1995 "
00123 << endl ;
00124
00125 ost << " composition : n,p,e,mu" << endl ;
00126 ost << " model : effective nucleon energy functional BPAL12"
00127 << endl ;
00128 ost << " BPS EOS below neutron drip point" << endl ;
00129 ost << " FPS EOS up to the liquid core" << endl ;
00130 ost << " Crust bottom at n = 0.0957 fm^{-3}" << endl ;
00131
00132 return ost ;
00133
00134 }
00135
00136