Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rnpnr/oblique_mc
Monte Carlo in Single Layer Biological Tissue
https://github.com/rnpnr/oblique_mc
biomedical-optics monte-carlo monte-carlo-simulation optics optics-simulation
Last synced: 24 days ago
JSON representation
Monte Carlo in Single Layer Biological Tissue
- Host: GitHub
- URL: https://github.com/rnpnr/oblique_mc
- Owner: rnpnr
- License: unlicense
- Created: 2024-04-04T12:42:26.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-04-26T03:52:54.000Z (7 months ago)
- Last Synced: 2024-04-26T04:39:58.819Z (7 months ago)
- Topics: biomedical-optics, monte-carlo, monte-carlo-simulation, optics, optics-simulation
- Language: C
- Homepage:
- Size: 620 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Oblique Incidence Monte Carlo
This code simulates an obliquely incident photon source (pencil
beam) on a scattering medium. It can simulate one incident point
source or many. The program has been tested on and is known to
work on Linux and Windows 10.![Diffuse Reflectance](example.png)
## Configuration
Configuration is changed by copying `config.def.h` to `config.h`
and editing it. This configuration is then baked into the compiled
binary. This helps the compiler optimize the binary for a faster
runtime and keeps the types of configuration variables clear.## Building
After copying over and editing `config.h` the program can be
compiled by running:```
./build.sh
```On Linux the only dependency is libc, on Windows winpthreads is
also required.## Running
The compiled program can be run as:
```
./mc output_filename_prefix
```Currently directories in `output_filename_prefix` are not checked
for existence prior to running so the program will fail to save
the output if you don't ensure this yourself.## Citations
If you intend on using this as a basis for any published works a
citation, while not required, would be appreciated 🙂!```bibtex
@software{rnpnroblique2024,
title = {Oblique Incidence Monte Carlo},
author = {Palamar, Randy},
year = 2024,
month = 4,
url = {https://github.com/rnpnr/oblique_mc}
}
```