SOBPtools
A couple of python scripts I wrote to produce spread out bragg peak profiles in 2D (i.e. depth-dose curves)
Install / Use
/learn @afg1/SOBPtoolsREADME
SOBPtools
A couple of python scripts I wrote to produce spread out bragg peak profiles in 2D (i.e. depth-dose curves)
The individual Bragg peaks are produced by routines in the file BortfeldBraggPeak.py, according to the method found in Bortfeld's 1997 paper in Med. Phys. 24 (12) 2024-. This is a simple reapplication of the pencil beam algorithm to proton dose calculation, and includes the convolution with a straggling kernel to include straggling in the dose distribution.
Spread Out Bragg Peaks (SOBPs) are produced using routines in the file SOBP.py. These follow the equations found in Jette & Chen, 2011 (Phys. Med. Biol. 56 N131). I have included the lookup table specified in their paper, but it is not currently used because I needed a flat-topped SOBP picture for a figure. The fudge factor of p=1.7 (rather than 1.77 which is canonical) results in the correct behaviour only for the specific case in the bottom of the SOBP.py file. In future, I will be switching to use the lookup table.
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
