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
PecletFunction.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 PecletFunction_h
10 #define PecletFunction_h
11 
12 namespace sierra{
13 namespace nalu{
14 
16 {
17 public:
18 
20  virtual ~PecletFunction();
21  virtual double execute(const double pecletNumber) = 0;
22  /*virtual void update_values(Realm *realm) = 0;*/
23 };
24 
26 {
27 public:
28  ClassicPecletFunction(double A, double hf);
29  virtual ~ClassicPecletFunction();
30  double execute(const double pecletNumber);
31  double A_;
32  double hf_;
33 };
34 
36 {
37 public:
38  TanhFunction( double c1, double c2 );
39  virtual ~TanhFunction();
40  double execute(const double indVar);
41  double c1_; // peclet number at which transition occurs
42  double c2_; // width of the transtion
43 };
44 
45 } // namespace nalu
46 } // namespace Sierra
47 
48 #endif
PecletFunction()
Definition: PecletFunction.C:26
Definition: ABLForcingAlgorithm.C:26
virtual ~PecletFunction()
Definition: PecletFunction.C:34
double c1_
Definition: PecletFunction.h:41
Definition: PecletFunction.h:25
Definition: PecletFunction.h:35
double c2_
Definition: PecletFunction.h:42
virtual double execute(const double pecletNumber)=0
double A_
Definition: PecletFunction.h:31
double hf_
Definition: PecletFunction.h:32
Definition: PecletFunction.h:15