https://mooseframework.inl.gov
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"
13 #include "NonADFunctorInterface.h"
14 
19 {
20 public:
22 
24 
25 protected:
29  virtual Real value(const Point & p) override;
30 
34  virtual RealGradient gradient(const Point & p) override;
35 
38 
40  const Real _scaling;
41 };
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
This is a template class that implements the workhorse compute and computeNodal methods.
This is a wrapper that forwards calls to the implementation, which can be switched out at any time wi...
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const Moose::Functor< Real > & _functor
Function to evaluate to form the initial condition.
Definition: FunctorIC.h:37
FunctorIC(const InputParameters &parameters)
Definition: FunctorIC.C:31
static InputParameters validParams()
Definition: FunctorIC.C:18
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
Get the parameters of the object.
virtual RealGradient gradient(const Point &p) override
The value of the gradient at a point.
Definition: FunctorIC.C:85
Defines an initial condition using a functor.
Definition: FunctorIC.h:18
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