Python wrapper and GUI for running SRIM calculations
Project description
CCO Srim Utility
This utility is used to convert the output of SRIM into an energy loss vs. depth format with sensible units.
NEW GUI MODE!!!
- The ccosrimutil now can be run in a GUI mode (PyQt6 + Matplotlib) by not providing any command line arguments (
python ccosrimutil_gui.py)
Using
SRIM Calculation
- Open SRIM
- Go to Stopping/Range Tables
- For the Ion section, choose appropriate ion species and change the highest energy to that of the desired ion beam (ex. 950 MeV Au for M-Branch GSI)
- Create composition
- Important: Make sure to keep at least 1 character AT ALL TIMES in any numeric field in SRIM. If a numeric field is ever empty, it will crash the program.
- Enter correct density
- Usually can find this info from ICSD or an approximation using Vegard's law
- New Feature: This SRIM utility now recalculates depth and energy loss based on a user provided value which means the value entered into SRIM is less important/can be ignored.
- Set stopping power units to MeV/(mg/cm^2)
- Press Calculate Table
- You should see a popup asking about output location. Press ok on this window to continue to the SRIM output
- You should now see a window containing text with the stopping information. Copy all the text from this window into a text file.
Using ccosrimutil
-
Download the latest version of this script
- For convenience, you can save this script in the same directory as your SRIM output text files
-
Open the directory with this utility's Python file and your SRIM text files in a terminal
-
Run
- GUI Vesion
- Run
python3 ccosrimutil_v5.pyorpython ccosrimutil_v5.py
- Run
- CLI Version
- run
python3 ccosrimutil_v5.py YOURTEXTFILE.txt -p=PACKINGFRACTION -r=YOURDENSITY --save=somefilename.datorpython ccosrimutil_v5.py YOURTEXTFILE.txt -p=PACKINGFRACTION -r=YOURDENSITY --save=somefilename.dat - Replace
YOURTEXTFILE.txtwith your SRIM text file name - Replace
PACKINGFRACTIONwith a value between 0.0 and 1.0 - Replace
YOURDENSITYwith the theoretical density of your composition - Replace
somefilename.datto an output name that makes sense. This data file will have energy loss vs. depth and associated ion energy.
- run
- GUI Vesion
-
The previous command will open up 2 plotting windows with your energy loss results.
-
All data used to generate the plots with be saved in the output file specified in the command after
--save=. This is just a normal text file with the data stored in columns. You can use this file to plot the data however you like.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file srimutil_ccoverstreet-0.0.1.tar.gz.
File metadata
- Download URL: srimutil_ccoverstreet-0.0.1.tar.gz
- Upload date:
- Size: 206.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32ce33526b037b9f92c7a546ff736e246d910ea73398c78c7d9cc66e37e34b78
|
|
| MD5 |
fd1c310470abb8fc53931c7246080d6d
|
|
| BLAKE2b-256 |
a3bd7d280e32028a1c4248a3bc8b6cdffe76b129202f9bc31e277cabc041f435
|
File details
Details for the file srimutil_ccoverstreet-0.0.1-py3-none-any.whl.
File metadata
- Download URL: srimutil_ccoverstreet-0.0.1-py3-none-any.whl
- Upload date:
- Size: 204.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4229b2bf0c9aed6825de1c07a9f7d09bd31bdc5cd4ad18562da867259e172387
|
|
| MD5 |
1ca47a69e9200af6029f18ba3f072d82
|
|
| BLAKE2b-256 |
fdd351d19e83d3482929cdde99c05e61fcec6f5fd611c50850f545dd2a21856a
|