This SUBMODULE contains the implementation of the method of TYPE sph_particles that computes the \(\mathrm{SPH}\) variables.
FT 16.10.2020
Renamed from particles_methods to particles_sph_variables upon improving modularity
FT 12.07.2021
Last updated: FT 27.10.2022
Compute the \(\mathrm{SPH}\) variables from the \(\mathrm{ID}\), and print them to a binary file to be read by \(\texttt{SPHINCS_BSSN}\), and to a formatted file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
character(len=*), | intent(inout), | optional | :: | namefile |
Name of the formatted file where the SPH ID is printed to |
Computes the hydro fields on a section of the particles specified as input. First, computes the \(\mathrm{SPH}\) pressure starting from the \(\mathrm{SPH}\) baryon mass density, and the specific internal energy. The pressure is computed differently for different \(\mathrm{EOS}\), and for cold and hot systems. Then computes the enthalpy and the sound speed accordingly.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(particles), | intent(inout) | :: | this |
particles object which this PROCEDURE is a member of |
||
integer, | intent(in) | :: | npart_in |
First index of the desired section of the particles |
||
integer, | intent(in) | :: | npart_fin |
Last index of the desired section of the particles |
||
class(eos), | intent(in) | :: | eqos |
\(\mathrm{EOS}\) to be used |
||
double precision, | intent(in), | DIMENSION(npart_fin - npart_in + 1) | :: | nlrf |
Baryon mass density in the local rest frame |
|
double precision, | intent(inout), | DIMENSION(npart_fin - npart_in + 1) | :: | u |
Specific internal energy |
|
double precision, | intent(inout), | DIMENSION(npart_fin - npart_in + 1) | :: | Pr |
Pressure |
|
double precision, | intent(inout), | DIMENSION(npart_fin - npart_in + 1) | :: | enthalpy |
Enthalpy |
|
double precision, | intent(inout), | DIMENSION(npart_fin - npart_in + 1) | :: | cs |
Speed of sound |
|
logical, | intent(in), | optional | :: | verbose |