forked from Exawind/nalu-wind
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGammaEquationSystem.h
More file actions
96 lines (67 loc) · 2.14 KB
/
GammaEquationSystem.h
File metadata and controls
96 lines (67 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS), National Renewable Energy Laboratory, University of Texas Austin,
// Northwest Research Associates. Under the terms of Contract DE-NA0003525
// with NTESS, the U.S. Government retains certain rights in this software.
//
// This software is released under the BSD 3-clause license. See LICENSE file
// for more details.
//
#ifndef GammaEquationSystem_h
#define GammaEquationSystem_h
#include <EquationSystem.h>
#include <FieldTypeDef.h>
#include <NaluParsedTypes.h>
#include "ngp_algorithms/NodalGradAlgDriver.h"
namespace stk{
struct topology;
}
namespace sierra{
namespace nalu{
class Realm;
class LinearSystem;
class EquationSystems;
class GammaEquationSystem : public EquationSystem {
public:
GammaEquationSystem(
EquationSystems& equationSystems);
virtual ~GammaEquationSystem();
virtual void register_nodal_fields(
stk::mesh::Part *part);
void register_interior_algorithm(
stk::mesh::Part *part);
void register_inflow_bc(
stk::mesh::Part *part,
const stk::topology &theTopo,
const InflowBoundaryConditionData &inflowBCData);
void register_open_bc(
stk::mesh::Part *part,
const stk::topology &theTopo,
const OpenBoundaryConditionData &openBCData);
void register_wall_bc(
stk::mesh::Part *part,
const stk::topology &theTopo,
const WallBoundaryConditionData &wallBCData);
virtual void register_symmetry_bc(
stk::mesh::Part *part,
const stk::topology &theTopo,
const SymmetryBoundaryConditionData &symmetryBCData);
virtual void register_overset_bc();
void initialize();
void reinitialize_linear_system();
void predict_state();
void assemble_nodal_gradient();
void compute_effective_diff_flux_coeff();
const bool managePNG_;
ScalarFieldType *gamma_;
VectorFieldType *dgamdx_;
ScalarFieldType *gamTmp_;
ScalarFieldType *minDistanceToWall_;
ScalarFieldType *visc_;
ScalarFieldType *tvisc_;
ScalarFieldType *evisc_;
ScalarNodalGradAlgDriver nodalGradAlgDriver_;
std::unique_ptr<Algorithm> effDiffFluxAlg_;
};
} // namespace nalu
} // namespace Sierra
#endif