Interface class for user objects that are connected to a shaft. More...
#include <ShaftConnectableUserObjectInterface.h>
Public Member Functions | |
ShaftConnectableUserObjectInterface (const MooseObject *moose_object) | |
virtual void | initialize () |
virtual void | execute () |
virtual void | finalize () |
virtual void | threadJoin (const UserObject &uo) |
virtual Real | getTorque () const |
virtual void | getTorqueJacobianData (DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const |
virtual Real | getMomentOfInertia () const |
virtual void | getMomentOfInertiaJacobianData (DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Member Functions | |
virtual void | setupConnections (unsigned int n_connections, unsigned int n_flow_eq) |
virtual void | setConnectionData (const std::vector< std::vector< std::vector< Real >>> &phi_face_values, const std::vector< std::vector< dof_id_type >> &flow_channel_dofs) |
Stores data computed by a volume-junction-like object associated with the conection. More... | |
virtual void | setOmegaDofs (const MooseVariableScalar *omega_var) |
virtual void | setupJunctionData (std::vector< dof_id_type > &scalar_dofs) |
Stores data associated with a junction component. More... | |
virtual void | computeMomentOfInertiaScalarJacobianWRTFlowDofs (const DenseMatrix< Real > &jac, const unsigned int &c) |
virtual void | computeTorqueScalarJacobianWRTFlowDofs (const DenseMatrix< Real > &jac, const unsigned int &c) |
Protected Attributes | |
unsigned int | _n_shaft_eq |
Number of equation in the shaft component. More... | |
unsigned int | _n_connections |
Number of flow channels the shaft connected component is attached to. More... | |
unsigned int | _n_flow_eq |
Number of flow variables in connected flow channels. More... | |
std::vector< dof_id_type > | _omega_dof |
Degrees of freedom for omega variable (from shaft) More... | |
std::vector< dof_id_type > | _scalar_dofs |
Degrees of freedom for scalar variables (from junction) More... | |
std::vector< std::vector< dof_id_type > > | _flow_channel_dofs |
Degrees of freedom for flow channel variables, for each connection. More... | |
Real | _torque |
Total torque. More... | |
Real | _moment_of_inertia |
Moment of inertia. More... | |
std::vector< DenseMatrix< Real > > | _torque_jacobian_flow_channel_vars |
Cached scalar residual Jacobian matrices w.r.t. More... | |
DenseMatrix< Real > | _torque_jacobian_scalar_vars |
Jacobian entries of torque wrt to scalar variables (from junction) More... | |
DenseMatrix< Real > | _torque_jacobian_omega_var |
Jacobian entries of torque wrt to omega variable (from shaft) More... | |
std::vector< DenseMatrix< Real > > | _moi_jacobian_flow_channel_vars |
DenseMatrix< Real > | _moi_jacobian_scalar_vars |
Jacobian entries of moment of inertia wrt to omega scalar variables (from junction) More... | |
DenseMatrix< Real > | _moi_jacobian_omega_var |
Jacobian entries of moment of inertia wrt to omega variable (from shaft) More... | |
std::vector< std::vector< std::vector< Real > > > | _phi_face_values |
Side shape function value (i.e. side from the flow channels) More... | |
Interface class for user objects that are connected to a shaft.
Definition at line 22 of file ShaftConnectableUserObjectInterface.h.
ShaftConnectableUserObjectInterface::ShaftConnectableUserObjectInterface | ( | const MooseObject * | moose_object | ) |
Definition at line 21 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Definition at line 177 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Definition at line 161 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Reimplemented in ShaftConnectedMotorUserObject.
Definition at line 38 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Reimplemented in ShaftConnectedMotorUserObject.
Definition at line 193 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Reimplemented in ShaftConnectedMotorUserObject.
Definition at line 84 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Definition at line 90 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Reimplemented in ShaftConnectedMotorUserObject.
Definition at line 43 of file ShaftConnectableUserObjectInterface.C.
Referenced by ShaftComponentTorqueScalarKernel::computeResidual().
|
virtual |
Definition at line 49 of file ShaftConnectableUserObjectInterface.C.
Referenced by ShaftComponentTorqueScalarKernel::computeJacobian().
|
virtual |
Reimplemented in ShaftConnectedMotorUserObject.
Definition at line 31 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Stores data computed by a volume-junction-like object associated with the conection.
Definition at line 136 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Definition at line 145 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Definition at line 125 of file ShaftConnectableUserObjectInterface.C.
|
protectedvirtual |
Stores data associated with a junction component.
Definition at line 155 of file ShaftConnectableUserObjectInterface.C.
|
virtual |
Definition at line 198 of file ShaftConnectableUserObjectInterface.C.
|
static |
Definition at line 15 of file ShaftConnectableUserObjectInterface.C.
Referenced by ShaftConnectedMotorUserObject::validParams().
|
protected |
Degrees of freedom for flow channel variables, for each connection.
Definition at line 70 of file ShaftConnectableUserObjectInterface.h.
Referenced by computeMomentOfInertiaScalarJacobianWRTFlowDofs(), computeTorqueScalarJacobianWRTFlowDofs(), getMomentOfInertiaJacobianData(), getTorqueJacobianData(), and setConnectionData().
|
protected |
Definition at line 84 of file ShaftConnectableUserObjectInterface.h.
Referenced by computeMomentOfInertiaScalarJacobianWRTFlowDofs(), getMomentOfInertiaJacobianData(), and setupConnections().
|
protected |
Jacobian entries of moment of inertia wrt to omega variable (from shaft)
Definition at line 88 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData(), and ShaftConnectableUserObjectInterface().
|
protected |
Jacobian entries of moment of inertia wrt to omega scalar variables (from junction)
Definition at line 86 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData().
|
protected |
Moment of inertia.
Definition at line 74 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertia(), initialize(), and threadJoin().
|
protected |
Number of flow channels the shaft connected component is attached to.
Definition at line 61 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData(), getTorqueJacobianData(), and setupConnections().
|
protected |
Number of flow variables in connected flow channels.
Definition at line 63 of file ShaftConnectableUserObjectInterface.h.
Referenced by computeMomentOfInertiaScalarJacobianWRTFlowDofs(), computeTorqueScalarJacobianWRTFlowDofs(), and setupConnections().
|
protected |
Number of equation in the shaft component.
Definition at line 59 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData(), getTorqueJacobianData(), and ShaftConnectableUserObjectInterface().
|
protected |
Degrees of freedom for omega variable (from shaft)
Definition at line 66 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData(), getTorqueJacobianData(), setOmegaDofs(), and ShaftConnectableUserObjectInterface().
|
protected |
Side shape function value (i.e. side from the flow channels)
Definition at line 91 of file ShaftConnectableUserObjectInterface.h.
Referenced by computeMomentOfInertiaScalarJacobianWRTFlowDofs(), computeTorqueScalarJacobianWRTFlowDofs(), and setConnectionData().
|
protected |
Degrees of freedom for scalar variables (from junction)
Definition at line 68 of file ShaftConnectableUserObjectInterface.h.
Referenced by getMomentOfInertiaJacobianData(), getTorqueJacobianData(), and setupJunctionData().
|
protected |
Total torque.
Definition at line 72 of file ShaftConnectableUserObjectInterface.h.
Referenced by getTorque(), initialize(), and threadJoin().
|
protected |
Cached scalar residual Jacobian matrices w.r.t.
flow channel variables, for each connection (first index) and each scalar variable (second index)
Definition at line 78 of file ShaftConnectableUserObjectInterface.h.
Referenced by computeTorqueScalarJacobianWRTFlowDofs(), getTorqueJacobianData(), and setupConnections().
|
protected |
Jacobian entries of torque wrt to omega variable (from shaft)
Definition at line 82 of file ShaftConnectableUserObjectInterface.h.
Referenced by getTorqueJacobianData(), and ShaftConnectableUserObjectInterface().
|
protected |
Jacobian entries of torque wrt to scalar variables (from junction)
Definition at line 80 of file ShaftConnectableUserObjectInterface.h.
Referenced by getTorqueJacobianData().