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 "SideExtremeValue.h" 11 : 12 : registerMooseObject("MooseApp", SideExtremeValue); 13 : 14 : InputParameters 15 14465 : SideExtremeValue::validParams() 16 : { 17 14465 : InputParameters params = ExtremeValueBase<SideVariablePostprocessor>::validParams(); 18 14465 : 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 14465 : params.addClassDescription( 23 : "Finds either the min or max variable value of a variable over a boundary."); 24 14465 : return params; 25 0 : } 26 : 27 104 : SideExtremeValue::SideExtremeValue(const InputParameters & parameters) 28 : : ExtremeValueBase<SideVariablePostprocessor>(parameters), 29 104 : _proxy_variable(isParamValid("proxy_variable") ? coupledValue("proxy_variable") : _u) 30 : { 31 104 : } 32 : 33 : std::pair<Real, Real> 34 1920 : SideExtremeValue::getProxyValuePair() 35 : { 36 1920 : return std::make_pair(_proxy_variable[_qp], _u[_qp]); 37 : }