# Path: DiscEvolution/constants.py
# G = 1.
# AU = 1.496e13


import numpy as np
from .constants import Msun, Rsun, AU
# star.py
#
# Author: R. Booth
# Date: 8 - Nov - 2016
#  
# Contains stellar properties classes
################################################################################

# Base class for all stars, implements general properties that should be
# common to all stars
class StarBase(object):
    """Wrapper class for stellar properties.

    args:
        M     : mass, Msun.                  default = 1
        R     : radius, Rsun.                default = 1
        T_eff : effective temperature, K.    default = 5770
        age   : Stellar age, yr.             default = 0
    """
    def __init__(self, M=1,R=1,T_eff=5770, age=0):
        self._M    = M
        self._Rs   = R

# Path: DiscEvolution/constants.py
# G = 1.
# AU = 1.496e13


# Path: DiscEvolution/star.py
import numpy as np
from .constants import Msun, Rsun, AU

# star.py
#
# Author: R. Booth
# Date: 8 - Nov - 2016
#  
# Contains stellar properties classes
################################################################################

# Base class for all stars, implements general properties that should be
# common to all stars
class StarBase(object):
    """Wrapper class for stellar properties.

    args:
        M     : mass, Msun.                  default = 1
        R     : radius, Rsun.                default = 1
        T_eff : effective temperature, K.    default = 5770
        age   : Stellar age, yr.             default = 0
    """
    def __init__(self, M=1,R=1,T_eff=5770, age=0):
        self._M    = M
        self._Rs   = R

        self._Rau  = R*Rsun/AU