Line data Source code
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 "MooseObject.h" 13 : 14 : namespace libMesh 15 : { 16 : template <typename> 17 : class VectorValue; 18 : typedef VectorValue<Real> RealGradient; 19 : } 20 : 21 : /** 22 : * This class provides interface for extracting the forces and torques computed in other UserObjects 23 : */ 24 22 : class GrainForceAndTorqueInterface 25 : { 26 : public: 27 : virtual const std::vector<RealGradient> & getForceValues() const = 0; 28 : virtual const std::vector<RealGradient> & getTorqueValues() const = 0; 29 : virtual const std::vector<Real> & getForceCJacobians() const = 0; 30 : virtual const std::vector<std::vector<Real>> & getForceEtaJacobians() const = 0; 31 : };