Srlife moose interface#7
Draft
sagarbhatt0904 wants to merge 40 commits into
Draft
Conversation
Save as member of ThermohydraulicsThermalSolver after successful solve Then pass as arg to flowpath.solve()
srlife/interface.py has funcitons to facilitate interacting with library Added suite of tests to check funcitonality Added manual workflows to test Updated test to work on any machine More ssmall fixes LastFix
…e input file if the list only had one entry
…SM I/P Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
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.
Summary
This PR adds a MOOSE based structural solution capability to srlife with some modifications to improve previous MOOSE based THM capability. Some major additions
mooseas a submodule.srlife/moose_interface.pyMOOSE structural-mechanics interface and reliability post-processor. Major functions:
create_moose_sm_inputs/build_structural_input— generates one MOOSE .i per receiver panel from THM exodus outputextract_thm_pressures_to_dat— pulls pressure along z from the 1D elements in THM exodusrun_moose_sm_model— launches the MOOSE structural solve vianemlapp(see below)read_tube_stress_and_temp: read solid mechanics solution and use incompute_moose_reliabilitysrlife/receiver.pyModification here remove hardcoded moose executables. Modifications rely on environment variables to find MOOSE_DIR, MOOSE_THM, MOOSE_MPI, MOOSE_NPROCS
nemlappA small standalone MOOSE app that exposes NEML material models (CauchyStressFromNEML, ComputeThermalExpansionEigenstrainNEML) so the SM solve no longer needs a full
deerbuild.run_moose_sm_modelinvokes theNEMLAPPenv var.install.shSimplified setup.
./install.shbuilds srlife dependencies only;./install.sh --with-mooseinitializes themoosesubmodule, builds the MOOSE Thermohydraulics module + nemlapp, and creates thesrlifeMooseconda env. Conda / SEACAS paths are auto-detected so no manual config. The user needs NEML though.