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 "InterfaceValueUserObject.h" 11 : #include "InterfaceValueTools.h" 12 : 13 : InputParameters 14 29009 : InterfaceValueUserObject::validParams() 15 : { 16 29009 : InputParameters params = InterfaceUserObject::validParams(); 17 87027 : params.addParam<MooseEnum>("interface_value_type", 18 58018 : InterfaceValueTools::InterfaceAverageOptions(), 19 : "Type of scalar output"); 20 29009 : params.addClassDescription( 21 : "Special subclass of interface userobject giving access to interface value utilities."); 22 29009 : return params; 23 0 : } 24 : 25 243 : InterfaceValueUserObject::InterfaceValueUserObject(const InputParameters & parameters) 26 : : InterfaceUserObject(parameters), 27 243 : _interface_value_type(parameters.get<MooseEnum>("interface_value_type")) 28 : { 29 243 : } 30 : 31 : Real 32 8394 : InterfaceValueUserObject::computeInterfaceValueType(const Real value_primary, 33 : const Real value_secondary) 34 : { 35 8394 : return InterfaceValueTools::getQuantity(_interface_value_type, value_primary, value_secondary); 36 : }