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