Glad to announce that our #GPU-accelerated open-source photon simulator #mmc now supports Python https://lnkd.in/eTamhFcf MMC, or mesh-based #MonteCarlo, is a fast, physically accurate light transport simulator widely used in biophotonics research. MMC utilizes tetrahedral/triangular meshes, making it possible to model light transport in complex-shaped anatomical structures such as human tissues. Because of this capability, it serves as the gold-standard for validating new biophotonics simulation methods, even among other Monte Carlo simulators. The recently port of mesh-generation toolbox #pyiso2mesh makes a perfect duo for #mmc, here is how you can quickly build a physically accurate photon simulation in just a few lines of #Python code #================================= import pmmc import numpy as np import matplotlib.pyplot as plt import iso2mesh as i2m node, face, elem = i2m.meshabox([0, 0, 0], [60, 60, 60], 10, 100) # create a mesh gpus = pmmc.gpuinfo() # list all available GPUs res = pmmc.run(nphoton=1000000, node=node, elem=elem, elemprop=np.ones(elem.shape[0]), tstart=0, tend=5e-9, tstep=5e-9, srcpos=[30,30,0], srcdir=[0,0,1], prop=[[0, 0, 1, 1], [0.005, 1, 0.01, 1.37]]) plt.imshow(np.log10(res['flux'][30,:, :].squeeze())) plt.show() # for more complex simulations, see attached screenshot
Exciting developments. The integration of Python will streamline simulations significantly. 🖥️ #Innovation
Qianqian Fang Maybe this comment arrives a bit late but this library is AWESOME!!! I cannot thank you enough for pmcx for python! A complete game changer in the industry!
Exciting work!! I can still remember when I first use the matlab simulator developed by you 5 years ago, and now it comes to GPU-accelerated python simulator! Really appreciate your work and your teams effort on these platforms and methods!!