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 "FXBoundaryBaseUserObject.h" 11 : 12 : InputParameters 13 171 : FXBoundaryBaseUserObject::validParams() 14 : { 15 171 : InputParameters params = FXIntegralBaseUserObject<SideIntegralVariableUserObject>::validParams(); 16 171 : return params; 17 : } 18 : 19 114 : FXBoundaryBaseUserObject::FXBoundaryBaseUserObject(const InputParameters & parameters) 20 114 : : FXIntegralBaseUserObject<SideIntegralVariableUserObject>(parameters) 21 : { 22 114 : mooseInfo("Using FXInterface-type UserObject '", 23 : name(), 24 : "'.\nNote: it is your responsibility to ensure that the dimensionality, order, and " 25 : "series parameters for FunctionSeries '", 26 114 : _function_series.name(), 27 : "' are sane."); 28 114 : } 29 : 30 : Point 31 16320 : FXBoundaryBaseUserObject::getCentroid() const 32 : { 33 16320 : return _current_side_elem->vertex_average(); 34 : } 35 : 36 : Real 37 16320 : FXBoundaryBaseUserObject::getVolume() const 38 : { 39 16320 : return _current_side_volume; 40 : }