www.mooseframework.org
ConstantIC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef CONSTANTIC_H
16 #define CONSTANTIC_H
17 
18 #include "InitialCondition.h"
19 
20 // System includes
21 #include <string>
22 
23 // Forward Declarations
24 class ConstantIC;
25 class InputParameters;
26 
27 namespace libMesh
28 {
29 class Point;
30 }
31 
32 template <typename T>
34 
35 template <>
37 
42 {
43 public:
49  ConstantIC(const InputParameters & parameters);
50 
51  virtual Real value(const Point & p) override;
52 
53 protected:
54  Real _value;
55 };
56 
57 #endif // CONSTANTIC_H
Real _value
Definition: ConstantIC.h:54
InputParameters validParams< ConstantIC >()
Definition: ConstantIC.C:20
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams()
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
InitialConditions are objects that set the initial value of variables.
ConstantIC just returns a constant value.
Definition: ConstantIC.h:41