Monte Carlo problem - mean free path to a star

Click For Summary

Homework Help Overview

The discussion revolves around a Monte Carlo simulation problem related to calculating the mean free path to a star in an infinitely large, static universe with a specific density of stars. The original poster presents a scenario based on Olber's paradox, where they seek to verify their computational results against theoretical calculations.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • The original poster attempts to apply a formula for mean free path derived from a similar 2D problem, questioning the validity of their results in a 3D context. They express uncertainty about the accuracy of their Monte Carlo program's output compared to their theoretical calculation.

Discussion Status

Some participants acknowledge the complexity of Monte Carlo problems and suggest that the original poster may need to clarify their request for confirmation of the formula used. There is an indication of differing numerical results from participants, but no consensus has been reached regarding the accuracy of the calculations or the algorithm employed.

Contextual Notes

The discussion highlights the assumptions made about the universe's homogeneity and the parameters used in the calculations, such as the density of stars and their radius. There is also mention of the potential need for higher precision in the computational approach.

Adoniram
Messages
93
Reaction score
6

Homework Statement


(We are to solve this with Monte Carlo programming. Based on the universe from Olber's paradox)
Suppose you are in an infinitely large, infinitely old universe in which the average
density of stars is n = 10^9 Mpc^−3 and the average stellar radius is equal to the Sun’s
radius R = 7 × 10^8 m. How far, on average, could you see in any direction before
your line of sight struck a star? (Assume standard Euclidean geometry holds true in
this universe.)

We are allowed to assume:
-The universe is static
-The stars are roughly homogeneously distributed
-Every star has radius = solar radius

Homework Equations


My thoughts:
l = 1/(n * sigma)
where sigma is the cross sectional area of interaction, or Pi R_sun^2

The Attempt at a Solution


I have working code and get a decent answer (with a LOT of waiting...) but I wanted to verify my answer. We had a similar 2D problem where we calculated the MFP of an arrow shot in a forest with average tree density of 0.005 trees per m^2, and tree radius of 1m.

I was easily able to verify my results by using the formula from section 2 (above), which was 100m. With a large enough forest, and enough runs, I was able to get ~100m from my Mathematica program.

For this 3D problem, I wanted to verify the answer (by hand) to confirm my program's results.

If the formula from part 2 can be applied here, where n= 10^9 Mpc^-3, and sigma = Pi*R_sun^2, I get:
MFP = 6.26 x 10^23 pc

(Keep in mind this is a homogeneously distributed universe, meaning no galaxies, no clusters, etc)

Anyway, my program gets around 5 x 10^24, so I'm wondering if my calculation is wrong, or if my program just needs higher precision or something...

Any help is appreciated!
 
Last edited:
Physics news on Phys.org
Thanks for the post! Sorry you aren't generating responses at the moment. Do you have any further information, come to any new conclusions or is it possible to reword the post?
 
Thanks for the bump. All the relevant information is there. I think MC problems are generally notoriously difficult, but maybe I should have posted this in a math section, since what I really wanted was just a confirmation of a formula to use for 3D mean free path...
 
Adoniram said:
Thanks for the bump. All the relevant information is there. I think MC problems are generally notoriously difficult, but maybe I should have posted this in a math section, since what I really wanted was just a confirmation of a formula to use for 3D mean free path...
I got the same formula from first principles. Numerically I get slightly less: 6.19E23. Maybe you need to post your algorithm.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
67
Views
8K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K