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 "FXBoundaryFluxUserObject.h" 11 : 12 : registerMooseObject("FunctionalExpansionToolsApp", FXBoundaryFluxUserObject); 13 : 14 : InputParameters 15 54 : FXBoundaryFluxUserObject::validParams() 16 : { 17 54 : InputParameters params = FXBoundaryBaseUserObject::validParams(); 18 : 19 54 : params.addClassDescription("Generates an Functional Expansion representation for a boundary flux " 20 : "condition using a 'FunctionSeries'-type Function"); 21 : 22 108 : params.addRequiredParam<std::string>("diffusivity", 23 : "The name of the material diffusivity " 24 : "property, or raw value, that will be used " 25 : "in the flux computation."); 26 : 27 54 : return params; 28 0 : } 29 : 30 36 : FXBoundaryFluxUserObject::FXBoundaryFluxUserObject(const InputParameters & parameters) 31 : : FXBoundaryBaseUserObject(parameters), 32 36 : _diffusivity_name(parameters.get<std::string>("diffusivity")), 33 72 : _diffusivity(getMaterialProperty<Real>(_diffusivity_name)) 34 : { 35 36 : } 36 : 37 : Real 38 14560 : FXBoundaryFluxUserObject::computeQpIntegral() 39 : { 40 14560 : return -_diffusivity[_qp] * _grad_u[_qp] * _normals[_qp]; 41 : }