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
SteadyThermal3dContactSrcElemSuppAlgDep.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 SteadyThermal3dContactSrcElemSuppAlgDep_h
10 #define SteadyThermal3dContactSrcElemSuppAlgDep_h
11 
12 #include <SupplementalAlgorithm.h>
13 #include <FieldTypeDef.h>
14 
15 #include <stk_mesh/base/BulkData.hpp>
16 #include <stk_mesh/base/Entity.hpp>
17 
18 namespace sierra{
19 namespace nalu{
20 
21 class Realm;
22 class MasterElement;
23 
25 {
26 public:
27 
29  Realm &realm);
30 
32 
33  virtual void setup();
34 
35  virtual void elem_resize(
36  MasterElement *meSCS,
37  MasterElement *meSCV);
38 
39  virtual void elem_execute(
40  double *lhs,
41  double *rhs,
42  stk::mesh::Entity element,
43  MasterElement *meSCS,
44  MasterElement *meSCV);
45 
46  const stk::mesh::BulkData *bulkData_;
47 
49 
50  const double a_;
51  const double k_;
52  const double pi_;
53  const bool useShifted_;
54  const int nDim_;
55  const bool evalAtIps_;
56 
57  // scratch space
58  std::vector<double> scvCoords_;
59  std::vector<double> ws_shape_function_;
60  std::vector<double> ws_coordinates_;
61  std::vector<double> ws_scv_volume_;
62  std::vector<double> ws_nodalSrc_;
63 };
64 
65 } // namespace nalu
66 } // namespace Sierra
67 
68 #endif
const double k_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:51
Definition: ABLForcingAlgorithm.C:26
Definition: MasterElement.h:53
VectorFieldType * coordinates_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:48
const double pi_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:52
virtual void elem_resize(MasterElement *meSCS, MasterElement *meSCV)
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.C:56
std::vector< double > ws_nodalSrc_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:62
stk::mesh::Field< double, stk::mesh::Cartesian > VectorFieldType
Definition: FieldTypeDef.h:24
const double a_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:50
static constexpr double lhs[8][8]
Definition: UnitTestContinuityAdvElem.C:25
std::vector< double > scvCoords_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:58
SteadyThermal3dContactSrcElemSuppAlgDep(Realm &realm)
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.C:32
static constexpr double rhs[8]
Definition: UnitTestContinuityAdvElem.C:18
const stk::mesh::BulkData * bulkData_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:46
virtual ~SteadyThermal3dContactSrcElemSuppAlgDep()
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:31
virtual void setup()
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.C:78
virtual void elem_execute(double *lhs, double *rhs, stk::mesh::Entity element, MasterElement *meSCS, MasterElement *meSCV)
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.C:87
const bool useShifted_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:53
Definition: UnitTestMasterElements.C:367
std::vector< double > ws_shape_function_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:59
const bool evalAtIps_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:55
std::vector< double > ws_scv_volume_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:61
Definition: Realm.h:82
const int nDim_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:54
Definition: SupplementalAlgorithm.h:24
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:24
std::vector< double > ws_coordinates_
Definition: SteadyThermal3dContactSrcElemSuppAlgDep.h:60