Line data Source code
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 : #include "ElementExtremeValue.h" 11 : 12 : registerMooseObject("MooseApp", ElementExtremeValue); 13 : 14 : InputParameters 15 15980 : ElementExtremeValue::validParams() 16 : { 17 15980 : InputParameters params = ExtremeValueBase<ElementVariablePostprocessor>::validParams(); 18 15980 : params.addCoupledVar("proxy_variable", 19 : "The name of the variable to use to identify the location at which " 20 : "the variable value should be taken; if not provided, this defaults " 21 : "to the 'variable'."); 22 15980 : params.addClassDescription( 23 : "Finds either the min or max elemental value of a variable over the domain."); 24 15980 : return params; 25 0 : } 26 : 27 875 : ElementExtremeValue::ElementExtremeValue(const InputParameters & parameters) 28 : : ExtremeValueBase<ElementVariablePostprocessor>(parameters), 29 875 : _proxy_variable(isParamValid("proxy_variable") ? coupledValue("proxy_variable") : _u) 30 : { 31 875 : } 32 : 33 : std::pair<Real, Real> 34 529180 : ElementExtremeValue::getProxyValuePair() 35 : { 36 529180 : return std::make_pair(_proxy_variable[_qp], _u[_qp]); 37 : }