50 std::vector<dof_id_type> & dofs_j)
const 52 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
59 dofs_j.resize(n_dofs);
93 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
100 dofs_j.resize(n_dofs);
126 unsigned int n_flow_eq)
137 const std::vector<std::vector<std::vector<Real>>> & phi_face_values,
138 const std::vector<std::vector<dof_id_type>> & flow_channel_dofs)
148 mooseAssert(dofs.size() == 1,
149 "There should be exactly 1 coupled DoF index for the variable '" + omega_var->
name() +
std::vector< std::vector< std::vector< Real > > > _phi_face_values
Side shape function value (i.e. side from the flow channels)
DenseMatrix< Real > _moi_jacobian_omega_var
Jacobian entries of moment of inertia wrt to omega variable (from shaft)
virtual void threadJoin(const UserObject &uo)
virtual void initialize()
DenseMatrix< Real > _torque_jacobian_scalar_vars
Jacobian entries of torque wrt to scalar variables (from junction)
const std::string & name() const override
Real _torque
Total torque.
virtual void setupJunctionData(std::vector< dof_id_type > &scalar_dofs)
Stores data associated with a junction component.
virtual void computeTorqueScalarJacobianWRTFlowDofs(const DenseMatrix< Real > &jac, const unsigned int &c)
virtual void setupConnections(unsigned int n_connections, unsigned int n_flow_eq)
virtual Real getMomentOfInertia() const
ShaftConnectableUserObjectInterface(const MooseObject *moose_object)
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.
unsigned int _n_flow_eq
Number of flow variables in connected flow channels.
virtual const std::vector< dof_id_type > & dofIndices() const
Interface class for user objects that are connected to a shaft.
unsigned int _n_shaft_eq
Number of equation in the shaft component.
std::vector< dof_id_type > _omega_dof
Degrees of freedom for omega variable (from shaft)
DenseMatrix< Real > _moi_jacobian_scalar_vars
Jacobian entries of moment of inertia wrt to omega scalar variables (from junction) ...
static InputParameters validParams()
std::vector< dof_id_type > _scalar_dofs
Degrees of freedom for scalar variables (from junction)
virtual void setOmegaDofs(const MooseVariableScalar *omega_var)
virtual void computeMomentOfInertiaScalarJacobianWRTFlowDofs(const DenseMatrix< Real > &jac, const unsigned int &c)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
DenseMatrix< Real > _torque_jacobian_omega_var
Jacobian entries of torque wrt to omega variable (from shaft)
std::vector< std::vector< dof_id_type > > _flow_channel_dofs
Degrees of freedom for flow channel variables, for each connection.
void resize(const unsigned int new_m, const unsigned int new_n)
virtual Real getTorque() const
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
std::vector< DenseMatrix< Real > > _torque_jacobian_flow_channel_vars
Cached scalar residual Jacobian matrices w.r.t.
static const std::string k
virtual void getTorqueJacobianData(DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const
virtual void getMomentOfInertiaJacobianData(DenseMatrix< Real > &jacobian_block, std::vector< dof_id_type > &dofs_j) const
std::vector< DenseMatrix< Real > > _moi_jacobian_flow_channel_vars
unsigned int _n_connections
Number of flow channels the shaft connected component is attached to.
Real _moment_of_inertia
Moment of inertia.