23 : _smi_params(moose_object->parameters()),
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));
const InputParameters & _smi_params
Parameters of the object with this interface.
T & getUserObject(const std::string &name, unsigned int tid=0) const
void mooseError(Args &&... args)
T & getSurrogateModelByName(const UserObjectName &name) const
Get a sampler with a given name.
FEProblemBase & _smi_feproblem
Reference to FEProblemBase instance.
T & getSurrogateModel(const std::string &name) const
Get a SurrogateModel/Trainer with a given name.
TheWarehouse & theWarehouse() const
T & getSurrogateTrainer(const std::string &name) const
T & getSurrogateTrainerByName(const UserObjectName &name) const
This is the base trainer class whose main functionality is the API for declaring model data...
static InputParameters validParams()
SurrogateModelInterface(const MooseObject *moose_object)
const Elem & get(const ElemType type_in)