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
ShearStressTransportEquationSystem.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 ShearStressTransportEquationSystem_h
10 #define ShearStressTransportEquationSystem_h
11 
12 #include <EquationSystem.h>
13 #include <FieldTypeDef.h>
14 #include <NaluParsing.h>
15 
16 namespace stk{
17 struct topology;
18 namespace mesh {
19 class Part;
20 }
21 }
22 
23 namespace sierra{
24 namespace nalu{
25 
26 class EquationSystems;
27 class AlgorithmDriver;
28 class TurbKineticEnergyEquationSystem;
29 class SpecificDissipationRateEquationSystem;
30 
32 
33 public:
34 
36  EquationSystems& equationSystems);
38 
39  virtual void initialize();
40 
41  virtual void register_nodal_fields(
42  stk::mesh::Part *part);
43 
44  virtual void register_wall_bc(
45  stk::mesh::Part *part,
46  const stk::topology &theTopo,
47  const WallBoundaryConditionData &wallBCData);
48 
49  virtual void register_interior_algorithm(
50  stk::mesh::Part *part );
51 
52  virtual void solve_and_update();
53 
54  void initial_work();
55  void post_adapt_work();
56 
57  void clip_min_distance_to_wall();
58  void compute_f_one_blending();
59  void update_and_clip();
60 
63 
69 
70  bool isInit_;
72 
73  // saved of mesh parts that are for wall bcs
74  std::vector<stk::mesh::Part *> wallBcPart_;
75 
76 };
77 
78 } // namespace nalu
79 } // namespace Sierra
80 
81 #endif
ScalarFieldType * maxLengthScale_
Definition: ShearStressTransportEquationSystem.h:68
Definition: ABLForcingAlgorithm.C:26
Definition: SpecificDissipationRateEquationSystem.h:30
void initialize(int N, aligned_vector &x, aligned_vector &y)
Definition: UnitTestSimdBasic.C:37
TurbKineticEnergyEquationSystem * tkeEqSys_
Definition: ShearStressTransportEquationSystem.h:61
ScalarFieldType * fOneBlending_
Definition: ShearStressTransportEquationSystem.h:67
AlgorithmDriver * sstMaxLengthScaleAlgDriver_
Definition: ShearStressTransportEquationSystem.h:71
Definition: Algorithm.h:14
A collection of Equations to be solved on a Realm.
Definition: EquationSystems.h:56
Definition: NaluParsing.h:305
Base class representation of a PDE.
Definition: EquationSystem.h:46
std::vector< stk::mesh::Part * > wallBcPart_
Definition: ShearStressTransportEquationSystem.h:74
stk::mesh::Field< double > ScalarFieldType
Definition: FieldTypeDef.h:19
ScalarFieldType * minDistanceToWall_
Definition: ShearStressTransportEquationSystem.h:66
Definition: AlgorithmDriver.h:22
Definition: ShearStressTransportEquationSystem.h:31
ScalarFieldType * sdr_
Definition: ShearStressTransportEquationSystem.h:65
SpecificDissipationRateEquationSystem * sdrEqSys_
Definition: ShearStressTransportEquationSystem.h:62
ScalarFieldType * tke_
Definition: ShearStressTransportEquationSystem.h:64
bool isInit_
Definition: ShearStressTransportEquationSystem.h:70
Definition: TurbKineticEnergyEquationSystem.h:30