https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
21{
22public:
24
26 virtual void initialize() override;
27 virtual void execute() override;
28 virtual void finalize() override;
29
30protected:
33
35 const bool _output_samples;
36
38 std::vector<VectorPostprocessorValue *> _sample_vector;
39
41 std::vector<PODReducedBasisSurrogate *> _model;
42
44 std::vector<VectorPostprocessorValue *> _value_vector;
45
47 std::string _variable_name;
48
51};
const InputParameters & parameters() const
A tool for output Sampler data.
std::string _variable_name
Name of the variable this tester operates on.
std::vector< VectorPostprocessorValue * > _sample_vector
Vector containing all the sample points for each parameter.
Sampler & _sampler
Sampler for evaluating surrogate model.
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.
virtual void finalize() override
virtual void execute() override
std::vector< VectorPostprocessorValue * > _value_vector
Vectors containing results of sampling model.
virtual void initialize() override
static InputParameters validParams()
std::vector< PODReducedBasisSurrogate * > _model
Pointers to surrogate model.
Interface for objects that need to use samplers.