restmass_frg.f90
Go to the documentation of this file.00001 subroutine restmass_frg
00002
00003 use phys_constant, only : pi
00004 use def_metric_1D, only : alphf, psif
00005 use CB_fR_param_flphy, only : ahores
00006 use def_matter_1D, only : emd, ber, pinx, radi
00007 use grid_parameter_1D, only : nrf
00008 use weight_grav_1D, only : wgdr
00009 implicit none
00010 real(8) :: alpfc, emdfc, hhfc, psifc, utfc, weiflu, rhofc
00011 integer :: ir
00012
00013 ahores = 0.0d0
00014 emd(nrf) = 1.0d-14
00015 do ir = 0, nrf
00016
00017 if (emd(ir) <= 0.0d0) emd(ir) = 1.0d-14
00018 emdfc = emd(ir)
00019 rhofc = emd(ir)**pinx
00020 alpfc = alphf(ir)
00021 psifc = psif(ir)
00022 hhfc = 1.0d0 + (pinx+1.0d0)*emdfc
00023 utfc = hhfc/ber
00024
00025 weiflu = wgdr(ir)
00026 ahores = ahores + rhofc*alpfc*utfc*psifc**6*weiflu
00027
00028 end do
00029
00030 ahores = radi**3*ahores*4.0d0*pi
00031
00032 end subroutine restmass_frg