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.
FT 02.12.2022
| 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 |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | private | :: | a | ||||
| integer, | private | :: | dim_table | ||||
| double precision, | private | :: | gamma_poly | ||||
| double precision, | private | :: | kappa_poly | ||||
| double precision, | private | :: | tmp | ||||
| double precision, | private | :: | tmp2 | ||||
| logical, | private | :: | verb |