www.mooseframework.org
SamplerPostprocessorTransfer.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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
17 class SamplerReceiver;
19 class StochasticResults;
20 
21 template <>
23 
30 {
31 public:
32  static InputParameters validParams();
33 
34  SamplerPostprocessorTransfer(const InputParameters & parameters);
35  virtual void initialSetup() override;
36 
37 protected:
41  virtual void execute() override;
42 
44 
47  virtual void initializeFromMultiapp() override;
48  virtual void executeFromMultiapp() override;
49  virtual void finalizeFromMultiapp() override;
51 
54 
56  const PostprocessorName & _sub_pp_name;
57 
59  const VectorPostprocessorName & _master_vpp_name;
60 
62  VectorPostprocessorValue _current_data;
63 };
StochasticToolsTransfer
The class creates an additional API to allow Transfers to work when running the StochasticTools<FullS...
Definition: StochasticToolsTransfer.h:24
SamplerFullSolveMultiApp
Definition: SamplerFullSolveMultiApp.h:25
SamplerPostprocessorTransfer::executeFromMultiapp
virtual void executeFromMultiapp() override
Definition: SamplerPostprocessorTransfer.C:80
SamplerPostprocessorTransfer::execute
virtual void execute() override
Traditional Transfer callback.
Definition: SamplerPostprocessorTransfer.C:101
SamplerPostprocessorTransfer::_results
StochasticResults * _results
Storage for StochasticResults object that data will be transferred to/from.
Definition: SamplerPostprocessorTransfer.h:53
SamplerPostprocessorTransfer::initializeFromMultiapp
virtual void initializeFromMultiapp() override
Methods used when running in batch mode (see SamplerFullSolveMultiApp)
Definition: SamplerPostprocessorTransfer.C:73
SamplerPostprocessorTransfer::_current_data
VectorPostprocessorValue _current_data
Temporary storage for batch mode execution.
Definition: SamplerPostprocessorTransfer.h:62
SamplerPostprocessorTransfer::finalizeFromMultiapp
virtual void finalizeFromMultiapp() override
Definition: SamplerPostprocessorTransfer.C:94
StochasticResults
A tool for output Sampler data.
Definition: StochasticResults.h:35
SamplerReceiver
A Control object for receiving data from a master application Sampler object.
Definition: SamplerReceiver.h:25
SamplerPostprocessorTransfer::validParams
static InputParameters validParams()
Definition: SamplerPostprocessorTransfer.C:23
SamplerPostprocessorTransfer::_master_vpp_name
const VectorPostprocessorName & _master_vpp_name
Name of vector-postprocessor on the master.
Definition: SamplerPostprocessorTransfer.h:59
StochasticToolsTransfer.h
SamplerPostprocessorTransfer::_sub_pp_name
const PostprocessorName & _sub_pp_name
Name of postprocessor on the sub-applications.
Definition: SamplerPostprocessorTransfer.h:56
SamplerPostprocessorTransfer::initialSetup
virtual void initialSetup() override
Definition: SamplerPostprocessorTransfer.C:61
SamplerPostprocessorTransfer
Transfer Postprocessor from sub-applications to a VectorPostprocessor on the master application.
Definition: SamplerPostprocessorTransfer.h:29
validParams< SamplerPostprocessorTransfer >
InputParameters validParams< SamplerPostprocessorTransfer >()
SamplerPostprocessorTransfer::SamplerPostprocessorTransfer
SamplerPostprocessorTransfer(const InputParameters &parameters)
Definition: SamplerPostprocessorTransfer.C:50