Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kslong committed Jan 3, 2024
1 parent afe9c9f commit e729772
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/cv.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@
/**
* @brief Calculate the radius of a WD from its mass using a standard
* mass radius relation
* @param [in] double m The mas of the wd in gm
* @param [in] double m The mass of the wd in gm
*
* @return The predicted radius of the WD
* @return The predicted radius of the WD (in cm)
*
*
* @details
*
* @bug A refernce for this mass-radius relationshipe is needed
* This is the mass radius relationship given by
* Anderson, N 1988 (ApJ 225, 266)
*
**********************************************************/
double
Expand All @@ -47,7 +48,7 @@ wdrad (m)
{
double r;

m /= MSOL; // In Python, mass is stored in grams and so we need to convert to MSOL
m /= MSOL;

r = pow ((m / 1.458), 4. / 3.);
r = pow (1 - r, 0.47);
Expand All @@ -70,15 +71,14 @@ wdrad (m)
* @details
*
* The routine calculates the size of the Roche lobe of the primary
* and returns 0.9 of this value as a plausible extimate of the
* and returns 0.9 of this value as a plausible estimate of the
* size of the disk
*
* someone's thesis.
*
* ### Notes ###
*
* Various other choices are possible, e.g the circularization radius
* as discussed in Frank, King and Reine.
* as discussed in Frank, King and Raine (Accretion Power in Astophysics)
*
**********************************************************/
double
Expand Down

0 comments on commit e729772

Please sign in to comment.