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
MomentumBoussinesqSrcNodeSuppAlg.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 MomentumBoussinesqSrcNodeSuppAlg_h
10 #define MomentumBoussinesqSrcNodeSuppAlg_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  double tRef_;
41  double rhoRef_;
42  double beta_;
43  int nDim_;
44  std::vector<double> gravity_;
45 
46 };
47 
48 } // namespace nalu
49 } // namespace Sierra
50 
51 #endif
virtual ~MomentumBoussinesqSrcNodeSuppAlg()
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:29
Definition: ABLForcingAlgorithm.C:26
virtual void node_execute(double *lhs, double *rhs, stk::mesh::Entity node)
Definition: MomentumBoussinesqSrcNodeSuppAlg.C:69
virtual void setup()
Definition: MomentumBoussinesqSrcNodeSuppAlg.C:60
int nDim_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:43
static constexpr double lhs[8][8]
Definition: UnitTestContinuityAdvElem.C:25
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
double rhoRef_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:41
static constexpr double rhs[8]
Definition: UnitTestContinuityAdvElem.C:18
double beta_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:42
MomentumBoussinesqSrcNodeSuppAlg(Realm &realm)
Definition: MomentumBoussinesqSrcNodeSuppAlg.C:32
ScalarFieldType * temperature_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:38
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:22
Definition: Realm.h:82
std::vector< double > gravity_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:44
Definition: SupplementalAlgorithm.h:24
double tRef_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:40
ScalarFieldType * dualNodalVolume_
Definition: MomentumBoussinesqSrcNodeSuppAlg.h:39