www.mooseframework.org
MultiAppMeshFunctionTransfer.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef MULTIAPPMESHFUNCTIONTRANSFER_H
16 #define MULTIAPPMESHFUNCTIONTRANSFER_H
17 
18 #include "MultiAppTransfer.h"
19 
20 // Forward declarations
22 
23 template <>
25 
33 {
34 public:
36 
37  virtual void initialSetup() override;
38 
39  virtual void execute() override;
40 
41 protected:
43  std::vector<AuxVariableName> _to_var_name;
45  std::vector<VariableName> _from_var_name;
47  unsigned int _var_size;
49 
50 private:
54  void transferVariable(unsigned int i);
55 
57  std::vector<std::vector<Parallel::Request>> _send_points;
59  std::vector<std::vector<Parallel::Request>> _send_evals;
61  std::vector<std::vector<Parallel::Request>> _send_ids;
62 };
63 
64 #endif /* MULTIAPPMESHFUNCTIONTRANSFER_H */
void transferVariable(unsigned int i)
Performs the transfer for the variable of index i.
std::vector< std::vector< Parallel::Request > > _send_ids
To send app ids to other processors.
InputParameters validParams< MultiAppMeshFunctionTransfer >()
unsigned int _var_size
The number of variables to transfer.
MultiAppMeshFunctionTransfer(const InputParameters &parameters)
std::vector< std::vector< Parallel::Request > > _send_points
To send points to other processors.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::vector< std::vector< Parallel::Request > > _send_evals
To send values to other processors.
std::vector< AuxVariableName > _to_var_name
The vector of variables to transfer to.
Transfers a vector of variables.
virtual void initialSetup() override
Method called at the beginning of the simulation for checking integrity or doing one-time setup...
std::vector< VariableName > _from_var_name
The vector of variables to transfer from.
Base class for all MultiAppTransfer objects.
virtual void execute() override
Execute the transfer.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53