https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
23{
24public:
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
31protected:
33 const Real & _initial_value;
35 const Real & _final_value;
37 const Real & _ramp_duration;
39 const Real & _initial_time;
40
42 const Real _ramp_end_time;
44 const Real _ramp_slope;
45
46public:
48};
const Real p
virtual Real value(Real t, const Point &p) const
const InputParameters & parameters() const
Ramps up to a value from another value over time.
const Real _ramp_end_time
Ramp end time.
virtual RealVectorValue gradient(Real t, const Point &p) const
const Real _ramp_slope
Ramp slope.
static InputParameters validParams()
const Real & _initial_value
Initial value.
virtual Real value(Real t, const Point &p) const
const Real & _ramp_duration
Ramp duration.
const Real & _initial_time
Initial time.
const Real & _final_value
Final value.