00001 subroutine calc_ToverW_peos
00002 use phys_constant, only : long, pi
00003 use grid_parameter, only : nrg, ntg, npg, nrf, ntf, npf
00004 use def_matter, only : omef
00005 use def_matter_parameter, only : ome, radi
00006 use def_quantities
00007 use def_quantities_derived, only : omega
00008 use make_array_3d
00009 use interface_source_mp_minus_madm_peos
00010 use interface_vol_int_grav
00011 use interface_vol_int_fluid
00012 use interface_source_ang_mom_peos
00013 implicit none
00014 real(long) :: fac2pi
00015 real(long) :: volg, volf
00016 real(long), pointer :: soug(:,:,:), souf(:,:,:)
00017
00018 call alloc_array3d(soug, 0, nrg, 0, ntg, 0, npg)
00019 call alloc_array3d(souf, 0, nrf, 0, ntf, 0, npf)
00020
00021 omega = ome/radi
00022 call source_ang_mom_peos(souf)
00023 souf(0:nrf,0:ntf,0:npf) = omef(0:nrf,0:ntf,0:npf)*souf(0:nrf,0:ntf,0:npf)
00024 call vol_int_fluid(souf,volf)
00025 T_kinene_omeJ = 0.5d0*radi**3*volf
00026 W_gravene_omeJ = admmass - propermass - T_kinene_omeJ
00027
00028
00029
00030
00031
00032
00033
00034
00035 ToverW_omeJ = T_kinene_omeJ/dabs(W_gravene_omeJ)
00036 I_inertia = angmom/omega
00037
00038 deallocate(soug)
00039 deallocate(souf)
00040 end subroutine calc_ToverW_peos