www.mooseframework.org
WedgeFunction.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Function.h"
13 #include "FunctionInterface.h"
14 
15 class WedgeFunction;
16 
17 template <>
18 InputParameters validParams<WedgeFunction>();
19 
30 class WedgeFunction : public Function, protected FunctionInterface
31 {
32 public:
33  WedgeFunction(const InputParameters & parameters);
34 
35  virtual Real value(Real t, const Point & p) const override;
36 
37 protected:
39  const Real _alpha_radians;
40 
45  const Real _Re;
46 
48  const unsigned int _var_num;
49 
51  const Real _mu;
52 
54  const Real _rho;
55 
57  const Real _nu;
58 
66  const Real _K;
67 
74  const Real _lambda;
75 
82  const Real _p_star;
83 
88  const Function & _f;
89 };
WedgeFunction::value
virtual Real value(Real t, const Point &p) const override
Definition: WedgeFunction.C:55
WedgeFunction::_alpha_radians
const Real _alpha_radians
The half-angle of the wedge, stored in radians.
Definition: WedgeFunction.h:39
WedgeFunction::_f
const Function & _f
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function.
Definition: WedgeFunction.h:88
WedgeFunction::WedgeFunction
WedgeFunction(const InputParameters &parameters)
Definition: WedgeFunction.C:38
WedgeFunction::_nu
const Real _nu
The kinematic viscosity = mu/rho.
Definition: WedgeFunction.h:57
WedgeFunction::_K
const Real _K
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * ...
Definition: WedgeFunction.h:66
WedgeFunction::_mu
const Real _mu
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:51
WedgeFunction::_rho
const Real _rho
The (constant) density of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:54
validParams< WedgeFunction >
InputParameters validParams< WedgeFunction >()
Definition: WedgeFunction.C:16
WedgeFunction::_var_num
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:48
WedgeFunction::_Re
const Real _Re
The Reynolds number, (u_max(r) * r * alpha) / nu.
Definition: WedgeFunction.h:45
WedgeFunction
Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity a...
Definition: WedgeFunction.h:30
WedgeFunction::_p_star
const Real _p_star
The pressure constant, whose value is determined from the pressure pin.
Definition: WedgeFunction.h:82
WedgeFunction::_lambda
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:74