https://mooseframework.inl.gov
Loading...
Searching...
No Matches
RampIC.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 "InitialCondition.h"
13
19{
20public:
22
24
25protected:
26 virtual Real value(const Point & p);
27 virtual RealGradient gradient(const Point & /*p*/);
28
29 const Real _xlength;
30 const Real _xmin;
31 const Real _value_left;
32 const Real _value_right;
33};
const Real p
const InputParameters & parameters() const
Makes initial condition which creates a linear ramp of the given variable on the x-axis with specifie...
Definition RampIC.h:19
const Real _xlength
Definition RampIC.h:29
const Real _value_left
Definition RampIC.h:31
const Real _xmin
Definition RampIC.h:30
const Real _value_right
Definition RampIC.h:32
static InputParameters validParams()
Definition RampIC.C:17
virtual RealGradient gradient(const Point &)
Definition RampIC.C:43
virtual Real value(const Point &p)
Definition RampIC.C:37