https://mooseframework.inl.gov
SurrogateModel.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #include "SurrogateModel.h"
11 #include "SurrogateTrainer.h"
12 #include "Sampler.h"
13 #include "StochasticToolsApp.h"
14 
17 {
22  params.addParam<UserObjectName>(
23  "trainer",
24  "The SurrogateTrainer object. If this is specified the trainer data is automatically "
25  "gathered and available in this SurrogateModel object.");
26  params.registerBase("SurrogateModel");
27  params.registerSystemAttributeName("SurrogateModel");
28  return params;
29 }
30 
32  : MooseObject(parameters),
33  SamplerInterface(this),
36  /*read_only=*/true,
37  isParamValid("trainer")
38  ? getSurrogateTrainer("trainer").modelMetaDataName()
39  : _type + "_" + name())
40 {
41 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
void registerSystemAttributeName(const std::string &value)
void registerBase(const std::string &value)
static InputParameters validParams()
const std::string name
Definition: Setup.h:20
static InputParameters validParams()
Interface for objects that need to use samplers.
SurrogateModel(const InputParameters &parameters)
static InputParameters validParams()
static InputParameters validParams()
An interface class which manages the model data save and load functionalities from moose objects (suc...