mass_profile Submodule

Implementation of the method of TYPE idbase that integrates the baryon mass density to extract the radial baryon mass profile.

FT 12.07.2021



Uses

  • module~~mass_profile~~UsesGraph module~mass_profile mass_profile module~id_base id_base module~mass_profile->module~id_base module~utility utility module~id_base->module~utility timing timing module~id_base->timing constants constants module~utility->constants matrix matrix module~utility->matrix

Contents


Module Procedures

module procedure integrate_baryon_mass_density module subroutine integrate_baryon_mass_density(this, center, radius, central_density, dr, dth, dphi, mass, mass_profile, mass_profile_idx, radii, surf)

Perform 3D integration over a spherical grid of the baryon mass density. Output baryon mass and radial mass profile.

Read more…

Arguments

Type IntentOptional Attributes Name
class(idbase), intent(inout) :: this

Object of class idbase which this PROCEDURE is a member of

double precision, intent(in), DIMENSION(3) :: center

Center of the star

double precision, intent(in) :: radius

Central density of the star

double precision, intent(in) :: central_density

Integration steps

double precision, intent(in) :: dr

Radius of the star

double precision, intent(in) :: dth

Radius of the star

double precision, intent(in) :: dphi

Radius of the star

double precision, intent(inout) :: mass

Integrated mass of the star

double precision, intent(out), DIMENSION(3,0:NINT(radius/dr)) :: mass_profile

Array storing the radial mass profile of the star

integer, intent(out), DIMENSION(0:NINT(radius/dr)) :: mass_profile_idx

Array to store the indices for array mass_profile, sorted so that mass_profile[mass_profile_idx] is in increasing order

double precision, intent(in), optional, DIMENSION(2) :: radii
type(surface), intent(in), optional :: surf

Surface of the matter object