https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADShaftComponentTorqueScalarKernel.C
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
11#include "UserObject.h"
13
15
18{
20 params.addRequiredParam<UserObjectName>("shaft_connected_component_uo",
21 "Shaft connected component user object name");
22 params.addClassDescription("Torque contributed by a component connected to a shaft");
23 return params;
24}
25
27 const InputParameters & parameters)
28 : ADScalarKernel(parameters),
29 _shaft_connected_component_uo(
30 getUserObject<ADShaftConnectableUserObjectInterface>("shaft_connected_component_uo"))
31{
32}
33
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("ThermalHydraulicsApp", ADShaftComponentTorqueScalarKernel)
static InputParameters validParams()
Torque contributed by a component connected to a shaft.
ADShaftComponentTorqueScalarKernel(const InputParameters &parameters)
const ADShaftConnectableUserObjectInterface & _shaft_connected_component_uo
Shaft connected component user object.
Interface class for user objects that are connected to a shaft.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)