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 "NekMassFluxWeightedSideAverage.h" 22 : 23 : registerMooseObject("CardinalApp", NekMassFluxWeightedSideAverage); 24 : 25 : InputParameters 26 258 : NekMassFluxWeightedSideAverage::validParams() 27 : { 28 258 : InputParameters params = NekMassFluxWeightedSideIntegral::validParams(); 29 258 : params.addClassDescription( 30 : "Mass flux weighted average of a field over a boundary in the NekRS mesh"); 31 258 : return params; 32 0 : } 33 : 34 86 : NekMassFluxWeightedSideAverage::NekMassFluxWeightedSideAverage(const InputParameters & parameters) 35 86 : : NekMassFluxWeightedSideIntegral(parameters) 36 : { 37 86 : } 38 : 39 : Real 40 492 : NekMassFluxWeightedSideAverage::getValue() const 41 : { 42 492 : return NekMassFluxWeightedSideIntegral::getValue() / nekrs::massFlowrate(_boundary, _pp_mesh); 43 : } 44 : 45 : #endif