Code Monkey home page Code Monkey logo

signedmcrt's Introduction

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

signedmcrt's People

Contributors

hollismark avatar lewisfish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hollismark

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.