https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FVFunctionIC.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
13
14#include <string>
15
16class Function;
17class InputParameters;
18
19template <typename T>
21
27{
28public:
30
32
36 const FunctionName functionName() const;
37
38protected:
42 Real f();
43
47 virtual Real value(const Point & p) override;
48
50 const Function & _func;
51
53 const Real _scaling;
54};
InputParameters validParams()
Defines a boundary condition that forces the value to be a user specified function at the boundary.
static InputParameters validParams()
const FunctionName functionName() const
virtual Real value(const Point &p) override
The value of the variable at a point.
const Function & _func
Function to evaluate to form the initial condition.
const Real _scaling
Scaling factor, to be able to use a function with multiple ICs.
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.
Base class for function objects.
Definition Function.h:30
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131