Create fz-Serpent plugin for Serpent Monte Carlo code - #1
Conversation
Co-authored-by: yannrichet-asnr <148193180+yannrichet-asnr@users.noreply.github.com>
|
@copilot in ouptut, also get burnup and burnDays output, that should be arrays or matrix (like all previous results). Check that all these output are formatted as json matrix/array, for latter parsing (use json dump if needed). |
Co-authored-by: yannrichet-asnr <148193180+yannrichet-asnr@users.noreply.github.com>
Added
Empty arrays |
|
@copilot Also, the notebook is missing, as well as the CI (like in the template) |
Co-authored-by: yannrichet-asnr <148193180+yannrichet-asnr@users.noreply.github.com>
Added in commit ea0efef:
|
A Funz plugin for running parametric studies with the Serpent Monte Carlo reactor physics code. Uses serpentTools to parse result files.
Plugin Structure
.fz/models/Serpent.json- Model configuration with%comments,${var}syntax, output extraction via serpentTools.fz/calculators/Serpent.sh- Calculator script that detects and runssss2/serpentexecutable.fz/calculators/localhost_Serpent.json- Local calculator configurationOutput Variables
All outputs are formatted as JSON arrays/matrices for easy parsing:
absKeff[value, rel_error]per burnup stepanaKeffcolKeffimpKeffburnup[MWd/kgU, ...]per burnup step (empty for non-depletion)burnDays[days]per burnup step (empty for non-depletion)Example Files
examples/Serpent/input.inp- UOX fuel pin cell with parameterized enrichment, water density, geometry, and MC settingsexamples/Serpent/input_res.m- Sample Serpent result file for serpentTools parsing validationexample_usage.ipynb- Jupyter notebook demonstrating plugin usageCI/Testing
.github/workflows/ci.yml- CI workflow with JSON validation, shell script checks, fzi/fzc tests, and serpentTools parsing teststests/test_plugin.py- Plugin test suiteOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.