Main functions
Controls most functionality of package by calling the following functions. * :ref:’EoS_importing’ * :ref: ‘TOV_solving’ * :ref: ‘__s’
- TOVsolver.main.OutputC_s(input_file='', density=[], pressure=[])[source]
- Calls function to open csv (if needed) and check equation of state validity.
Then calls function to calculate speed of sound.
- Parameters:
file_name (string, optional) – string. CSV file to be opened.
density (array, optional) – numpy 1Darray. Passed into a check function and returned if valid.
pressure (array, optional) – numpy 1Darray. Passed into a check function and returned if valid.
- Returns:
numpy 1D array. List of speeds of sound.
- Return type:
C_s (array)
- TOVsolver.main.OutputMR(input_file='', density=[], pressure=[])[source]
Outputs the mass, radius, and tidal deformability :param file_name: string. CSV file to be opened. :type file_name: string, optional :param density: numpy 1Darray. Passed into a check function and returned if valid. :type density: array, optional :param pressure: numpy 1Darray. Passed into a check function and returned if valid. :type pressure: array, optional
- Returns:
tuple with mass, radius.
- Return type:
MR (tuple)
- TOVsolver.main.OutputMRT(input_file='', density=[], pressure=[])[source]
Outputs the mass, radius, and tidal deformability :param file_name: string. CSV file to be opened. :type file_name: string, optional :param density: numpy 1Darray. Passed into a check function and returned if valid. :type density: array, optional :param pressure: numpy 1Darray. Passed into a check function and returned if valid. :type pressure: array, optional
- Returns:
tuple with mass, radius, and tidal deformability.
- Return type:
MRT (tuple)
- TOVsolver.main.OutputMRTpoint(central_density, energy_density, pressure)[source]
Outputs the mass, radius, and tidal deformability (single point) :param central_density: central density that we want to compute :type central_density: float :param density: numpy 1Darray. Density of EoS :type density: array, optional :param pressure: numpy 1Darray. pressure of EoS :type pressure: array, optional
- Returns:
tuple with mass, radius and tidal.
- Return type:
MRT (tuple)
- TOVsolver.main.OutputMRpoint(central_density, energy_density, pressure)[source]
Outputs the mass, radius, and tidal deformability (single point) :param central_density: central density that we want to compute :type central_density: float :param density: numpy 1Darray. Density of EoS :type density: array, optional :param pressure: numpy 1Darray. pressure of EoS :type pressure: array, optional
- Returns:
tuple with mass, radius.
- Return type:
MR (tuple)