https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13#include "ExtremeValueBase.h"
14
16template <bool is_ad>
17class ElementExtremeFunctorValueTempl : public ExtremeValueBase<ElementPostprocessor>
18{
19public:
21
23 virtual void execute() override { computeExtremeValue(); }
24
25protected:
26 virtual std::pair<Real, Real> getProxyValuePair() override;
27
30
36
38 const Real _scale;
39};
40
ElementExtremeFunctorValueTempl< true > ADElementExtremeFunctorValue
ElementExtremeFunctorValueTempl< false > ElementExtremeFunctorValue
A postprocessor for collecting an extreme value for a functor with an element argument.
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 Real _scale
Scaling factor to apply to the functor value.
virtual std::pair< Real, Real > getProxyValuePair() override
const Moose::Functor< GenericReal< is_ad > > & _functor
Functor to search the extrema for.
virtual void computeExtremeValue()
Get the extreme value with a functor element argument.
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...