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
MomentumBodyForceSrcNodeSuppAlg.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 MomentumBodyForceSrcNodeSuppAlg_h
10 #define MomentumBodyForceSrcNodeSuppAlg_h
11 
12 #include <SupplementalAlgorithm.h>
13 #include <FieldTypeDef.h>
14 
15 #include <stk_mesh/base/Entity.hpp>
16 
17 namespace sierra{
18 namespace nalu{
19 
20 class Realm;
21 
23 {
24 public:
25 
27  Realm &realm,
28  const std::vector<double> theParams);
29 
31 
32  virtual void setup();
33 
34  virtual void node_execute(
35  double *lhs,
36  double *rhs,
37  stk::mesh::Entity node);
38 
39  std::vector<double> params_;
41  int nDim_;
42 
43 };
44 
45 } // namespace nalu
46 } // namespace Sierra
47 
48 #endif
Definition: ABLForcingAlgorithm.C:26
virtual void setup()
Definition: MomentumBodyForceSrcNodeSuppAlg.C:49
int nDim_
Definition: MomentumBodyForceSrcNodeSuppAlg.h:41
static constexpr double lhs[8][8]
Definition: UnitTestContinuityAdvElem.C:25
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
virtual void node_execute(double *lhs, double *rhs, stk::mesh::Entity node)
Definition: MomentumBodyForceSrcNodeSuppAlg.C:58
static constexpr double rhs[8]
Definition: UnitTestContinuityAdvElem.C:18
Definition: MomentumBodyForceSrcNodeSuppAlg.h:22
ScalarFieldType * dualNodalVolume_
Definition: MomentumBodyForceSrcNodeSuppAlg.h:40
virtual ~MomentumBodyForceSrcNodeSuppAlg()
Definition: MomentumBodyForceSrcNodeSuppAlg.h:30
MomentumBodyForceSrcNodeSuppAlg(Realm &realm, const std::vector< double > theParams)
Definition: MomentumBodyForceSrcNodeSuppAlg.C:31
Definition: Realm.h:82
Definition: SupplementalAlgorithm.h:24
std::vector< double > params_
Definition: MomentumBodyForceSrcNodeSuppAlg.h:39