www.mooseframework.org
MultiAppCopyTransfer.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 MULTIAPPCOPYTRANSFER_H
16 #define MULTIAPPCOPYTRANSFER_H
17 
18 #include "MultiAppTransfer.h"
19 
20 // Forward declarations
22 class MooseVariable;
23 
24 template <>
26 
31 {
32 public:
34 
38  virtual void initialSetup() override;
39 
43  virtual void execute() override;
44 
45 protected:
49  void transfer(FEProblemBase & to_problem, FEProblemBase & from_problem);
50 
54  void transferDofObject(libMesh::DofObject * to_object,
55  libMesh::DofObject * from_object,
56  MooseVariable & to_var,
57  MooseVariable & from_var);
58 
60  const VariableName & _to_var_name;
61 
63  const VariableName & _from_var_name;
64 };
65 
66 #endif // MULTIAPPCOPYTRANSFER_H
const VariableName & _to_var_name
The name of the variable to transfer to.
Class for stuff related to variables.
Definition: MooseVariable.h:43
void transfer(FEProblemBase &to_problem, FEProblemBase &from_problem)
Performs the transfer of a variable between two problems.
void transferDofObject(libMesh::DofObject *to_object, libMesh::DofObject *from_object, MooseVariable &to_var, MooseVariable &from_var)
Performs the transfer of values between a node or element.
InputParameters validParams< MultiAppCopyTransfer >()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Copy the value to the target domain from the nearest node in the source domain.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
virtual void initialSetup() override
Performs basic error checking that the variable exists on MultiApp.
MultiAppCopyTransfer(const InputParameters &parameters)
virtual void execute() override
Performs the transfer of a variable (Nonlinear or Auxiliary) to/from the Multiapp.
Base class for all MultiAppTransfer objects.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53
const VariableName & _from_var_name
Name of variable transfering from.