https://mooseframework.inl.gov
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
16 class SamplerReceiver;
18 class StochasticResults;
19 
26 {
27 public:
30  virtual void initialSetup() override;
31 
36  const std::vector<VectorPostprocessorName> & vectorNames() const;
37 
38 protected:
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 };
SamplerPostprocessorTransfer(const InputParameters &parameters)
virtual void execute() override
Traditional Transfer callback.
StochasticResults * _results
Storage for StochasticResults object that data will be transferred to/from.
Transfer Postprocessor from sub-applications to a VectorPostprocessor on the master application...
virtual void initializeFromMultiapp() override
Methods used when running in batch mode (see SamplerFullSolveMultiApp)
virtual void finalizeFromMultiapp() override
const VectorPostprocessorName & _master_vpp_name
Name of vector-postprocessor on the master.
The class creates an additional API to allow Transfers to work when running the StochasticTools<FullS...
A tool for output Sampler data.
const std::vector< PostprocessorName > & _sub_pp_names
Name of postprocessor on the sub-applications.
A Control object for receiving data from a master application Sampler object.
const std::vector< VectorPostprocessorName > _vpp_names
Storage vector names.
const std::vector< VectorPostprocessorName > & vectorNames() const
The name of the vector to be created on the StochasticResults object, see StochasticResultsAction) ...
const InputParameters & parameters() const
std::vector< VectorPostprocessorValue > _current_data
Temporary storage for batch mode execution.