Skip to content

Srlife moose interface#7

Draft
sagarbhatt0904 wants to merge 40 commits into
applied-material-modeling:mainfrom
sagarbhatt0904:srlifeMooseInterface
Draft

Srlife moose interface#7
sagarbhatt0904 wants to merge 40 commits into
applied-material-modeling:mainfrom
sagarbhatt0904:srlifeMooseInterface

Conversation

@sagarbhatt0904

Copy link
Copy Markdown

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

moose as a submodule.

srlife/moose_interface.py
MOOSE 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 output
  • extract_thm_pressures_to_dat — pulls pressure along z from the 1D elements in THM exodus
  • run_moose_sm_model — launches the MOOSE structural solve via nemlapp (see below)
  • read_tube_stress_and_temp: read solid mechanics solution and use in compute_moose_reliability

srlife/receiver.py
Modification here remove hardcoded moose executables. Modifications rely on environment variables to find MOOSE_DIR, MOOSE_THM, MOOSE_MPI, MOOSE_NPROCS

nemlapp
A small standalone MOOSE app that exposes NEML material models (CauchyStressFromNEML, ComputeThermalExpansionEigenstrainNEML) so the SM solve no longer needs a full deer build. run_moose_sm_model invokes the NEMLAPP env var.

install.sh
Simplified setup. ./install.sh builds srlife dependencies only; ./install.sh --with-moose initializes the moose submodule, builds the MOOSE Thermohydraulics module + nemlapp, and creates the srlifeMoose conda env. Conda / SEACAS paths are auto-detected so no manual config. The user needs NEML though.

brycepm2 and others added 30 commits April 16, 2025 10:54
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
…SM I/P

Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
@sagarbhatt0904 sagarbhatt0904 marked this pull request as draft May 1, 2026 15:42
@sagarbhatt0904 sagarbhatt0904 changed the base branch from srlife_manager to main May 1, 2026 19:36
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.

2 participants