https://mooseframework.inl.gov
SurrogateModelScalarAux.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 "AuxScalarKernel.h"
13 #include "SurrogateModel.h"
14 
19 {
20 public:
22 
24  void initialSetup() override;
25 
26 protected:
27  virtual Real computeValue() override;
28 
31 
33  unsigned int _n_params;
34 
36  std::vector<const Real *> _scalar_var_params;
37  std::vector<unsigned int> _scalar_var_indices;
38  unsigned int _n_scalar;
40 
42  std::vector<const PostprocessorValue *> _pp_params;
43  std::vector<unsigned int> _pp_indices;
44  unsigned int _n_pp;
46 
48  std::vector<Real> _real_params;
49  std::vector<unsigned int> _real_indices;
50  unsigned int _n_real;
52 };
std::vector< unsigned int > _scalar_var_indices
const SurrogateModel & _model
Pointers to surrogate model.
SurrogateModelScalarAux(const InputParameters &parameters)
std::vector< unsigned int > _pp_indices
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface for objects that need to use samplers.
unsigned int _n_params
number of parameters
const InputParameters & parameters() const
Sets a value of a scalar variable based on a surrogate model.
virtual Real computeValue() override
std::vector< const PostprocessorValue * > _pp_params
the pp parameters that _model is evaluated at
std::vector< Real > _real_params
the real parameters that _model is evaluated at
std::vector< unsigned int > _real_indices
std::vector< const Real * > _scalar_var_params
the real parameters that _model is evaluated at