SSC/Structure/Polytropes/Numerical

From JETohlineWiki
Jump to navigation Jump to search

Polytropic Spheres[edit]


Lane (1870)

 


Part I:  Isolated Polytropes

 


Part II:  Known Analytic Solutions

 


Part III:  Numerical Solutions

 

Numerical Solutions[edit]

Here we explain how an Excel workbook can be used to numerically solve the Lane-Emden equation, evaluating the Lane-Emden function across a one-dimensional, discrete grid.

Techniques[edit]

HSCF Technique[edit]

via
Self-Consistent
Field (SCF)
Technique

On the first spreadsheet within the workbook, we establish the following columns of number:

  • Column A:   Labeled ri/R (for i between 1 and N), that represents a discrete radial grid of spacing, Δ=(N1)1; each row gives the radial coordinate location of the ith zone, starting from r1/R=0 and ending at rN/R=1.
  • Column B:   Labeled rhfi (for i between 1 and N-1); each row gives the radial coordinate of the mid-point of a grid zone.
  • rhfi12[riR+ri+1R].

  • Column C:   Labeled ρi (for i between 1 and N-1); each row provides an initial guess for the mass-density of the grid zone. Usually it is sufficient to guess, ρi=1 throughout. For an n=0 polytrope, this proves also to be the correct final density profile.
  • Column D:   Labeled Mi (for i between 1 and N); the ith row gives the integrated mass enclosed interior to the radial grid coordinate, ri/R. Specifically, M1=0, and thereafter, beginning with zone, i=2,
  • Mi=Mi1+4πρi13[(riR)3(ri1R)3].

  • Note that, Mtot=MN.
  • Column E:   Labeled gi (for i between 2 and N); each row tabulates the inwardly directed gravitational acceleration that is felt at the outer edge of each grid zone. Specifically,
  • gi=GMi(ri/R)2.

  • Column F:   Labeled Φi (for i between 1 and N); each row gives the value of the gravitational potential at the mid-point of a grid zone. Here, we start by specifying the value of the potential just (specifically, half a radial grid-zone) outside the surface of the configuration, where it should be, ΦN=GMtot/(1+Δ/2). Then, working from the surface, inward and, given that, g=dΦ/dr, we use the corresponding finite-difference representation of the radial derivative and set,
  • ΦiΦi1Δ

    =

    gi

    Φi1

    =

    ΦigiΔ.

  • Note that the value of the gravitational potential at the surface is not ΦN but, rather, must be Φsurf=GMtot/R.
  • Furthermore, note that a lop-sided Taylor-series expansion about the center of the configuration provides the following good approximation to the gravitational potential at the center:   Φc(9Φ1Φ2)/8.
  • Note as well that all of these numerically determined values of the gravitational potential can be checked against the known analytic expression for the radial profile of the potential in a uniform-density sphere.
  • Column G:   Labeled Hi (for i between 1 and N-1); each row provides the value of the fluid enthalpy at the center of a grid cell. Adopting the convention that the enthalpy is zero at the surface of the configuration, and given that the enthalpy and the gravitational potential must sum to zero throughout the configuration, we have,
  • Hi=ΦsurfΦi.

  • At the center of the configuration, we have, Hc=ΦsurfΦc.
  • Column H:   Labeled Hnorm (for i between 1 and N-1); each row provides the value of the fluid enthalpy, renormalized to the central value, specifically,
  • [Hnorm]i=HiHc.


The second spreadsheet within the workbook should be initially created by generating a copy of the first spreadsheet. Then:

  • Column C:   Labeled ρi (for i between 1 and N-1); generate a new, improved guess for the normalized mass-density at each grid zone based on the corresponding value of the normalized enthalpy from the previous spreadsheet/iteration. Specifically, given that the relationship between the density and enthalpy in a polytrope of index, n, is, ρHn, we should set,
  • {ρiρc}sheet2={[Hnorm]in}sheet1.

Straight Numerical Integration[edit]

via
Direct
Numerical
Integration

The above governing relation may be rewritten as,

ξθ'+2θ'

=

ξθn.

We'll adopt the following finite-difference approximations for the first and second derivatives on a grid of radial spacing, Δξ:

θi

θ+θ2Δξ

and,

θi

θ+2θi+θΔξ2.

Our finite-difference approximation of the governing equation is, then,

ξi[θ+2θi+θΔξ2]+2[θ+θ2Δξ]

=

ξiθin

ξi[θ+2θi+θ]+Δξ[θ+θ]

=

Δξ2ξiθin

θ+

=

2ξiθi+θ(Δξξi)Δξ2ξiθinΔξ+ξi.

Now, for the first two steps away from the center — where, θi=θ0=1 and ξi=ξ0=0 — we will use the following power-series expansion (see, for example, eq. 62 from §5 in Chapter IV of [C67]) to determine the value of θi:

θ1

=

1Δξ26+nΔξ4120n378(n518)Δξ6,

and,

θ2

=

1(2Δξ)26+n(2Δξ)4120n378(n518)(2Δξ)6.

Results[edit]

Tabulated Global Properties[edit]

Here, drawing from tables that have been previously published by other authors, we record numerically determined properties of polytropic models having a fairly wide range of polytropic indexes. First, we draw from Table 4 (p.96) of [C67] . To convert from his tabulated variables to our desired 3 structural form-factors, our normalized equilibrium radius (see earlier ASIDE), and the "virial" (drawn from a more general overview), note that for isolated polytropes,

𝔣M

=

(ρcρ¯)1=[3θ'ξ]ξ1,

(5n)𝔣W

=

5𝔣M2,

(5n)𝔣A

=

[(4π3)Wn]1=3(n+1)(θ')ξ12,

xeqReqRnorm

=

[4π(n+1)n]1/(n3)ξ1(ξ2θ')ξ1(1n)/(n3),

Virial

=

(5n)[bnxeq(n3)/na3]

 

=

(34π)1/n(5n)𝔣A𝔣M(n+1)/nxeq(n3)/n1.


From Table 4 of [C67]
Copied Directly from Table (1st 5 columns)     …     Implied Values of 3 Structural Form Factors, xeq, and Virial (last 5 columns)
n           xi_1            "mass"       rho_c/rho_avg       W_n             f_M             (5-n)f_W          (5-n)f_A        x_eq        Virial

0          2.4494           4.8988         1              0.119366       1                 5                 2.00000         0.620335        ---
0.5        2.7528           3.7871         1.8361         0.26227        0.544632645       1.483123592       0.910254        0.831089     -0.19009
1          3.14159          3.14159        3.28987        0.392699       0.303963378       0.461968677       0.607927        1.253313      3.0E-06
1.5        3.65375          2.71406        5.99071        0.77014        0.166925122       0.139319982       0.309857        2.357285      2.4E-06
2          4.35287          2.41105       11.40254        1.63818        0.087699758       0.038456238       0.145730        7.517481      1.4E-06
2.5        5.35528          2.18720       23.40646        3.90906        0.042723248       0.00912638        0.061072      186.3666        1.6E-08
3          6.89685          2.01824       54.1825        11.05066        0.018456144       0.001703146       0.0216035          ---          ---
3.25       8.01894          1.94980       88.153         20.365          0.011343913       0.000643422        0.0117227      3.3265E-06    2.9E-06
3.5        9.53581          1.89056      152.884         40.9098         0.006540907       0.000213917       0.00583558      0.00166854    2.2E-06
4         14.97155          1.79723      622.408        247.558          0.001606663       1.29068E-05       0.00096435      0.051854      6.1E-06
4.5       31.83646          1.73780     6189.47        4922.125          0.000161565       1.30516E-07       4.8502E-05      0.284868     -5.9E-05
4.9      169.47             1.73205        9.348E+05      3.693E+06      1.06975E-06       5.7218E-12        6.4645D-08      2.129056      1.5E-04

The column labeled "mass" contains the tabulated quantity, (ξ2θ')ξ1.



From Table 2.5.2 (p. 77) of Horedt (2004)   —   "Polytropic Spheres (N = 3)"
Copied Directly from Table (1st 3 columns)     …     Implied Values (last 7 columns)
n	    xi_1	    theta'	 "mass"	       rho_c/rho_avg	    W_n	           f_M	          (5-n)f_A	   x_eq	        Virial
0	2.44948974	-8.164966E-01	4.898980	1.000000	1.193662E-01	1.000000E+00	2.000000E+00	6.2035049E-01	
0.5	2.75269805	-4.999971E-01	3.788651	1.835143	2.122091E-01	5.449168E-01	1.124987E+00	8.3099030E-01	0.0E+00
1	3.14159265	-3.183099E-01	3.141593	3.289868	3.926990E-01	3.039636E-01	6.079272E-01	1.2533141E+00	0.0E+00
1.5	3.65375374	-2.033013E-01	2.714055	5.990704	7.701402E-01	1.669253E-01	3.099856E-01	2.3572860E+00	0.0E+00
2	4.35287460	-1.272487E-01	2.411047	1.140254E+01	1.638182E+00	8.769977E-02	1.457301E-01	7.5164793E+00	0.0E+00
2.5	5.35527546	-7.626491E-02	2.187199	2.340646E+01	3.909062E+00	4.272324E-02	6.107153E-02	1.8636634E+02	0.0E+00
3	6.89684862	-4.242976E-02	2.018236	5.418248E+01	1.105068E+01	1.845615E-02	2.160341E-02		
3.5	9.53580534	-2.079098E-02	1.890557	1.528837E+02	4.090983E+01	6.540920E-03	5.835575E-03	1.6685566E-03	0.0E+00
4	1.49715463E+01	-8.018079E-03	1.797230	6.224079E+02	2.475594E+02	1.606664E-03	9.643439E-04	5.1854394E-02	0.0E+00
4.5	3.18364632E+01	-1.714549E-03	1.737799	6.189473E+03	4.921842E+03	1.615646E-04	4.850469E-05	2.8486849E-01	0.0E+00
4.99	1.75818915E+03	-5.598955E-07	1.730765	1.046736E+09	4.237887E+10	9.553503E-10	5.633289E-12	2.3460204E+01	2.2E-15

The column labeled "mass" contains the tabulated quantity, (ξ2θ')ξ1.

Plotted Structural Profiles[edit]

Using the just-described numerical techniques, we have solved the polytropic Lane-Emden equation on a 200-zone, uniform grid for a variety of values of the polytropic index. In each case we have recorded how the dimensionless enthalpy, θn(ξ), and its first radial derivative, θn'(ξ)dθn/dξ, vary with ξ, from the center of the polytropic configuration to its surface. For the record, these tabulated results reside in the following DropBox files:

  • n = 2.5: (10 SCF iterations)   WorkFolder/Wiki edits/HSCF/n25.xlsx
  • n = 3: (19 SCF iterations)   WorkFolder/Wiki edits/HSCF/n300.xlsx
  • n = 3.005: (15 SCF iterations)   WorkFolder/Wiki edits/HSCF/n3005.xlsx
  • n = 3.05: (15 SCF iterations)   WorkFolder/Wiki edits/HSCF/n305.xlsx
  • n = 3.5: (18 SCF iterations)   WorkFolder/Wiki edits/HSCF/n25.xlsx
  • n = 6: (direct integration)   WorkFolder/Wiki edits/EmbeddedPolytropes/N6.xlsx

For each of these models, as indicated (n = 2.5, 3, 3.005, 3.05, 3.5, 6), Figure 4 illustrates how the normalized mass, M/MSWS, varies with the normalized radius, R/RSWS, where the definition of these two functions,

MMSWS

(n34π)1/2θn(n3)/2ξ2|dθndξ|,

RRSWS

(n4π)1/2ξθn(n1)/2,

has been drawn from an accompanying discussion of pressure-truncated polytropic configurations. In four of the Figure 4 panels, we have compared the profile of our numerically determined polytropic function (curve defined by 200 small, black circular markers) to results (7 - 9 larger, blue circular markers) taken from Table 2.5.1 of Horedt (2004) — see, specifically the segment of his table on pp. 74 - 75 that applies to polytropic spheres — in an effort to demonstrate that our numerically determined solutions are accurate.

Figure 4:   Numerically Determined Solutions to the Polytropic Lane-Emden Equation

n = 2.5 equilibrium sequence n = 3 equilibrium sequence n = 3.005 equilibrium sequence
file = Dropbox/WorkFolder/Wiki edits/HSCF/n25.xlsx --- worksheet = Horedt_n25 file = Dropbox/WorkFolder/Wiki edits/LinearPerturbation/n300.xlsx --- worksheet = Horedt_n300 file = Dropbox/WorkFolder/Wiki edits/HSCF/n3005.xlsx --- worksheet = Horedt_n3005
n = 3.05 equilibrium sequence n = 3.5 equilibrium sequence n = 6 equilibrium sequence
file = Dropbox/WorkFolder/Wiki edits/HSCF/n305.xlsx --- worksheet = Horedt_n305 file = Dropbox/WorkFolder/Wiki edits/HSCF/n35.xlsx --- worksheet = Horedt_n35 file = Dropbox/WorkFolder/Wiki edits/EmbeddedPolytropes/N6.xlsx --- worksheet = PolytropeN6 (2)

Data examples from Table 2.5.1 (pp. 74 - 75) of Horedt (2004):

n ξ θn dθndξ RRSWS MMSWS
2.5 4.00000 0.1376807 - 0.1340534 0.4032551 3.926310
3.0 5.00000 0.1108198 - 0.08012604 0.2707342 2.936234
3.5 5.00000 0.1786843 - 0.07362030 0.3065541 2.210326
6.0 5.00000 0.3973243 - 0.05113662 0.3437981 1.327430

Emden's (1907) Tabulated Data[edit]

From Table 13 (p. 84) of Emden (1907)   —   "Global Properties"
n	xi_1		- theta'	2nd deriv.	"mass"		rho_c/rho_avg
0	2.4494		0.81647		-0.33333	4.8988		1
0.5	2.7528		0.49975		0.36309		3.7871		1.8361
1	3.14159		0.31831		0.20264		3.14159		3.2899
1.5	3.6571		0.20316		0.11355		2.7176		6.0003
2	4.3518		0.12729		0.06262		2.4107		11.396
2.5	5.4172		0.075		0.02795		2.201		24.076
3	6.9011		0.04231		0.01282		2.015		54.36
4	14.999		0.00803		0.00107		1.8064		623.4
4.5	32.14		0.00168		0.000104	1.7354		6377.7
4.9	169.47		6.04E-05	4.208E-07	1.73554		9.485E+05
5	infinity	0		0		sqrt(3)		infinity

The column labeled "mass" contains the tabulated quantity, (ξ2θ')ξ1.


Horedt's (1986) Tabulated Data[edit]

G. P. Horedt (1986), Astrophysics and Space Science, Vol. 126, Issue 2, pp. 357 - 408: Seven-digit tables of Lane-Emden functions

 

In Table I we present seven digit numerical solutions of the Lane-Emden equation for the plane-parallel (N = 1), cylindrical (N = 2), and spherical (N = 3) case for polytropic indices of n=10,5,4,3,2,1.5,1.01,0.9,0.5,0,0.5,1,1.5,2,3,4,5,6,10,20,±, supplemented by n=2.5,3.5,4.5, and 4.99 for the spherical case.

In Table II some finite boundary values of polytropic slabs, cylinders, and spheres are summarized. For polytropic spheres (N = 3) we have also quoted boundary values near the minimum of the dimensionless mass ξ12θ1, occurring at n ≈ 4.823 (Z. F. Seidov and R. Kh. Kuzakhmedov, 1978).

Focusing specifically on the spherically symmetric (N = 3) configurations, we list here the page number(s) on which the table associated with each individual polytropic index can be found in Horedt (1986).

Spherical (N = 3)
Configurations
n page(s) ξ1
- 10 386 → 387
- 5 387 → 388
- 4 388 → 389
- 3 389
- 2 390
- 1.5 390 → 391
- 1.01 391 → 392
- 0.9 392 → 393 2.05040073E+00
- 0.5 393 2.20858842E+00
0 393 → 394 √6 = 2.44948974E+00
0.5 394 2.75269805E+00
1 394 → 395 π = 3.14159265E+00
1.5 395 3.65375374E+00
2 395 → 396 4.35287460E+00
2.5 396 → 397 5.35527546E+00
3 397 → 398 6.89684862E+00
3.5 398 → 399 9.53580534E+00
4 399 1.49715463E+01
4.5 399 → 400 3.18364632E+01
4.99 400 → 401 1.75818915+03
5 401 → 402
6 402 → 403
10 403 → 404
20 404 → 405
± 405 → 406