Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Light Source Implementation into MC Object #14

Open
ImanKafian opened this issue Jul 12, 2023 · 1 comment
Open

Multiple Light Source Implementation into MC Object #14

ImanKafian opened this issue Jul 12, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ImanKafian
Copy link

Hi,

I would like to perform a Monte Carlo simulation with multiple light sources at the same time. My goal is to simulate the impact of ambient lighting on the optical signal. In literature, the ambient light is usually modeled as a percentage of specular reflectance added to the diffuse reflectance. However, I would like to have a more effective and objective way of simulating ambient light in the Monte Carlo simulation. Could you please give me some ideas and hints on how I can add multiple light sources to my MC object?

Thanks.

@xopto
Copy link
Owner

xopto commented Jul 14, 2023

Multiple light sources can be processed by adding the raw simulation results obtained by the individual sources. All the detectors come with a raw attribute that yields the unprocessed/raw collected weight. This approach requires multiple Mc instances, in case the source type is not the same for all the sources (e.g. UniformBeam, UniformRectangular, ...).

Alternatively, it should not be too difficult to implement a custom source that launches photon packets according to the desired spatial and intensity distribution. A good starting point for implementing a custom source would be the LineSource, UniformBeam, UniformRectangular, or UniformFiber sources.

@xopto xopto added the question Further information is requested label Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants