mcfacts.physics.stellar_interpolation

Module for interpolating stellar radius, luminosity, and effective temperature from a grid.

mcfacts.physics.stellar_interpolation.interp_star_params(disk_star_masses)

Interpolate star radii, luminosity, and effective temperature in logspace

Parameters:

disk_star_masses (numpy.ndarray) – Masses of stars to be interpolated with float type

Returns:

new_logR, new_logL, new_logTeff – Arrays of new interpolated radii, luminosities, and effective temperatures

Return type:

numpy.ndarray

mcfacts.physics.stellar_interpolation.interpolate_values(mhigh_value, mlow_value, ratio)

Interpolate between two values

Parameters:
  • mhigh_value (float) – Value associated with the higher mass grid star

  • mlow_value (float) – Value associated with the lower mass grid star

  • ratio (numpy.ndarray) – Ratio between the star mass and the grid star masses np.log10(mass / low_mass) / (np.log10(high_mass / low_mass)) with float type

Returns:

new_values – New interpolated values with float type

Return type:

numpy.ndarray