Line data Source code
1 : /********************************************************************/ 2 : /* SOFTWARE COPYRIGHT NOTIFICATION */ 3 : /* Cardinal */ 4 : /* */ 5 : /* (c) 2021 UChicago Argonne, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /* */ 8 : /* Prepared by UChicago Argonne, LLC */ 9 : /* Under Contract No. DE-AC02-06CH11357 */ 10 : /* With the U. S. Department of Energy */ 11 : /* */ 12 : /* Prepared by Battelle Energy Alliance, LLC */ 13 : /* Under Contract No. DE-AC07-05ID14517 */ 14 : /* With the U. S. Department of Energy */ 15 : /* */ 16 : /* See LICENSE for full restrictions */ 17 : /********************************************************************/ 18 : 19 : #ifdef ENABLE_NEK_COUPLING 20 : 21 : #include "NekMassFluxWeightedSideIntegral.h" 22 : 23 : registerMooseObject("CardinalApp", NekMassFluxWeightedSideIntegral); 24 : 25 : InputParameters 26 672 : NekMassFluxWeightedSideIntegral::validParams() 27 : { 28 672 : InputParameters params = NekSideIntegral::validParams(); 29 672 : params.addClassDescription( 30 : "Mass flux weighted integral of a field over a boundary of the NekRS mesh"); 31 672 : return params; 32 0 : } 33 : 34 221 : NekMassFluxWeightedSideIntegral::NekMassFluxWeightedSideIntegral(const InputParameters & parameters) 35 221 : : NekSideIntegral(parameters) 36 : { 37 221 : if (_field == field::velocity_component) 38 1 : mooseError("This class does not support 'field = velocity_component' because the " 39 : "velocity component normal to the sideset is used!"); 40 220 : } 41 : 42 : Real 43 1096 : NekMassFluxWeightedSideIntegral::getValue() const 44 : { 45 1096 : return nekrs::sideMassFluxWeightedIntegral(_boundary, _field, _pp_mesh); 46 : } 47 : 48 : #endif