pytmosph3r.planetary_system.star.star_blackbody
Module Contents
- luminosity_from_temperature(temperature: astropy.units.Quantity[pytmosph3r.util.pt.temperature], radius: astropy.units.Quantity[pytmosph3r.util.pt.length]) astropy.units.W [source]
This function allows retrieving of the luminosity [Power] of a star behaving as a blackbody from its temperature [Temperature] and its radius [Length].
- Parameters:
temperature (u.Quantity) – Effective temperature of the star.
radius (u.Quantity) – Radius of the star.
- Returns:
Luminosity of the star in Watt [Power].
- temperature_from_luminosity(luminosity: astropy.units.Quantity, radius: astropy.units.Quantity) astropy.units.K [source]
This function allows retrieving of the effective temperature [Temperature] of a star behaving as a blackbody from its luminosity [Luminosity] and its radius [Length].
- Parameters:
luminosity (u.Quantity) – Luminosity of the star.
radius (u.Quantity) – Radius of the star.
- Returns:
Effective temperature of the star in Kelvin [Temperature].
- class BlackbodyStar(temperature: float = 5780, radius: float = 695700000.0, mass: float | None = None, **kwargs)[source]
Bases:
pytmosph3r.planetary_system.star.base.BaseStar
Star which behave as a blackbody.
- Parameters:
temperature (float, optional) – Stellar temperature in K. Default to the solar effective temperature.
radius (float, optional) – Radius of the star in m. Default to the solar radius.
mass (float, optional) – Mass of the star in kg. Optional.
- Returns:
An object behaving as a Star, with a flux matching a blackbody of the given effective temperature.
- temperature
Star effective temperature (in K).
- classmethod fromEffectiveTemperature(temperature: astropy.units.Quantity, radius: astropy.units.Quantity, mass: astropy.units.Quantity | None = None)[source]
Create a BlackbodyStar object from its effective temperature.
- Parameters:
temperature (Quantity['temperature']) – Stellar effective temperature [Temperature].
radius (Quantity['length']) – Stellar radius [Length].
mass (Quantity['mass']) – Stellar mass [Mass].
- Returns:
BlackbodyStar matching the provided effective temperature.
- classmethod fromBolometricLuminosity(bolometric_luminosity: astropy.units.Quantity, radius: astropy.units.Quantity, mass: astropy.units.Quantity | None = None)[source]
Create a BlackbodyStar object from its bolometric luminosity.
- Parameters:
bolometric_luminosity (Quantity['power']) – Bolometric luminosity of the star [Power].
radius (Quantity['length']) – Stellar radius [Length].
mass (Quantity['mass']) – Stellar mass [Mass].
- Returns:
BlackbodyStar matching the provided luminosity.
- classmethod fromSolar(temperature: float = 5770, radius: float = 1.0, mass: float = 1.0)[source]
Create a Star object using solar values (except temperature, which is in Kelvin).
- Parameters:
temperature (Quantity['temperature']) – Stellar effective temperature [Temperature].
radius (float) – radius, scaled to the Sun.
mass (float) – Mass of the star in Msun.