www.mooseframework.org
RampIC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #ifndef RAMPIC_H
8 #define RAMPIC_H
9 
10 #include "InitialCondition.h"
11 
12 // Forward Declarations
13 class RampIC;
14 
15 template <>
16 InputParameters validParams<RampIC>();
17 
22 class RampIC : public InitialCondition
23 {
24 public:
25  RampIC(const InputParameters & parameters);
26 
27 protected:
31  virtual Real value(const Point & p);
32 
36  virtual RealGradient gradient(const Point & /*p*/);
37 
38  const Real _xlength;
39  const Real _xmin;
40  const Real _value_left;
41  const Real _value_right;
42 };
43 
44 #endif // RAMPIC_H
InputParameters validParams< RampIC >()
Definition: RampIC.C:14
const Real _value_left
Definition: RampIC.h:40
const Real _value_right
Definition: RampIC.h:41
const Real _xmin
Definition: RampIC.h:39
virtual RealGradient gradient(const Point &)
The value of the gradient at a point.
Definition: RampIC.C:40
Makes initial condition which creates a linear ramp of the given variable on the x-axis with specifie...
Definition: RampIC.h:22
virtual Real value(const Point &p)
The value of the variable at a point.
Definition: RampIC.C:34
const Real _xlength
Definition: RampIC.h:38
RampIC(const InputParameters &parameters)
Definition: RampIC.C:24