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
DirichletBC.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 #ifndef DirichletBC_h
9 #define DirichletBC_h
10 
11 #include <SolverAlgorithm.h>
12 
13 namespace stk{
14 namespace mesh{
15 class FieldBase;
16 }
17 }
18 
19 namespace sierra{
20 namespace nalu{
21 
22 class EquationSystem;
23 class Realm;
24 
26 {
27 public:
28 
30  Realm & realm,
31  EquationSystem * eqSystem,
32  stk::mesh::Part * part,
33  stk::mesh::FieldBase * field,
34  stk::mesh::FieldBase * bcValues,
35  const unsigned beginPos,
36  const unsigned endPos);
37 
38  virtual ~DirichletBC() {}
39 
40  virtual void execute();
41  virtual void initialize_connectivity() {}
42 
43 private:
44  stk::mesh::FieldBase * field_;
45  stk::mesh::FieldBase * bcValues_;
46  const unsigned beginPos_;
47  const unsigned endPos_;
48 
49 private:
50  // make this non-copyable
51  DirichletBC(const DirichletBC & other);
52  DirichletBC & operator=(const DirichletBC & other);
53 };
54 
55 } // namespace nalu
56 } // namespace Sierra
57 
58 #endif
Definition: ABLForcingAlgorithm.C:26
stk::mesh::FieldBase * field_
Definition: DirichletBC.h:44
virtual void initialize_connectivity()
Definition: DirichletBC.h:41
Definition: SolverAlgorithm.h:24
Definition: Algorithm.h:14
Definition: DirichletBC.h:25
Base class representation of a PDE.
Definition: EquationSystem.h:46
stk::mesh::FieldBase * bcValues_
Definition: DirichletBC.h:45
const unsigned beginPos_
Definition: DirichletBC.h:46
virtual ~DirichletBC()
Definition: DirichletBC.h:38
Definition: Realm.h:82
const unsigned endPos_
Definition: DirichletBC.h:47