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
SupplementalAlgorithm.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 
9 #ifndef SupplementalAlgorithm_h
10 #define SupplementalAlgorithm_h
11 
13 #include <KokkosInterface.h>
14 #include <vector>
15 
16 #include <stk_mesh/base/Types.hpp>
17 #include <stk_mesh/base/Entity.hpp>
18 
19 namespace sierra{
20 namespace nalu{
21 
22 class Realm;
23 
25 {
26 public:
27 
29  Realm &realm);
30 
32 
33  virtual void setup() {}
34 
35  virtual void elem_execute(
36  double *lhs,
37  double *rhs,
38  stk::mesh::Entity element,
39  MasterElement *meSCS,
40  MasterElement *meSCV) {}
41 
42  virtual void node_execute(
43  double *lhs,
44  double *rhs,
45  stk::mesh::Entity node) {}
46 
47  virtual void elem_resize(
48  MasterElement *meSCS,
49  MasterElement *meSCV) {}
50 
52 };
53 
54 } // namespace nalu
55 } // namespace Sierra
56 
57 #endif
virtual ~SupplementalAlgorithm()
Definition: SupplementalAlgorithm.h:31
Definition: ABLForcingAlgorithm.C:26
Definition: MasterElement.h:53
Realm & realm_
Definition: SupplementalAlgorithm.h:51
virtual void node_execute(double *lhs, double *rhs, stk::mesh::Entity node)
Definition: SupplementalAlgorithm.h:42
static constexpr double lhs[8][8]
Definition: UnitTestContinuityAdvElem.C:25
virtual void elem_resize(MasterElement *meSCS, MasterElement *meSCV)
Definition: SupplementalAlgorithm.h:47
static constexpr double rhs[8]
Definition: UnitTestContinuityAdvElem.C:18
virtual void elem_execute(double *lhs, double *rhs, stk::mesh::Entity element, MasterElement *meSCS, MasterElement *meSCV)
Definition: SupplementalAlgorithm.h:35
virtual void setup()
Definition: SupplementalAlgorithm.h:33
SupplementalAlgorithm(Realm &realm)
Definition: SupplementalAlgorithm.C:25
Definition: Realm.h:82
Definition: SupplementalAlgorithm.h:24