https://mooseframework.inl.gov
CosineTransitionFunction.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 
13 #include "WeightedTransition.h"
14 
23 {
24 public:
26 
27  using Function::value;
28  virtual Real value(Real t, const Point & p) const;
29  virtual RealVectorValue gradient(Real t, const Point & p) const;
30 
31 protected:
34 
35 public:
37 };
Weighted transition between two functions of one variable.
virtual RealVectorValue gradient(Real t, const Point &p) const
virtual Real value(Real t, const Point &p) const
Base class for functions to smoothly transition from one function to another.
CosineTransitionFunction(const InputParameters &parameters)
Computes a cosine transtition of a user-specified width between two values.
const WeightedTransition _transition
Transition object.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const