Implementation of the constructor and destructor of TYPE diffstarlorene, and of the diffstarlorene-member PROCEDURES that call the C-bound PROCEDURES constructig and destructing the \(\texttt{LORENE}\) \(\texttt{Et_diffrot}\) object
FT 25.10.2021
Constructs an object of TYPE diffstarlorene
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(diffstarlorene), | intent(out) | :: | derived_type |
Constructed diffstarlorene object |
||
character(len=*), | intent(in), | optional | :: | filename |
\(\texttt{LORENE}\) binary file containing the spectral \(\mathrm{DRS}\) \(\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 |
Construct the \(\texttt{LORENE}\) \(\texttt{Et_diffrot}\) object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(diffstarlorene), | intent(inout) | :: | this |
diffstarlorene object which this PROCEDURE is a member of |
||
character(kind=C_CHAR, len=*), | intent(in), | optional | :: | id_file |
\(\texttt{LORENE}\) binary file containing the spectral \(\mathrm{DRS}\) \(\mathrm{ID}\) |
|
character(kind=C_CHAR, len=*), | intent(in), | optional | :: | eos_filename |
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 an object of TYPE diffstarlorene
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(diffstarlorene), | intent(inout) | :: | this |
diffstarlorene object to be destructed |
Destructs the \(\texttt{LORENE}\) \(\texttt{Et_diffrot}\) object and frees the pointer diffstar_ptr pointing to it
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(diffstarlorene), | intent(inout) | :: | this |
diffstarlorene object which this PROCEDURE is a member of |
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 |
Procedure that does nothing. It is used to instantiate a deferred idbase procedure which s not needed in TYPE ejecta_generic. It also serves as a placeholder in case the idbase procedure will be needed in the future.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(diffstarlorene), | intent(inout) | :: | this | |||
integer, | intent(in) | :: | flag |
Identifies what kind of initialization has to be done |
||
logical, | intent(in), | optional | :: | switch |
If |