www.mooseframework.org
ConstantIC.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 
14 // System includes
15 #include <string>
16 
17 class InputParameters;
18 
19 namespace libMesh
20 {
21 class Point;
22 }
23 
24 template <typename T>
26 
31 {
32 public:
34 
36 
37  virtual Real value(const Point & p) override;
38 
39 protected:
40  const Real _value;
41 };
This is a template class that implements the workhorse compute and computeNodal methods.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
InputParameters validParams()
ConstantIC(const InputParameters &parameters)
Definition: ConstantIC.C:24
The following methods are specializations for using the libMesh::Parallel::packed_range_* routines fo...
const Real _value
Definition: ConstantIC.h:40
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition: ConstantIC.C:30
static InputParameters validParams()
Definition: ConstantIC.C:16
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
ConstantIC just returns a constant value.
Definition: ConstantIC.h:30