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

Adding meshsource example with a regular mesh #278

Merged
merged 4 commits into from
Apr 2, 2024

Conversation

shimwell
Copy link
Member

@shimwell shimwell commented Mar 29, 2024

this example shows users how to make a mesh source using a cylindrical mesh and a source term for each voxel.

this is a minimal example but a more realistic example could use the voxel location to look up properties of the plasma at each coordinate and customize the source energy and strength at each mesh voxel location

this could be combined with a function that looks up the location properties in the plasma and customizes (e.g temperature, strength) the source at that mexh voxel location for each source. For now I've put in a simple filter to set voxels with a radius below a limit to strength = 0

meshsource was added recently to the openmc develop branch and will be in the next release (which should be before TOFE conference)

Screenshot from 2024-03-29 22-38-17

@shimwell
Copy link
Member Author

CI error failing is unrelated, I will fix in anther PR
CadToDagmc.add_cadquery_object() got an unexpected keyword argument 'material_tags'

@shimwell shimwell merged commit 97c02a0 into main Apr 2, 2024
@shimwell shimwell deleted the adding_regular_mesh_based_meshsource branch April 5, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant