https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CosineHumpFunction.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
21{
22public:
24
25 using Function::value;
26 virtual Real value(Real t, const Point & p) const;
27 virtual RealVectorValue gradient(Real t, const Point & p) const;
28
29protected:
31 const unsigned int _component;
33 const Real & _hump_width;
36
38 const Real & _hump_begin_value;
40 const Real & _hump_center_value;
41
45 const Real _hump_mid_value;
47 const Real _hump_left_end;
49 const Real _hump_right_end;
50
51public:
53};
const Real p
Computes a cosine hump of a user-specified width and height.
virtual Real value(Real t, const Point &p) const
const Real _hump_mid_value
Middle value of hump.
const Real & _hump_begin_value
Value before and after the hump.
const Real _cosine_amplitude
Cosine amplitude.
const Real & _hump_width
Width of hump.
static InputParameters validParams()
virtual RealVectorValue gradient(Real t, const Point &p) const
const Real & _hump_center_position
Hump center position on selected axis.
const Real & _hump_center_value
Value at the center of the hump.
const Real _hump_right_end
Right end of hump.
const unsigned int _component
Component index of axis on which hump occurs.
const Real _hump_left_end
Left end of hump.
virtual Real value(Real t, const Point &p) const
const InputParameters & parameters() const