https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADShaftConnectedMotorUserObject.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 "GeneralUserObject.h"
14
20{
21public:
23
24 virtual ADReal getTorque() const override;
25 virtual ADReal getMomentOfInertia() const override;
26 virtual void initialize() override;
27 virtual void execute() override;
28 virtual void finalize() override;
29
30protected:
37
38public:
40};
DualNumber< Real, DNDerivativeType, true > ADReal
Interface class for user objects that are connected to a shaft.
User object to provide data for a shaft-connected motor.
virtual ADReal getMomentOfInertia() const override
const Function & _torque_fn
Torque as a function of shaft speed.
const ADVariableValue & _shaft_speed
Shaft speed.
virtual ADReal getTorque() const override
const Function & _inertia_fn
Moment of inertia as a function of shaft speed.
VariableValueTempl< true > ADVariableValue