https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
16template <typename ComputeValueType>
18class FEProblemBase;
19
22
26template <typename ComputeValueType>
27class SurrogateModelAuxKernelTempl : public AuxKernelTempl<ComputeValueType>,
29{
30public:
32
34
35protected:
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};
SurrogateModelAuxKernelTempl< RealEigenVector > SurrogateModelArrayAuxKernel
SurrogateModelAuxKernelTempl< Real > SurrogateModelAuxKernel
const InputParameters & parameters() const
Sets a value of auxiliary variables based on a surrogate model.
const unsigned int _n_params
number of parameters
virtual ComputeValueType computeValue() override
std::map< unsigned int, const ArrayVariableValue * > _array_var_params
The array variable parameters that _model is evaluated at.
static InputParameters validParams()
std::map< unsigned int, const VariableValue * > _var_params
The standard variable parameters that _model is evaluated at.
const SurrogateModel & _model
Pointers to surrogate model.
std::map< unsigned int, const PostprocessorValue * > _pp_params
The pp parameters that _model is evaluated at.
std::map< unsigned int, Real > _constant_params
Constant parameters that _model is evaluated at.
std::map< unsigned int, const Function * > _function_params
The function parameters that _model is evaluated at.
Interface for objects that need to use samplers.