Code Monkey home page Code Monkey logo

oblique_mc's Introduction

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

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 ๐Ÿ™‚!

@software{rnpnroblique2024,
	title     = {Oblique Incidence Monte Carlo},
	author    = {Palamar, Randy},
	year      = 2024,
	month     = 4,
	url       = {https://github.com/rnpnr/oblique_mc}
}

oblique_mc's People

Contributors

rnpnr avatar

Stargazers

 avatar

Watchers

 avatar

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.