https://mooseframework.inl.gov
Shaft.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 
12 #include "Component.h"
13 
17 class Shaft : public Component
18 {
19 public:
20  Shaft(const InputParameters & params);
21 
22  virtual void addVariables() override;
23  virtual void addMooseObjects() override;
24  virtual VariableName getOmegaVariableName() const;
25 
26 protected:
27  virtual void init() override;
28  virtual void check() const override;
29 
33  const VariableName _omega_var_name;
35  const std::vector<std::string> & _connected_components;
37  std::vector<SubdomainName> _connected_subdomain_names;
38 
39 public:
41 };
virtual void addVariables() override
Definition: Shaft.C:67
const VariableName _omega_var_name
Name of the omega variable.
Definition: Shaft.h:33
const Real & _scaling_factor_omega
scaling factor for scalar variable omega
Definition: Shaft.h:31
static InputParameters validParams()
Definition: Shaft.C:17
Component that connects torque of turbomachinery components.
Definition: Shaft.h:17
virtual void check() const override
Check the component integrity.
Definition: Shaft.C:56
const std::vector< std::string > & _connected_components
Components connected to this shaft.
Definition: Shaft.h:35
Base class for THM components.
Definition: Component.h:27
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Shaft(const InputParameters &params)
Definition: Shaft.C:29
std::vector< SubdomainName > _connected_subdomain_names
Vector of subdomain names of the connected geometrical flow components.
Definition: Shaft.h:37
virtual VariableName getOmegaVariableName() const
Definition: Shaft.C:129
virtual void addMooseObjects() override
Definition: Shaft.C:77
virtual void init() override
Initializes the component.
Definition: Shaft.C:40