23 : _smi_params(moose_object->parameters()),
24 _smi_feproblem(*_smi_params.get<
FEProblemBase *>(
"_fe_problem_base")),
25 _smi_tid(_smi_params.have_parameter<
THREAD_ID>(
"_tid") ? _smi_params.get<
THREAD_ID>(
"_tid") : 0)
33 std::vector<SurrogateModel *> models;
37 .condition<AttribSystem>(
"SurrogateModel")
40 mooseError(
"Unable to find a SurrogateModel object with the name '" +
name +
"'");
62 return getSurrogateTrainerByName<SurrogateTrainerBase>(
_smi_params.
get<UserObjectName>(
name));
void mooseError(Args &&... args)
T & getUserObject(const std::string &name, unsigned int tid=0) const
TheWarehouse & theWarehouse() const
const InputParameters & _smi_params
Parameters of the object with this interface.
T & getSurrogateTrainer(const std::string &name) const
T & getSurrogateTrainerByName(const UserObjectName &name) const
FEProblemBase & _smi_feproblem
Reference to FEProblemBase instance.
SurrogateModelInterface(const MooseObject *moose_object)
static InputParameters validParams()
T & getSurrogateModel(const std::string &name) const
Get a SurrogateModel/Trainer with a given name.
T & getSurrogateModelByName(const UserObjectName &name) const
Get a sampler with a given name.
This is the base trainer class whose main functionality is the API for declaring model data.