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 
25 class WedgeFunction : public Function, protected FunctionInterface
26 {
27 public:
29 
31 
32  using Function::value;
33  virtual Real value(Real t, const Point & p) const override;
34 
35 protected:
38 
43  const Real _Re;
44 
46  const unsigned int _var_num;
47 
49  const Real _mu;
50 
52  const Real _rho;
53 
55  const Real _nu;
56 
64  const Real _K;
65 
72  const Real _lambda;
73 
80  const Real _p_star;
81 
86  const Function & _f;
87 };
const Real _alpha_radians
The half-angle of the wedge, stored in radians.
Definition: WedgeFunction.h:37
const Real _p_star
The pressure constant, whose value is determined from the pressure pin.
Definition: WedgeFunction.h:80
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:72
Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity a...
Definition: WedgeFunction.h:25
const Real _rho
The (constant) density of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:52
virtual Real value(Real t, const Point &p) const override
Definition: WedgeFunction.C:54
const Real _nu
The kinematic viscosity = mu/rho.
Definition: WedgeFunction.h:55
const Real _K
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * ...
Definition: WedgeFunction.h:64
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
Definition: WedgeFunction.C:15
const Function & _f
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function.
Definition: WedgeFunction.h:86
const InputParameters & parameters() const
const Real _mu
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams].
Definition: WedgeFunction.h:49
WedgeFunction(const InputParameters &parameters)
Definition: WedgeFunction.C:37
virtual Real value(Real t, const Point &p) const
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:46
const Real _Re
The Reynolds number, (u_max(r) * r * alpha) / nu.
Definition: WedgeFunction.h:43