Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity and pressure variables. More...
#include <WedgeFunction.h>
Public Member Functions | |
WedgeFunction (const InputParameters ¶meters) | |
virtual Real | value (Real t, const Point &p) const override |
Protected Attributes | |
const Real | _alpha_radians |
The half-angle of the wedge, stored in radians. More... | |
const Real | _Re |
The Reynolds number, (u_max(r) * r * alpha) / nu. More... | |
const unsigned int | _var_num |
The variable (vel_x==0, vel_y==1, p==2) being computed by this instance of WedgeFunction. More... | |
const Real | _mu |
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams]. More... | |
const Real | _rho |
The (constant) density of the fluid. Usually specified in [GlobalParams]. More... | |
const Real | _nu |
The kinematic viscosity = mu/rho. More... | |
const Real | _K |
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * f^2 + f'') which is required for computing the exact pressure: More... | |
const Real | _lambda |
The quantity u_max(r) * r, which is constant for this problem, and can be computed given the Reynolds number, nu, and alpha according to: lambda = _Re * _nu / _alpha_radians. More... | |
const Real | _p_star |
The pressure constant, whose value is determined from the pressure pin. More... | |
const Function & | _f |
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function. More... | |
Function object for tests/ins/jeffery_hamel responsible for setting the exact value of the velocity and pressure variables.
Inherits from FunctionInterface (similarly to CompositeFunction) so that it can couple to a PiecewiseLinear function which corresponds to the non-dimensional semi-analytic solution on the domain [0,1]. This function is responsible for scaling and mapping the semi-analytic solution values to the actual velocities and pressure used in the problem.
Definition at line 30 of file WedgeFunction.h.
WedgeFunction::WedgeFunction | ( | const InputParameters & | parameters | ) |
Definition at line 38 of file WedgeFunction.C.
|
overridevirtual |
Definition at line 55 of file WedgeFunction.C.
|
protected |
The half-angle of the wedge, stored in radians.
Definition at line 39 of file WedgeFunction.h.
Referenced by value().
|
protected |
The pre-computed semi-analytic exact solution f(theta) as a PiecewiseLinear function.
Definition at line 88 of file WedgeFunction.h.
Referenced by value().
|
protected |
The constant K from the Jeffery-Hamel solution, defined by: K = -f - 1/(4 * alpha^2) * (alpha * Re * f^2 + f'') which is required for computing the exact pressure:
p(r,theta) = p_star + (2 * mu * lambda) / (r^2) * (f(theta) + K)
Definition at line 66 of file WedgeFunction.h.
Referenced by value().
|
protected |
The quantity u_max(r) * r, which is constant for this problem, and can be computed given the Reynolds number, nu, and alpha according to: lambda = _Re * _nu / _alpha_radians.
Definition at line 74 of file WedgeFunction.h.
Referenced by value().
|
protected |
The (constant) dynamic viscosity of the fluid. Usually specified in [GlobalParams].
Definition at line 51 of file WedgeFunction.h.
Referenced by value().
|
protected |
The kinematic viscosity = mu/rho.
Definition at line 57 of file WedgeFunction.h.
|
protected |
The pressure constant, whose value is determined from the pressure pin.
Here, we assume the pressure is pinned to 0 at (r,theta)=(1,0). This value would need to change if the pressure was pinned to some other value.
Definition at line 82 of file WedgeFunction.h.
Referenced by value().
|
protected |
The Reynolds number, (u_max(r) * r * alpha) / nu.
Note: the quantity u_max(r) * r := lambda = const.
Definition at line 45 of file WedgeFunction.h.
|
protected |
The (constant) density of the fluid. Usually specified in [GlobalParams].
Definition at line 54 of file WedgeFunction.h.
|
protected |
The variable (vel_x==0, vel_y==1, p==2) being computed by this instance of WedgeFunction.
Definition at line 48 of file WedgeFunction.h.
Referenced by value().