https://mooseframework.inl.gov
TimeRampFunction.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 
22 class TimeRampFunction : public Function
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:
35  const Real & _final_value;
40 
45 
46 public:
48 };
static InputParameters validParams()
const Real _ramp_end_time
Ramp end time.
const Real & _initial_time
Initial time.
virtual RealVectorValue gradient(Real t, const Point &p) const
virtual Real value(Real t, const Point &p) const
TimeRampFunction(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Ramps up to a value from another value over time.
const Real _ramp_slope
Ramp slope.
const Real & _ramp_duration
Ramp duration.
const Real & _final_value
Final value.
const InputParameters & parameters() const
virtual Real value(Real t, const Point &p) const
const Real & _initial_value
Initial value.