idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.71k stars 1.04k forks source link

Add MOOSE specific `neml2::get_model` method #28486

Open dschwen opened 2 weeks ago

dschwen commented 2 weeks ago

Motivation

We'd like to enable stronger coupling between MOSOE and custom NEML2 models and teh ability of NEML2 models to access certain MOOSE APIs like the DataFileInterface. For example ANN based surrogates should be able to access model data stored in application data folders.

Design

Pass in a pointer to the MooseApp as an extra option when building the NEML2 model.

Impact

Added capability. Sorry, @hugary1995 I need this to enable testing in installed applications and for tighter Bison integration.

hugary1995 commented 2 weeks ago

Are you working on this, or should I?