www.mooseframework.org
FunctionIC.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 #include <string>
15 
16 // Forward Declarations
17 class FunctionIC;
18 class Function;
19 class InputParameters;
20 
21 template <typename T>
23 
24 template <>
26 
32 {
33 public:
35 
36 protected:
40  Real f();
41 
45  virtual Real value(const Point & p) override;
46 
50  virtual RealGradient gradient(const Point & p) override;
51 
53 };
54 
Defines a boundary condition that forces the value to be a user specified function at the boundary...
Definition: FunctionIC.h:31
virtual RealGradient gradient(const Point &p) override
The value of the gradient at a point.
Definition: FunctionIC.C:39
Base class for function objects.
Definition: Function.h:40
Real f()
Evaluate the function at the current quadrature point and time step.
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()
This is the templated validParams() function that every MooseObject-derived class is required to spec...
InputParameters validParams< FunctionIC >()
Definition: FunctionIC.C:17
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseObject.h:65
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition: FunctionIC.C:33
FunctionIC(const InputParameters &parameters)
Definition: FunctionIC.C:27
Function & _func
Definition: FunctionIC.h:52