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