www.mooseframework.org
RampIC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "InitialCondition.h"
13 
18 class RampIC : public InitialCondition
19 {
20 public:
22 
24 
25 protected:
26  virtual Real value(const Point & p);
27  virtual RealGradient gradient(const Point & /*p*/);
28 
29  const Real _xlength;
30  const Real _xmin;
33 };
const Real _value_left
Definition: RampIC.h:31
const Real _value_right
Definition: RampIC.h:32
const Real _xmin
Definition: RampIC.h:30
virtual RealGradient gradient(const Point &)
Definition: RampIC.C:43
Makes initial condition which creates a linear ramp of the given variable on the x-axis with specifie...
Definition: RampIC.h:18
virtual Real value(const Point &p)
Definition: RampIC.C:37
static InputParameters validParams()
Definition: RampIC.C:17
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _xlength
Definition: RampIC.h:29
const InputParameters & parameters() const
RampIC(const InputParameters &parameters)
Definition: RampIC.C:27