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=[], central_density_range=array([0.56876897, 0.60459773, 0.64268346, 0.68316834, 0.72620351, 0.77194962, 0.82057744, 0.87226849, 0.92721574, 0.98562431, 1.04771224, 1.11371131, 1.1838679, 1.25844389, 1.33771768, 1.42198521, 1.51156105, 1.60677958, 1.70799627, 1.81558894, 1.92995926, 2.05153417, 2.1807675, 2.3181417, 2.46416957, 2.61939626, 2.78440122, 2.95980042, 3.14624863, 3.34444187, 3.55512, 3.77906948, 4.01712632, 4.2701792, 4.53917277, 4.82511119, 5.12906187, 5.45215947, 5.79561012, 6.16069593, 6.54877978, 6.9613104, 7.39982776, 7.86596887, 8.36147385, 8.88819242, 9.44809084, 10.04325923, 10.67591936, 11.34843297]))[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)