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
ComputeMdotElemAlgorithm.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 ComputeMdotElemAlgorithm_h
10 #define ComputeMdotElemAlgorithm_h
11 
12 #include<Algorithm.h>
13 #include<FieldTypeDef.h>
14 
15 // stk
16 #include <stk_mesh/base/Part.hpp>
17 
18 namespace sierra{
19 namespace nalu{
20 
21 class Realm;
22 
24 {
25 public:
26 
28  Realm &realm,
29  stk::mesh::Part *part,
30  const bool assembleMdotToEdge);
32 
33  void execute();
34  void assemble_edge_mdot();
35 
36  const bool meshMotion_;
37  const bool assembleMdotToEdge_;
38 
39  // extract fields; nodal
47 
48  const bool shiftMdot_;
49  const bool shiftPoisson_;
50 };
51 
52 } // namespace nalu
53 } // namespace Sierra
54 
55 #endif
ScalarFieldType * pressure_
Definition: ComputeMdotElemAlgorithm.h:43
VectorFieldType * coordinates_
Definition: ComputeMdotElemAlgorithm.h:42
Definition: ABLForcingAlgorithm.C:26
VectorFieldType * velocityRTM_
Definition: ComputeMdotElemAlgorithm.h:40
void execute()
Definition: ComputeMdotElemAlgorithm.C:86
stk::mesh::Field< double, stk::mesh::SimpleArrayTag > GenericFieldType
Definition: FieldTypeDef.h:27
GenericFieldType * massFlowRate_
Definition: ComputeMdotElemAlgorithm.h:45
~ComputeMdotElemAlgorithm()
Definition: ComputeMdotElemAlgorithm.C:77
stk::mesh::Field< double, stk::mesh::Cartesian > VectorFieldType
Definition: FieldTypeDef.h:24
const bool shiftMdot_
Definition: ComputeMdotElemAlgorithm.h:48
Definition: ComputeMdotElemAlgorithm.h:23
const bool assembleMdotToEdge_
Definition: ComputeMdotElemAlgorithm.h:37
ComputeMdotElemAlgorithm(Realm &realm, stk::mesh::Part *part, const bool assembleMdotToEdge)
Definition: ComputeMdotElemAlgorithm.C:37
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
ScalarFieldType * edgeMassFlowRate_
Definition: ComputeMdotElemAlgorithm.h:46
Definition: Algorithm.h:28
VectorFieldType * Gpdx_
Definition: ComputeMdotElemAlgorithm.h:41
ScalarFieldType * density_
Definition: ComputeMdotElemAlgorithm.h:44
const bool shiftPoisson_
Definition: ComputeMdotElemAlgorithm.h:49
Definition: Realm.h:82
void assemble_edge_mdot()
Definition: ComputeMdotElemAlgorithm.C:273
const bool meshMotion_
Definition: ComputeMdotElemAlgorithm.h:36