https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ShaftConnectedTurbine1Phase.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 & _D_wheel;
43 const Real & _speed_cr_fr;
45 const Real & _tau_fr_const;
47 const std::vector<Real> & _tau_fr_coeff;
49 const Real & _speed_cr_I;
51 const Real & _inertia_const;
53 const std::vector<Real> & _inertia_coeff;
54
56 const FunctionName & _head_coefficient;
58 const FunctionName & _power_coefficient;
60 const VariableName _delta_p_var_name;
62 const VariableName _power_var_name;
64 const VariableName _driving_torque_var_name;
66 const VariableName _friction_torque_var_name;
68 const VariableName _flow_coeff_var_name;
70 const VariableName _moi_var_name;
71
72public:
74};
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 turbine that must be connected to a Shaft component
const VariableName _delta_p_var_name
Name of turbine pressure drop variable.
const VariableName _friction_torque_var_name
Name of turbine friction torque variable.
const Real & _speed_cr_fr
Turbine speed threshold for friction.
const BoundaryName & _inlet
Turbine inlet.
const std::vector< Real > & _tau_fr_coeff
Turbine friction coefficients.
const BoundaryName & _outlet
Turbine outlet.
const VariableName _power_var_name
Name of turbine power variable.
const std::vector< Real > & _inertia_coeff
Turbine inertia coefficients.
const Real & _inertia_const
Turbine inertia constant.
const VariableName _driving_torque_var_name
Name of turbine driving torque variable.
const Real & _tau_fr_const
Turbine friction constant.
const Real & _speed_cr_I
Turbine speed threshold for inertia.
virtual UserObjectName getShaftConnectedUserObjectName() const override
const Real & _D_wheel
Turbine wheel diameter.
const FunctionName & _head_coefficient
Name of function to compute data for turbine head.
const VariableName _flow_coeff_var_name
Name of turbine flow_coeff torque variable.
virtual void check() const override
Check the component integrity.
virtual void buildVolumeJunctionUserObject() override
Builds user object for computing and storing the fluxes.
const FunctionName & _power_coefficient
Name of function to compute data for turbine power.
const Real & _omega_rated
Rated turbine speed.
const VariableName _moi_var_name
Name of turbine inertia variable.
Junction between 1-phase flow channels that has a non-zero volume.