https://mooseframework.inl.gov
SurrogateModelAuxKernel.h
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 #pragma once
11 
12 #include "AuxKernel.h"
13 #include "SurrogateModel.h"
14 
15 // forward declarations
16 template <typename ComputeValueType>
19 
22 
26 template <typename ComputeValueType>
27 class SurrogateModelAuxKernelTempl : public AuxKernelTempl<ComputeValueType>,
29 {
30 public:
32 
34 
35 protected:
36  virtual ComputeValueType computeValue() override;
37 
40 
42  const unsigned int _n_params;
43 
45  std::map<unsigned int, const PostprocessorValue *> _pp_params;
47  std::map<unsigned int, const Function *> _function_params;
49  std::map<unsigned int, const VariableValue *> _var_params;
51  std::map<unsigned int, const ArrayVariableValue *> _array_var_params;
53  std::map<unsigned int, Real> _constant_params;
54 };
virtual ComputeValueType computeValue() override
SurrogateModelAuxKernelTempl(const InputParameters &parameters)
SurrogateModelAuxKernelTempl< Real > SurrogateModelAuxKernel
std::map< unsigned int, const PostprocessorValue * > _pp_params
The pp parameters that _model is evaluated at.
static InputParameters validParams()
std::map< unsigned int, const Function * > _function_params
The function parameters that _model is evaluated at.
const SurrogateModel & _model
Pointers to surrogate model.
const unsigned int _n_params
number of parameters
std::map< unsigned int, const ArrayVariableValue * > _array_var_params
The array variable parameters that _model is evaluated at.
std::map< unsigned int, Real > _constant_params
Constant parameters that _model is evaluated at.
Sets a value of auxiliary variables based on a surrogate model.
Interface for objects that need to use samplers.
const InputParameters & parameters() const
SurrogateModelAuxKernelTempl< RealEigenVector > SurrogateModelArrayAuxKernel
std::map< unsigned int, const VariableValue * > _var_params
The standard variable parameters that _model is evaluated at.