https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
20public:
22
24 void initialSetup() override;
25
26protected:
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};
const InputParameters & parameters() const
Interface for objects that need to use samplers.
Sets a value of a scalar variable based on a surrogate model.
const SurrogateModel & _model
Pointers to surrogate model.
std::vector< const PostprocessorValue * > _pp_params
the pp parameters that _model is evaluated at
std::vector< unsigned int > _real_indices
static InputParameters validParams()
std::vector< unsigned int > _scalar_var_indices
std::vector< unsigned int > _pp_indices
std::vector< Real > _real_params
the real parameters that _model is evaluated at
virtual Real computeValue() override
std::vector< const Real * > _scalar_var_params
the real parameters that _model is evaluated at
unsigned int _n_params
number of parameters