https://mooseframework.inl.gov
FunctorChangeFunctorMaterial.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 "FunctorMaterial.h"
13 
18 template <bool is_ad>
20 {
21 public:
23 
25 
26 protected:
28  Moose::StateArg referenceState(const MooseEnum & change_over) const;
29 
32 
35 
38 
40  const std::string & _prop_name;
41 };
42 
const Moose::Functor< GenericReal< is_ad > > & _functor
Functor for which to evaluate change.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:127
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...
FunctorChangeFunctorMaterialTempl< true > ADFunctorChangeFunctorMaterial
FunctorMaterials compute functor material properties.
FunctorChangeFunctorMaterialTempl(const InputParameters &parameters)
Moose::StateArg referenceState(const MooseEnum &change_over) const
Returns the state argument to use for the reference value.
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:33
FunctorChangeFunctorMaterialTempl< false > FunctorChangeFunctorMaterial
Adds a functor material property that computes the change in a functor value over a time step...
const Moose::StateArg _ref_state
Reference value state argument.
const std::string & _prop_name
Name to give functor material property.
State argument for evaluating functors.
const bool _take_absolute_value
If true, take the absolute value of the change.