This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Definition.f90
79 lines (57 loc) · 2.19 KB
/
Definition.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! This is the definition module contains the key variables used in the hydro code !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
MODULE DEFINITION
IMPLICIT NONE
SAVE
INCLUDE "Parameter.h"
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! section for EOS table !
! Eos table !
INTEGER :: eosline1
INTEGER :: eosline2
! Line number of EOS table !
INTEGER :: eoslineno1 = 28800
INTEGER :: eoslineno2 = 28800
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! section for DM/NM scalar quantity !
! mass !
REAL (DP) :: mass1, mass2
! radius !
REAL (DP) :: rad1, rad2
! For DM Central density !
REAL (DP) :: log10rho1_c
! Temperature !
REAL (DP) :: temp2
! Central and atmospheric values !
REAL (DP) :: rho1_c, rho1_a, p1_c, p1_a, rhoe1_c, rhoe1_a
REAL (DP) :: rho2_c, rho2_a, p2_c, p2_a, rhoe2_c, rhoe2_a
! Baryonic mass for normal matter !
REAL (DP) :: mb1
! Fermionic mass (electrons) for normal matter !
REAL (DP) :: me1
! Multiplication factor
REAL (DP) :: a_max1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! section for arrays !
! This is for solving the RK4 equation !
REAL (DP), ALLOCATABLE, DIMENSION (:,:) :: y_rk4
! DM primitive variables variables !
REAL (DP), ALLOCATABLE, DIMENSION (:) :: rho1
REAL (DP), ALLOCATABLE, DIMENSION (:) :: epsilon1
! NM primitive variables variables !
REAL (DP), ALLOCATABLE, DIMENSION (:) :: rho2
REAL (DP), ALLOCATABLE, DIMENSION (:) :: epsilon2
! Storing NM and DM EOS table information !
REAL (DP), ALLOCATABLE, DIMENSION (:,:) :: eostable1
REAL (DP), ALLOCATABLE, DIMENSION (:,:) :: eostable2
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Section for neutron star EOS
! Neutron star EOS table lines !
INTEGER :: nlines
! For Neutron star EOS !
REAL (DP), ALLOCATABLE, DIMENSION (:) :: nbtable
REAL (DP), ALLOCATABLE, DIMENSION (:) :: epstable
REAL (DP), ALLOCATABLE, DIMENSION (:) :: ptable
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
END MODULE DEFINITION