https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ShaftConnectedCompressor1Phase.h
Go to the documentation of this file.
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
13#include "ShaftConnectable.h"
14
19{
20public:
22
23 virtual void addVariables() override;
24 virtual void addMooseObjects() override;
25 virtual UserObjectName getShaftConnectedUserObjectName() const override
26 {
27 return _junction_uo_name;
28 }
29
30protected:
31 virtual void check() const override;
32 virtual void buildVolumeJunctionUserObject() override;
33
35 const BoundaryName & _inlet;
37 const BoundaryName & _outlet;
39 const Real & _omega_rated;
41 const Real & _mdot_rated;
43 const Real & _rho0_rated;
45 const Real & _c0_rated;
47 const Real & _speed_cr_fr;
49 const Real & _tau_fr_const;
51 const std::vector<Real> & _tau_fr_coeff;
53 const Real & _speed_cr_I;
55 const Real & _inertia_const;
57 const std::vector<Real> & _inertia_coeff;
58
60 const std::vector<Real> & _speeds;
62 const std::vector<FunctionName> & _Rp_functions;
64 const std::vector<FunctionName> & _eff_functions;
66 const VariableName _delta_p_var_name;
68 const VariableName _isentropic_torque_var_name;
70 const VariableName _dissipation_torque_var_name;
72 const VariableName _friction_torque_var_name;
74 const VariableName _moi_var_name;
75
76public:
78};
const std::string _junction_uo_name
Name of junction user object name, if any.
Interface class for components that connect to a shaft.
1-phase compressor that must be connected to a Shaft component
virtual void check() const override
Check the component integrity.
const Real & _omega_rated
Rated compressor speed.
const Real & _speed_cr_I
Compressor speed threshold for inertia.
const Real & _rho0_rated
Rated compressor inlet stagnation fluid density.
const Real & _speed_cr_fr
Compressor speed threshold for friction.
const Real & _mdot_rated
Rated compressor mass flow rate.
const BoundaryName & _inlet
Compressor inlet.
const VariableName _moi_var_name
Name of compressor inertia variable.
const Real & _inertia_const
Compressor inertia constant.
const std::vector< Real > & _tau_fr_coeff
Compressor friction coefficients.
const VariableName _isentropic_torque_var_name
Name of compressor isentropic torque variable.
const Real & _tau_fr_const
Compressor friction constant.
const BoundaryName & _outlet
Compressor outlet.
const std::vector< Real > & _inertia_coeff
Compressor inertia coefficients.
virtual void buildVolumeJunctionUserObject() override
Builds user object for computing and storing the fluxes.
const std::vector< FunctionName > & _eff_functions
Names of the adiabatic efficiency functions.
const std::vector< Real > & _speeds
Compressor speeds which correspond to Rp and eff function order.
virtual UserObjectName getShaftConnectedUserObjectName() const override
const std::vector< FunctionName > & _Rp_functions
Names of the pressure ratio functions.
const Real & _c0_rated
Rated compressor inlet stagnation sound speed.
const VariableName _delta_p_var_name
Name of compressor delta_p variable.
const VariableName _friction_torque_var_name
Name of compressor friction torque variable.
const VariableName _dissipation_torque_var_name
Name of compressor dissipation torque variable.
Junction between 1-phase flow channels that has a non-zero volume.