• Embed Doc
  • Readcast
  • Collections
  • CommentGo Back
Download
 
module RFDtab! +++! +++ This module declares allocatable arrays for the relativistic! +++ Fermi-Dirac integral tables used with the astrophysical equation! +++ of state.! +++! The author may be reached at adastera47@yahoo.com. This e-mail address! is for reporting bugs or improvements to the software. No technical! support will be provided.! Copyright (C) 2009 Lawrence D. Cloutman! This file is part of the RFD01 software package described above.! RFD01 is free software: you can redistribute it and/or modify it! under the terms of the GNU General Public License as published by! the Free Software Foundation, either version 3 of the License,! or (at your option) any later version.! RFD01 is distributed in the hope that it will be useful, but! WITHOUT ANY WARRANTY; without even the implied warranty of! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the! GNU General Public License for more details.! You should have received a copy of the GNU General Public License! along with this program in the file RFD01.readme. If not, see! <http://www.gnu.org/licenses/>.real*8, allocatable :: FDIN(:,:), FDIP(:,:), FDIU(:,:)real*8, allocatable :: eta(:), beta(:)integer :: neta, nbetaend module RFDtabcc +++ <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>csubroutine RFDset! This subroutine reads the Fermi-Dirac integrals from the file RFDtable! and stores them in the module REFtab.! The author may be reached at adastera47@yahoo.com. This e-mail address! is for reporting bugs or improvements to the software. No technical! support will be provided.! Copyright (C) 2009 Lawrence D. Cloutman! This file is part of the RFD01 software package.! RFD01 is free software: you can redistribute it and/or modify it
 
! under the terms of the GNU General Public License as published by! the Free Software Foundation, either version 3 of the License,! or (at your option) any later version.! RFD01 is distributed in the hope that it will be useful, but! WITHOUT ANY WARRANTY; without even the implied warranty of! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the! GNU General Public License for more details.! You should have received a copy of the GNU General Public License! along with this program. If not, see! <http://www.gnu.org/licenses/>.use RFDtabimplicit noneinteger ieta, ibeta, ierr, iunitsavewrite (12,20)write (*, 20)20 format(/' Begin reading FD tables in RFDset')! +++! +++ Set the logical unit number for reading RFDtable. It must be a! +++ number not already in use by the code.! +++iunit = 3! +++! +++ Open the text file containing the relativistic Fermi-Dirac! +++ integral tables for idealg = 5.! +++open (unit=iunit, file='RFDtable', form='formatted',1 status='unknown')! +++! +++ Read number eta entries and number of beta entries.! +++ For my default tables, these should be 401 and 20.! +++read (iunit,10) neta, nbeta10 format (12x,i8)write (12,50) neta, nbetawrite (*, 50) neta, nbeta50 format (' neta =',i8,' nbeta =',i8)! +++! +++ Allocate arrays for the integral tables.! +++allocate (eta(1:neta), stat=ierr)allocate (beta(nbeta), stat=ierr)allocate (FDIN(neta,nbeta), stat=ierr)allocate (FDIP(neta,nbeta), stat=ierr)allocate (FDIU(neta,nbeta), stat=ierr)
 
! +++! +++ Read in the integral tables.! +++read (iunit,40) ((eta(ieta), beta(ibeta), FDIN(ieta,ibeta),1 FDIP(ieta,ibeta), FDIU(ieta,ibeta), ieta = 1, neta),2 ibeta = 1, nbeta)40 format (2d10.3,3d17.10)close (unit=iunit)write (12,30)write (*, 30)30 format(/' Finished reading FD tables in RFDset')returnendcc +++ <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>csubroutine RFDint2 (itype, etax, betax, FDval)! Compute FDval for eta = etax and beta = betax using biquadratic! interpolation in the relativistic Fermi-Dirac integral tables! defined in module FDtab.! The author may be reached at adastera47@yahoo.com. This e-mail address! is for reporting bugs or improvements to the software. No technical! support will be provided.! Copyright (C) 2009 Lawrence D. Cloutman! This file is part of the RFD01 software package.! RFD01 is free software: you can redistribute it and/or modify it! under the terms of the GNU General Public License as published by! the Free Software Foundation, either version 3 of the License,! or (at your option) any later version.! RFD01 is distributed in the hope that it will be useful, but! WITHOUT ANY WARRANTY; without even the implied warranty of! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the! GNU General Public License for more details.! You should have received a copy of the GNU General Public License! along with this program. If not, see! <http://www.gnu.org/licenses/>.use RFDtabimplicit noneinteger itype, i, im, ip, j, jm, jpreal*8 :: etax, betax, FDval, FDvalm, FDvalp, FDvalxsave
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...
You must be to leave a comment.
Submit
Characters: ...