00001 subroutine calc_4velocity_corot
00002 use phys_constant, only : long
00003 use grid_parameter, only : nrf, ntf, npf
00004 use def_matter_parameter, only : ber
00005 use def_matter, only : emd, utf, uxf, uyf, uzf
00006 use def_matter_velocity, only : vxu, vyu, vzu
00007 implicit none
00008 real(long) :: emdfc, rhofc, prefc, hhfc, enefc
00009 integer :: ir, it, ip
00010
00011 do ip = 0, npf
00012 do it = 0, ntf
00013 do ir = 0, nrf
00014
00015 emdfc = emd(ir,it,ip)
00016 if (emdfc <= 1.0d-15) emdfc = 1.0d-15
00017 call peos_q2hprho(emdfc, hhfc, prefc, rhofc, enefc)
00018 utf(ir,it,ip) = hhfc/ber
00019 uxf(ir,it,ip) = utf(ir,it,ip)*vxu(ir,it,ip)
00020 uyf(ir,it,ip) = utf(ir,it,ip)*vyu(ir,it,ip)
00021 uzf(ir,it,ip) = utf(ir,it,ip)*vzu(ir,it,ip)
00022
00023 end do
00024 end do
00025 end do
00026 end subroutine calc_4velocity_corot