https://mooseframework.inl.gov
Loading...
Searching...
No Matches
StochasticToolsTransfer.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#pragma once
10
11// MOOSE includes
12#include "MultiAppTransfer.h"
13#include "SamplerInterface.h"
14
15class Sampler;
16
22{
23public:
25
27
29
32 virtual void initializeFromMultiapp();
33 virtual void executeFromMultiapp();
34 virtual void finalizeFromMultiapp();
36
38
41 virtual void initializeToMultiapp();
42 virtual void executeToMultiapp();
43 virtual void finalizeToMultiapp();
45
51 void setGlobalMultiAppIndex(dof_id_type index) { _app_index = index; }
52
58 void setGlobalRowIndex(dof_id_type row) { _global_index = row; }
59
65 void setCurrentRow(const std::vector<Real> & row) { _row_data = row; }
66
67protected:
69 dof_id_type _app_index = 0;
71 dof_id_type _global_index = 0;
73 std::vector<Real> _row_data;
74
77};
const InputParameters & parameters() const
The class creates an additional API to allow Transfers to work when running the StochasticTools<FullS...
dof_id_type _global_index
Index for tracking the row index when using batch mode operation.
static InputParameters validParams()
void setGlobalRowIndex(dof_id_type row)
Method for keeping track of the global row index when running in batch mode.
std::vector< Real > _row_data
The current row of data (comes from multiapp)
dof_id_type _app_index
Index for the sub-app that the batch-mode multiapp is working on.
virtual void initializeFromMultiapp()
Methods for transferring data from sub-applications to the master application.
Sampler * _sampler_ptr
Pointer to the Sampler object used by the SamplerTransientMultiApp or SamplerFullSolveMultiApp.
virtual void initializeToMultiapp()
Methods for transferring data to sub-applications to the master application.
void setCurrentRow(const std::vector< Real > &row)
Method for keeping track of the row data when running in batch mode.
void setGlobalMultiAppIndex(dof_id_type index)
Method for setting the app index when running in batch mode.