https://mooseframework.inl.gov
ShaftConnectedMotor.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 #include "ShaftConnectable.h"
14 
19 {
20 public:
21  ShaftConnectedMotor(const InputParameters & params);
22 
23  virtual void addVariables() override;
24  virtual void addMooseObjects() override;
25 
26 protected:
27  virtual void check() const override;
28 
30  const FunctionName & _torque_fn_name;
32  const FunctionName & _inertia_fn_name;
33 
34 public:
36 };
ShaftConnectedMotor(const InputParameters &params)
Motor to drive a shaft component.
static InputParameters validParams()
virtual void addMooseObjects() override
Base class for THM components.
Definition: Component.h:27
const FunctionName & _torque_fn_name
Torque function name.
virtual void addVariables() override
const FunctionName & _inertia_fn_name
Moment of inertia function name.
Interface class for components that connect to a shaft.
virtual void check() const override
Check the component integrity.