Mesh-type Angular Distributions - #4135
Draft
j-fletcher wants to merge 18 commits into
Draft
j-fletcher wants to merge 18 commits into
j-fletcher wants to merge 18 commits into
Conversation
…gular flux accumulation
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR is intended to be merged after #4072.
Adds ability to sample over a mesh defined on the unit sphere. This is accomplished via a new angular mesh type, UnitSphereTriangularMesh, which discretizes the unit sphere into triangular cells. A straightforward sampling algorithm from [Arvo 1995] provides a means of uniformly sampling a point that lies within any given spherical triangular mesh cell, which is called by the new
MeshAngularmultivariate distribution type. Additionally, given information tallied on aUnitSpherePointsetmesh (via theMeshAngularFilter), a utility function is provided to triangularize the Voronoi diagram (i.e. the angular tally bins) corresponding to theUnitSpherePointsetand the corresponding data into a form which can be used to construct aMeshAngulardistribution.This will ultimately be useful for the automated generation (and use) of source biasing parameters, aided by adjoint flux information supplied by the Random Ray solver.
Reference
Arvo, James, “Analytic Methods for Simulated Light Transport.” PhD Thesis, Yale University, December 1995.
Checklist