Implementation of the constructor and destructor of TYPE bnsfuka, and of the bnsfuka-member PROCEDURES that call the C-bound PROCEDURES constructig and destructing the \(\texttt{FUKA}\) \(\texttt{bns_export}\) object
FT 23.10.2020
Construct the \(\texttt{FUKA}\) \(\texttt{bns_export}\) object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bnsfuka), | intent(inout) | :: | this |
bnsfuka object which this PROCEDURE is a member of |
||
character(kind=C_CHAR, len=*), | intent(in), | optional | :: | fukafile |
\(\texttt{FUKA}\) binary file containing the spectral \(\mathrm{BNS}\) \(\mathrm{ID}\) |
Constructs an object of TYPE bnsfuka
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bnsfuka), | intent(out) | :: | derived_type |
Constructed bnsfuka object |
||
character(len=*), | intent(in), | optional | :: | filename |
\(\texttt{FUKA}\) binary file containing the spectral \(\mathrm{BNS}\) \(\mathrm{ID}\) |
|
character(len=*), | intent(in), | optional, | DIMENSION(:) | :: | eos_filenames |
Array of strings containing the names of the files containing the \(\mathrm{EOS}\)
to be used for each matter object. If not PRESENT, information from
the file |
Destructs the \(\texttt{FUKA}\) \(\texttt{bns_export}\) object and frees the pointer bns_ptr pointing to it
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bnsfuka), | intent(inout) | :: | this |
bnsfuka object which this PROCEDURE is a member of |
Destructs an object of TYPE bnsfuka
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(bnsfuka), | intent(inout) | :: | this |
bnsfuka object to be destructed |
This SUBROUTINE is curretly just a placeholder. It could be used, for exmaple, to correct the ADM momentum at the end of the execution, or correct for residual eccentricity, etc.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | npart |
Particle number |
||
double precision, | intent(inout), | DIMENSION(3,npart) | :: | pos |
Particle positions |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | nlrf |
Baryon density in the local rest frame on the particles |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | u |
Specific internal energy on the particles |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | pr |
Pressure on the particles |
|
double precision, | intent(inout), | DIMENSION(3,npart) | :: | vel_u |
Spatial velocity in the computing frame on the particles |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | theta |
Generalized Lorentz factor on the particles |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | nstar |
Proper baryon density in the local rest frame on the particles |
|
double precision, | intent(inout), | DIMENSION(npart) | :: | nu |
Baryon number per particle |
Initialize the \(\texttt{FUKA}\) \(\mathrm{BNS}\) \(\mathrm{ID}\).
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(bnsfuka), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | flag |
Identifies what kind of initialization has to be done |
||
logical, | intent(in), | optional | :: | switch |
If |