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