Skip to content

Commit f5347b1

Browse files
committed
minor edits to project 3 description
1 parent ac9404b commit f5347b1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

08-short-projects/project-3/project3_description_mcrt.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ Use log color scale to show dynamic range, choose your limits wisely.
487487

488488
2D histogram showing the angular distribution of escaping light:
489489

490-
- Use spherical coordinates (θ, φ) for packet escape directions
491-
- Create 2D histogram with θ (0 to π) and φ (0 to 2π) bins
490+
- Use spherical coordinates $(θ, φ)$ for packet escape directions
491+
- Create 2D histogram with ~(0 \to π)$ and ~(0 \to 2π)$ bins
492492
- Color shows escaped luminosity per solid angle
493493
- Should Reveal anisotropies due to stellar positions within the box
494494

@@ -553,7 +553,7 @@ Your memo should address both the physics and computational aspects. These topic
553553
3. Lost packets at boundaries (energy not conserved)
554554
4. Variable packet luminosities (breaks statistics)
555555
5. Not integrating opacities properly (missing temperature weighting)
556-
6. Wrong units in wavelength conversion (nm/μm to cm)
556+
6. Wrong units in wavelength conversion (nm/$\mu$m to cm)
557557

558558
## Validation Requirements
559559

@@ -628,19 +628,19 @@ Before you begin coding, these practical tips will save you hours of debugging:
628628

629629
- Pre-calculate and store grid boundaries (`x_min`, `x_max`, etc.) and cell size (Δx) as attributes to avoid recalculating them during packet propagation
630630

631-
- Save intermediate results (e.g., after every $10⁴$ packets) to avoid losing progress if your code crashes during long runs - Monte Carlo results are additive
631+
- Save intermediate results (e.g., after every $10^4$ packets) to avoid losing progress if your code crashes during long runs - Monte Carlo results are additive
632632

633633
**Debugging Strategy:**
634634

635-
- Start with `kappa` as a simple constant (e.g., 30000 cm²/g) before implementing the full Draine integration to isolate algorithmic bugs from opacity calculation bugs
635+
- Start with `kappa` as a simple constant (e.g., 30000 cm²/g) before implementing the full Draine integration to isolate algorithmic bugs from opacity calculation bugs
636636

637637
- During debugging, use `np.random.seed(42)` for reproducible results. Remove the seed for final runs to ensure proper Monte Carlo statistics
638638

639639
- If your calculated opacities differ significantly from expected ranges, check: (1) wavelength unit conversion to cm, (2) correct reading of dust/H mass from header, (3) proper Planck weighting with stellar temperature
640640

641641
**Numerical Robustness:**
642642

643-
- Use DIFFERENT random numbers for position sampling $(ξ₁, ξ₂)$ and direction sampling $(ξ₃, ξ₄)$ - reusing random numbers creates unwanted correlations
643+
- Use DIFFERENT random numbers for position sampling ($\xi_1$‚ $\xi_2$) and direction sampling $\xi_3$‚ $\xi_4$) - reusing random numbers creates unwanted correlations
644644

645645
- Handle the special case where a direction component is exactly zero (e.g., dx = 0) by setting the distance to that boundary to infinity rather than dividing by zero
646646

0 commit comments

Comments
 (0)