Nalu
Nalu: a generalized unstructured massively parallel low Mach flow code designed to support a variety of energy applications of interest (most notably Wind ECP) built on the Sierra Toolkit and Trilinos solver Tpetra/Epetra stack. The open source BSD, clause 3 license model has been chosen for the code base. See LICENSE for more information. http://NaluCFD.org
CopyFieldAlgorithm.h
Go to the documentation of this file.
1 /*------------------------------------------------------------------------*/
2 /* Copyright 2014 Sandia Corporation. */
3 /* This software is released under the license detailed */
4 /* in the file, LICENSE, which is located in the top-level Nalu */
5 /* directory structure */
6 /*------------------------------------------------------------------------*/
7 
8 #ifndef CopyFieldAlgorithm_h
9 #define CopyFieldAlgorithm_h
10 
11 #include <Algorithm.h>
12 
13 #include <vector>
14 
15 #include <stk_mesh/base/Types.hpp>
16 
17 namespace stk{
18 namespace mesh{
19 class Part;
20 class FieldBase;
21 class Selector;
22 
23 typedef std::vector< Part * > PartVector;
24 }
25 }
26 
27 namespace sierra{
28 namespace nalu{
29 
31 {
32 public:
33 
35  Realm &realm,
36  stk::mesh::Part *part,
37  stk::mesh::FieldBase * fromField,
38  stk::mesh::FieldBase * toField,
39  const unsigned beginPos,
40  const unsigned endPos,
41  const stk::mesh::EntityRank entityRank);
42 
43  virtual ~CopyFieldAlgorithm() {}
44  virtual void execute();
45 
46 private:
47  stk::mesh::FieldBase * fromField_;
48  stk::mesh::FieldBase * toField_;
49 
50  const unsigned beginPos_;
51  const unsigned endPos_;
52  const stk::mesh::EntityRank entityRank_;
53 
54 private:
55  // make this non-copyable
57  CopyFieldAlgorithm & operator=(const CopyFieldAlgorithm & other);
58 };
59 
60 } // namespace nalu
61 } // namespace Sierra
62 
63 #endif
std::vector< Part * > PartVector
Definition: Algorithm.h:16
const stk::mesh::EntityRank entityRank_
Definition: CopyFieldAlgorithm.h:52
Definition: ABLForcingAlgorithm.C:26
Definition: Algorithm.h:14
Definition: CopyFieldAlgorithm.h:30
const unsigned beginPos_
Definition: CopyFieldAlgorithm.h:50
const unsigned endPos_
Definition: CopyFieldAlgorithm.h:51
Definition: Algorithm.h:28
stk::mesh::FieldBase * toField_
Definition: CopyFieldAlgorithm.h:48
stk::mesh::FieldBase * fromField_
Definition: CopyFieldAlgorithm.h:47
Definition: Realm.h:82
virtual ~CopyFieldAlgorithm()
Definition: CopyFieldAlgorithm.h:43