compute_sph_hydro Interface

interface


Calls

interface~~compute_sph_hydro~~CallsGraph interface~compute_sph_hydro compute_sph_hydro proc~compute_sph_hydro compute_sph_hydro interface~compute_sph_hydro->proc~compute_sph_hydro gen_pwp_eos gen_pwp_eos proc~compute_sph_hydro->gen_pwp_eos linear_interpolation linear_interpolation proc~compute_sph_hydro->linear_interpolation select_eos_parameters select_eos_parameters proc~compute_sph_hydro->select_eos_parameters

public module subroutine compute_sph_hydro(this, npart_in, npart_fin, eqos, nlrf, u, Pr, enthalpy, cs, verbose)

Arguments

Type IntentOptional 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

Description

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.