https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SamplerPostprocessorTransfer.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
14
15// Forward declarations
16class SamplerReceiver;
19
26{
27public:
30 virtual void initialSetup() override;
31
36 const std::vector<VectorPostprocessorName> & vectorNames() const;
37
38protected:
42 virtual void execute() override;
43
45
48 virtual void initializeFromMultiapp() override;
49 virtual void executeFromMultiapp() override;
50 virtual void finalizeFromMultiapp() override;
52
55
57 const std::vector<PostprocessorName> & _sub_pp_names;
58
60 const VectorPostprocessorName & _master_vpp_name;
61
63 const std::vector<VectorPostprocessorName> _vpp_names;
64
66 std::vector<VectorPostprocessorValue> _current_data;
67
68 const bool _keep_diverge;
69};
const InputParameters & parameters() const
Transfer Postprocessor from sub-applications to a VectorPostprocessor on the master application.
std::vector< VectorPostprocessorValue > _current_data
Temporary storage for batch mode execution.
virtual void execute() override
Traditional Transfer callback.
virtual void initializeFromMultiapp() override
Methods used when running in batch mode (see SamplerFullSolveMultiApp)
StochasticResults * _results
Storage for StochasticResults object that data will be transferred to/from.
const std::vector< VectorPostprocessorName > & vectorNames() const
The name of the vector to be created on the StochasticResults object, see StochasticResultsAction)
const VectorPostprocessorName & _master_vpp_name
Name of vector-postprocessor on the master.
const std::vector< PostprocessorName > & _sub_pp_names
Name of postprocessor on the sub-applications.
const std::vector< VectorPostprocessorName > _vpp_names
Storage vector names.
A Control object for receiving data from a master application Sampler object.
A tool for output Sampler data.
The class creates an additional API to allow Transfers to work when running the StochasticTools<FullS...