LCOV - code coverage report
Current view: top level - include/components - ShaftConnectedPump1Phase.h (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 2 2 100.0 %
Date: 2025-07-30 13:02:48 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          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             : #pragma once
      11             : 
      12             : #include "VolumeJunction1Phase.h"
      13             : #include "ShaftConnectable.h"
      14             : 
      15             : /**
      16             :  * 1-phase pump that must be connected to a Shaft component
      17             :  */
      18             : class ShaftConnectedPump1Phase : public VolumeJunction1Phase, public ShaftConnectable
      19             : {
      20             : public:
      21             :   ShaftConnectedPump1Phase(const InputParameters & params);
      22             : 
      23             :   virtual void addVariables() override;
      24             :   virtual void addMooseObjects() override;
      25         258 :   virtual UserObjectName getShaftConnectedUserObjectName() const override
      26             :   {
      27         258 :     return _junction_uo_name;
      28             :   }
      29             : 
      30             : protected:
      31             :   virtual void check() const override;
      32             :   virtual void buildVolumeJunctionUserObject() override;
      33             : 
      34             :   /// Pump inlet
      35             :   const BoundaryName & _inlet;
      36             :   /// Pump outlet
      37             :   const BoundaryName & _outlet;
      38             :   /// Rated pump speed
      39             :   const Real & _omega_rated;
      40             :   /// Rated pump volumetric flow rate
      41             :   const Real & _volumetric_rated;
      42             :   /// Rated pump head
      43             :   const Real & _head_rated;
      44             :   /// Rated pump torque
      45             :   const Real & _torque_rated;
      46             :   /// Rated pump density
      47             :   const Real & _density_rated;
      48             :   /// Pump speed threshold for friction
      49             :   const Real & _speed_cr_fr;
      50             :   /// Pump friction constant
      51             :   const Real & _tau_fr_const;
      52             :   /// Pump friction coefficients
      53             :   const std::vector<Real> & _tau_fr_coeff;
      54             :   /// Pump speed threshold for inertia
      55             :   const Real & _speed_cr_I;
      56             :   /// Pump inertia constant
      57             :   const Real & _inertia_const;
      58             :   /// Pump inertia coefficients
      59             :   const std::vector<Real> & _inertia_coeff;
      60             :   /// Name of function to compute data for pump head
      61             :   const FunctionName & _head;
      62             :   /// Name of function to compute data for pump torque
      63             :   const FunctionName & _torque_hydraulic;
      64             :   /// Name of pump head variable
      65             :   const VariableName _head_var_name;
      66             :   /// Name of pump hydraulic torque variable
      67             :   const VariableName _hydraulic_torque_var_name;
      68             :   /// Name of pump friction torque variable
      69             :   const VariableName _friction_torque_var_name;
      70             :   /// Name of pump inertia variable
      71             :   const VariableName _moi_var_name;
      72             :   /// Transition width for the sign of the frictional torque when speed is 0
      73             :   const Real & _transition_width;
      74             : 
      75             : public:
      76             :   static InputParameters validParams();
      77             : };

Generated by: LCOV version 1.14