https://mooseframework.inl.gov
PODSurrogateTester.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 // MOOSE includes
16 
22 {
23 public:
25 
27  virtual void initialize() override;
28  virtual void execute() override;
29  virtual void finalize() override;
30 
31 protected:
34 
36  const bool _output_samples;
37 
39  std::vector<VectorPostprocessorValue *> _sample_vector;
40 
42  std::vector<PODReducedBasisSurrogate *> _model;
43 
45  std::vector<VectorPostprocessorValue *> _value_vector;
46 
48  std::string _variable_name;
49 
52 };
std::vector< VectorPostprocessorValue * > _value_vector
Vectors containing results of sampling model.
static InputParameters validParams()
Sampler & _sampler
Sampler for evaluating surrogate model.
A tool for output Sampler data.
virtual void initialize() override
std::vector< VectorPostprocessorValue * > _sample_vector
Vector containing all the sample points for each parameter.
std::string _variable_name
Name of the variable this tester operates on.
virtual void execute() override
PODSurrogateTester(const InputParameters &parameters)
const bool _output_samples
Where or not to output all the samples used.
MultiMooseEnum _to_compute
The type of the post-processor value which needs to be extracted.
Interface for objects that need to use samplers.
virtual void finalize() override
const InputParameters & parameters() const
std::vector< PODReducedBasisSurrogate * > _model
Pointers to surrogate model.