Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 3.21 KB

README.md

File metadata and controls

52 lines (35 loc) · 3.21 KB

SignedMCRT logo made in signedMCRT

DOI codecov workflow License

view - Documentation

SignedMCRT

SignedMCRT is a Monte Carlo Radiation Transfer (MCRT) code that uses signed distance functions (SDF) to represent the geometry as opposed to the usual voxel or mesh represention. The use of SDFs allows modelling of smooth surfaces more accuratly than other methods.

Instructions

Code prerequisites: Fortran 2018 compliant complier e.g gfortran-9+ or intel oneAPI Fortran. Only tested on Linux and Mac. Unlikely to run on Windows without some changes.

To run the code you can use:

See this for more detailed instructions and details on the code and build systems used.

Publication

The code in this repo forms the basis for the following publications:

Paper describing operation of signedMCRT: https://doi.org/10.1117/1.JBO.27.8.083003

Paper describing of an application of signedMCRT: https://doi.org/10.1364/OE.451496

Data created with this code can be found at: https://doi.org/10.5281/zenodo.5780513

Example of SDF models produced by signedMCRT

SDF of University of St Andrews crest. SVG of crest was simplified in Inkscape and then exported using svg.f90 to line segments and assigned optical properties before being illuminated uniformly by light. Image of SDF model of university crest

Comparison of voxel and SDF models of a glass bottle with scattering contents. The voxel model exhibits un-physical reflections and refractions. Comparison of light distribution in voxel and SDF bottle

Comparison of voxel interpolated surface normals, mesh based Monte Carlo (MMC), and SDFs model of a sphere being illuminated by a tophat laser beam. Comparison of sMCRT to voxel and smoothed surface normal method

SDF information

List of SDF functions https://iquilezles.org/www/articles/distfunctions/distfunctions.htm

What can be modelled with SDF's https://iquilezles.org/www/articles/raymarchingdf/raymarchingdf.htm