WedgeFunction.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7
8 #ifndef WEDGEFUNCTION_H
9 #define WEDGEFUNCTION_H
10
11 #include "Function.h"
12 #include "FunctionInterface.h"
13
14 class WedgeFunction;
15
16 template <>
17 InputParameters validParams<WedgeFunction>();
18
29 class WedgeFunction : public Function, protected FunctionInterface
30 {
31 public:
32  WedgeFunction(const InputParameters & parameters);
33
34  virtual Real value(Real t, const Point & p) override;
35
36 protected:
39
44  const Real _Re;
45
47  const unsigned int _var_num;
48
50  const Real _mu;
51
53  const Real _rho;
54
56  const Real _nu;
57
65  const Real _K;
66
73  const Real _lambda;
74
81  const Real _p_star;
82
87  Function & _f;
88 };
89
90 #endif
Function & _f
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function.
Definition: WedgeFunction.h:87
virtual Real value(Real t, const Point &p) override
Definition: WedgeFunction.C:51
The half-angle of the wedge, stored in radians.
Definition: WedgeFunction.h:38
const Real _p_star
The pressure constant, whose value is determined from the pressure pin.
Definition: WedgeFunction.h:81
const Real _lambda
The quantity u_max(r) * r, which is constant for this problem, and can be computed given the Reynolds...
Definition: WedgeFunction.h:73
Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity a...
Definition: WedgeFunction.h:29
const Real _rho
The (constant) density of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:53
const Real _nu
The kinematic viscosity = mu/rho.
Definition: WedgeFunction.h:56
const Real _K
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * ...
Definition: WedgeFunction.h:65
const Real _mu
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:50
InputParameters validParams< WedgeFunction >()
Definition: WedgeFunction.C:12
WedgeFunction(const InputParameters &parameters)
Definition: WedgeFunction.C:34
const unsigned int _var_num
The variable (vel_x==0, vel_y==1, p==2) being computed by this instance of WedgeFunction.
Definition: WedgeFunction.h:47
const Real _Re
The Reynolds number, (u_max(r) * r * alpha) / nu.
Definition: WedgeFunction.h:44