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 "GeneralVectorPostprocessor.h" 13 : 14 : // Forward declaration 15 : class EulerAngleUpdater; 16 : class EulerAngleProvider; 17 : class GrainTrackerInterface; 18 : class GrainForceAndTorqueInterface; 19 : class RotationTensor; 20 : 21 : /** 22 : * This is a unit test to check the correctness of the updated euler angles 23 : * An unit vector is rotated as per old euler angles first and then due to the applied torque 24 : * The final rotated vector is cross checked with the rotated vector as per updated euler angles 25 : */ 26 : class EulerAngleUpdaterCheck : public GeneralVectorPostprocessor 27 : { 28 : public: 29 : static InputParameters validParams(); 30 : 31 : EulerAngleUpdaterCheck(const InputParameters & parameters); 32 : 33 : virtual void initialize() override; 34 17 : virtual void execute() override {} 35 17 : virtual void finalize() override {} 36 : 37 : VectorPostprocessorValue & _diff; 38 : 39 : protected: 40 : const GrainTrackerInterface & _grain_tracker; 41 : const EulerAngleUpdater & _euler; 42 : const GrainForceAndTorqueInterface & _grain_torque; 43 : const VectorPostprocessorValue & _grain_volumes; 44 : 45 : const Real _mr; 46 : 47 : std::vector<RealVectorValue> _angles; 48 : std::vector<RealVectorValue> _angles_old; 49 : };