https://mooseframework.inl.gov
Loading...
Searching...
No Matches
FunctorIC.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"
14
19{
20public:
22
24
25protected:
29 virtual Real value(const Point & p) override;
30
34 virtual RealGradient gradient(const Point & p) override;
35
38
40 const Real _scaling;
41};
Defines an initial condition using a functor.
Definition FunctorIC.h:19
static InputParameters validParams()
Definition FunctorIC.C:18
virtual RealGradient gradient(const Point &p) override
The value of the gradient at a point.
Definition FunctorIC.C:85
const Moose::Functor< Real > & _functor
Function to evaluate to form the initial condition.
Definition FunctorIC.h:37
const Real _scaling
Scaling factor, to be able to use a functor with multiple ICs.
Definition FunctorIC.h:40
virtual Real value(const Point &p) override
The value of the variable at a point.
Definition FunctorIC.C:56
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.
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...