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
MomentumBuoyancySrcNodeSuppAlg.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 MomentumBuoyancySrcNodeSuppAlg_h
10 #define MomentumBuoyancySrcNodeSuppAlg_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 
30 
31  virtual void setup();
32 
33  virtual void node_execute(
34  double *lhs,
35  double *rhs,
36  stk::mesh::Entity node);
37 
40  int nDim_;
41  double rhoRef_;
42  std::vector<double> gravity_;
43 
44 };
45 
46 } // namespace nalu
47 } // namespace Sierra
48 
49 #endif
MomentumBuoyancySrcNodeSuppAlg(Realm &realm)
Definition: MomentumBuoyancySrcNodeSuppAlg.C:32
virtual void node_execute(double *lhs, double *rhs, stk::mesh::Entity node)
Definition: MomentumBuoyancySrcNodeSuppAlg.C:67
Definition: ABLForcingAlgorithm.C:26
ScalarFieldType * densityNp1_
Definition: MomentumBuoyancySrcNodeSuppAlg.h:38
double rhoRef_
Definition: MomentumBuoyancySrcNodeSuppAlg.h:41
static constexpr double lhs[8][8]
Definition: UnitTestContinuityAdvElem.C:25
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
static constexpr double rhs[8]
Definition: UnitTestContinuityAdvElem.C:18
ScalarFieldType * dualNodalVolume_
Definition: MomentumBuoyancySrcNodeSuppAlg.h:39
virtual ~MomentumBuoyancySrcNodeSuppAlg()
Definition: MomentumBuoyancySrcNodeSuppAlg.h:29
virtual void setup()
Definition: MomentumBuoyancySrcNodeSuppAlg.C:58
Definition: MomentumBuoyancySrcNodeSuppAlg.h:22
std::vector< double > gravity_
Definition: MomentumBuoyancySrcNodeSuppAlg.h:42
Definition: Realm.h:82
Definition: SupplementalAlgorithm.h:24
int nDim_
Definition: MomentumBuoyancySrcNodeSuppAlg.h:40