v0.5.0-pre #192
yardasol
announced in
Announcements
v0.5.0-pre
#192
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
This prerelease adds support for
OpenMCinSaltProcvia the addition of theDepcodeOpenMCclass. There are a few QoL issues I'm still working on for the full release, but all the critical OpenMC functionality is here in the prerelease!Enjoy!
Dependency Changes
SaltProcnow optionally requires the following package:pyne>=0.5.11→pyne>=0.5.11=nomoab_noopenmc*New Features
openmcsupport via DepcodeOpenMCBug Fixes
Script Changes
process_j312.bashXSDIRenvironment variable set by the user. This variable should point to the location where the user would like the library to be installedxsdirconvert.plscript (found on the Serpent wiki) to convert the MCNP.dirstyle file to the Serpent.xsdatastyle fileSERPENT_DATAandSERPENT_ACELIBvariables to.bashrcscripts/ci/openmc-xs.bash, that downloads the OpenMC HDF5 cross section library.download_endfb71.bash, that downloads the ENDF/B 7.1 cross section library -- including thermal scattering, decay, and fission yield data -- in ACE format.process_endfb71_to_openmc.bash, that converts the library created bydownload_endfb71.bashinto an OpenMC-usable HDF5 format. Requires OpenMC to be installed from source to use.openmc_msbr_model.py, that creates an OpenMC-usable MSBR model based on the Serpent MSBR model.Python API Changes
-ncommand line argument in favor of the newmpi_argsinput parameter-dcommand line argument to-s/--threads.mpi_argszaid_conventioninput parameternum_depsteps→n_depletion_stepsdepcode['template_inputfile_path']→depcode['template_input_file_path']depcode['template_input_file_path']input variable now has the following depletion-code-depentent types:strforSerpent2dictofstrtostrforopenmcdepcode['iter_inputfile']→ (removed)depcode['iter_matfile']→ (removed)depcode['npop']→ (removed)depcode['active_cycles']→ (removed)depcode['inactive_cycles']→ (removed)reactor['dep_step_length_cumulative']→depletion_timestepsreactor['timestep_type']reactor['timestep_units']Note
Variables that have been removed from the saltproc input file remain part of the
Depcodeclasses as attributes. Their use is unchanged, save for the fact they can no longer be initialized by the user from the SaltProc input file.Depcodetemplate_inputfile_path→template_input_file_pathread_depcode_info()→read_step_metadata()sim_info→step_metadataread_depcode_step_param()→read_neutronics_parameters()param→neutronics_parametersread_dep_comp()→read_depleted_materials()run_depcode()→run_depletion_step()write_mat_file()→update_depletable_materials()write_depcode_input()→write_runtime_input()iter_inputfile→runtime_inputfileiter_matfile→runtime_matfilegeo_files→geo_file_pathsDepcodeSerpent→SerpentDepcodetemplate_inputfile_path→template_input_file_pathread_depcode_info()→read_depletion_step_metadata()sim_info→step_metadataread_depcode_step_param()→read_neutronics_parameters()param→neutronics_parametersread_dep_comp()→read_depleted_materials()create_nuclide_name_map_zam_to_serpent()→map_nuclide_code_zam_to_serpent()run_depcode()→run_depletion_step()write_mat_file()→update_depletable_materials()get_nuc_name()→convert_nuclide_code_to_name()convert_nuclide_name_serpent_to_zam()→convert_nuclide_code_to_zam()create_iter_matfile()→create_runtime_matfile()replace_burnup_parameters()→set_power_load()write_depcode_input()→write_runtime_input()iter_inputfile→runtime_inputfileiter_matfile→runtime_matfilegeo_files→geo_file_pathschange_sim_par()→ (deleted)get_neutron_settings()_get_burnable_materials_file()_get_burnable_material_card_data()resolve_include_paths()_convert_name_to_nuccode()zaid_conventionOpenMCDepcodeis aDepcodesubclass that interfaces withopenmc. This class implements the following functionsrun_depletion_step()write_saltproc_openmc_tallies()convert_nuclide_code_to_name()switch_to_next_geometry()write_runtime_input()write_depletion_settings()write_saltproc_openmc_tallies()app.pyreprocessing()→reprocess_materials()refill()→refill_materials()read_feeds_from_input→get_feeds()read_processes_from_input→get_extraction_processes()read_dot()→get_extraction_process_paths()Processcalc_rem_efficiency()→calculate_removal_efficiencyReactordep_step_length_cumulative→depletion_timestepstimestep_unitstimestep_typeSimulationcore_number→ (removed)node_number→ (removed)_add_missing_nuclides()Spargercalc_rem_efficiency()→calculate_removal_efficiencySeparatorcalc_rem_efficiency()→calculate_removal_efficiencyContributors
The following people contributed code to this release of SaltProc:
Reviewers
The following people reviewed code for this release of SaltProc:
This discussion was created from the release v0.5.0-pre.
Beta Was this translation helpful? Give feedback.
All reactions