Skip to content

1.38.4: why the two-stream model gives about half the Monte Carlo's Raman effect (DECISIONS section 155) - #136

Merged
tishibashi-cpu merged 2 commits into
mainfrom
dev
Dec 3, 2026
Merged

tishibashi-cpu merged 2 commits into
mainfrom
dev

Conversation

@tishibashi-cpu

Copy link
Copy Markdown
Owner

Author: T. Ishibashi takuya.ishibashi@kek.jp

Why Marshall & Smith's (1990) two-stream model gives about half the Monte Carlo's Raman effect in open question 7 (DECISIONS.md section 155). The package does not change; no shipped value changed.

Changes

  • DECISIONS.md section 155: the plan (committed first, edfb7f1) and its result.
  • tools/raman_mc.py: q7_step and --question7-chain, a chain of semi-analytic steps from the Monte Carlo (S0) to the two-stream model (S6), each changing one assumption: scattering and surface left out (S1, = q7_once), even emission (S2), beams straight down with E0 = Ed and K = a + b_b (S3), the Raman light as a diffuse stream at 1.5 a (S4), the factor mu_r = 1/2 of Eq. (15a) on the source (S5).
  • examples/data/raman_question7/chain.csv (18 cases).
  • OPEN_QUESTIONS.md question 7, DATA.md section 3, and examples/README.md (one sentence beside the model's 0.59 percent: the Monte Carlo gives up to 1.46 percent at 700 nm).
  • Tests: the chain re-read, both measures recounted, the quoted factors checked, two cases recomputed.
  • Version 1.38.4, site pages regenerated, CHANGELOG.

Result (measures set beforehand)

  1. Met: S5 is within 0.03 percent of the two-stream model in all 18 cases.
  2. The main cause is S5, mu_r = 1/2 on the source of downward Raman light in Eq. (15a) (factors on the reduction 0.500 to 0.920; median distance from 1 0.473). S3 (0.628 to 0.923) and S4 (1.034 to 1.358) move it in opposite directions and partly cancel. Recorded as a reading of the equation (the page does not derive mu_r), not as a confirmed misprint, so DATA.md's counts are unchanged.

Changed after the first run: S3's switch was at the wrong step index (S3 equal to S2 in every case); fixed before anything was recorded.

Tests

  • Full suite: 2135 passed (Python 3.11).
  • Outside the source tree (monte_carlo, packaging): passed, the new tests skipped as intended.
  • ruff 0.15.20, mypy 1.20.2 clean.
  • Not run locally: the older NumPy and Python 3.13/3.14 jobs.

Generated by Claude Code

@tishibashi-cpu
tishibashi-cpu merged commit fc98198 into main Dec 3, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant