https://mooseframework.inl.gov
ElementExtremeFunctorValue.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 "ElementPostprocessor.h"
13 #include "ExtremeValueBase.h"
14 
16 template <bool is_ad>
17 class ElementExtremeFunctorValueTempl : public ExtremeValueBase<ElementPostprocessor>
18 {
19 public:
21 
23  virtual void execute() override { computeExtremeValue(); }
24 
25 protected:
26  virtual std::pair<Real, Real> getProxyValuePair() override;
27 
30 
36 };
37 
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...
ElementExtremeFunctorValueTempl< false > ElementExtremeFunctorValue
const Moose::Functor< GenericReal< is_ad > > & _proxy_functor
A proxy functor used to find the quadrature point at which to evaluate the functor.
virtual void execute() override
Execute method.
const Moose::Functor< GenericReal< is_ad > > & _functor
Functor to search the extrema for.
ElementExtremeFunctorValueTempl< true > ADElementExtremeFunctorValue
ElementExtremeFunctorValueTempl(const InputParameters &parameters)
virtual std::pair< Real, Real > getProxyValuePair() override
virtual void computeExtremeValue()
Get the extreme value with a functor element argument.
const InputParameters & parameters() const
Get the parameters of the object.
A postprocessor for collecting an extreme value for a functor with an element argument.