www.mooseframework.org
ElementExtremeValue.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
16 class ElementExtremeValue : public ExtremeValueBase<ElementVariablePostprocessor>
17 {
18 public:
20 
22 
23 protected:
24  virtual std::pair<Real, Real> getProxyValuePair() override;
25 
26  virtual void computeQpValue() override { computeExtremeValue(); }
27 
33 
35  std::pair<Real, Real> _proxy_value;
36 };
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
std::pair< Real, Real > _proxy_value
Extreme value of the value and proxy variable at the same point.
OutputTools< Real >::VariableValue VariableValue
Definition: MooseTypes.h:302
virtual std::pair< Real, Real > getProxyValuePair() override
A postprocessor for collecting the elemental min or max value.
virtual void computeQpValue() override
This is what derived classes should override to do something on every quadrature point on every eleme...
const VariableValue & _proxy_variable
A proxy variable used to find the quadrature point at which to evaluate the variable.
static InputParameters validParams()
virtual void computeExtremeValue()
Get the extreme value with a functor element argument.
const InputParameters & parameters() const
Get the parameters of the object.
ElementExtremeValue(const InputParameters &parameters)