www.mooseframework.org
MultiAppInterpolationTransfer.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 MULTIAPPINTERPOLATIONTRANSFER_H
16 #define MULTIAPPINTERPOLATIONTRANSFER_H
17 
18 // MOOSE includes
19 #include "MultiAppTransfer.h"
20 
21 #include "libmesh/mesh_base.h"
22 
23 // Forward declarations
25 
26 template <>
28 
33 {
34 public:
36 
37  virtual void initialSetup() override;
38 
39  virtual void execute() override;
40 
41 protected:
50  Node * getNearestNode(const Point & p,
51  Real & distance,
52  const MeshBase::const_node_iterator & nodes_begin,
53  const MeshBase::const_node_iterator & nodes_end);
54 
55  AuxVariableName _to_var_name;
56  VariableName _from_var_name;
57 
58  unsigned int _num_points;
59  Real _power;
61  Real _radius;
62 };
63 
64 #endif /* MULTIAPPINTERPOLATIONTRANSFER_H */
InputParameters validParams< MultiAppInterpolationTransfer >()
MultiAppInterpolationTransfer(const InputParameters &parameters)
Node * getNearestNode(const Point &p, Real &distance, const MeshBase::const_node_iterator &nodes_begin, const MeshBase::const_node_iterator &nodes_end)
Return the nearest node to the point p.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void execute() override
Execute the transfer.
Copy the value to the target domain from the nearest node in the source domain.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:37
virtual void initialSetup() override
Method called at the beginning of the simulation for checking integrity or doing one-time setup...
Base class for all MultiAppTransfer objects.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:53