https://mooseframework.inl.gov
Loading...
Searching...
No Matches
WedgeFunction.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
25class WedgeFunction : public Function, protected FunctionInterface
26{
27public:
29
31
32 using Function::value;
33 virtual Real value(Real t, const Point & p) const override;
34
35protected:
37 const Real _alpha_radians;
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 p
virtual Real value(Real t, const Point &p) const
const InputParameters & parameters() const
Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity a...
const Real _alpha_radians
The half-angle of the wedge, stored in radians.
const Real _mu
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams].
virtual Real value(Real t, const Point &p) const override
static InputParameters validParams()
const Real _Re
The Reynolds number, (u_max(r) * r * alpha) / nu.
const Real _nu
The kinematic viscosity = mu/rho.
const unsigned int _var_num
The variable (vel_x==0, vel_y==1, p==2) being computed by this instance of WedgeFunction.
const Real _p_star
The pressure constant, whose value is determined from the pressure pin.
const Real _K
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * ...
const Real _lambda
The quantity u_max(r) * r, which is constant for this problem, and can be computed given the Reynolds...
const Real _rho
The (constant) density of the fluid. Usually specified in [GlobalParams].
const Function & _f
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function.