https://mooseframework.inl.gov
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 {
22 public:
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 
29 protected:
31  const unsigned int _component;
33  const Real & _hump_width;
36 
41 
50 
51 public:
53 };
const Real & _hump_width
Width of hump.
const unsigned int _component
Component index of axis on which hump occurs.
Computes a cosine hump of a user-specified width and height.
const Real & _hump_begin_value
Value before and after the hump.
static InputParameters validParams()
const Real _hump_mid_value
Middle value of hump.
const Real _cosine_amplitude
Cosine amplitude.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const
virtual RealVectorValue gradient(Real t, const Point &p) const
const Real & _hump_center_value
Value at the center of the hump.
const Real _hump_left_end
Left end of hump.
CosineHumpFunction(const InputParameters &parameters)
const Real _hump_right_end
Right end of hump.
const Real & _hump_center_position
Hump center position on selected axis.
virtual Real value(Real t, const Point &p) const