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 "Material.h" 13 : #include "RankTwoTensor.h" 14 : #include "RankFourTensor.h" 15 : #include "RotationTensor.h" 16 : #include "ComputeStrainBase.h" 17 : #include "Assembly.h" 18 : #include "CrackFrontDefinition.h" 19 : #include "EnrichmentFunctionCalculation.h" 20 : 21 : /** 22 : * ComputeCrackTipEnrichmentSmallStrain calculates the sum of standard strain and enrichement strain 23 : */ 24 : class ComputeCrackTipEnrichmentSmallStrain : public ComputeStrainBase, 25 : public EnrichmentFunctionCalculation 26 : { 27 : public: 28 : static InputParameters validParams(); 29 : 30 : ComputeCrackTipEnrichmentSmallStrain(const InputParameters & parameters); 31 24 : virtual ~ComputeCrackTipEnrichmentSmallStrain() {} 32 : 33 : protected: 34 : virtual void computeProperties() override; 35 : 36 : virtual void computeQpProperties() override; 37 : 38 : /// enrichment displacement 39 : std::vector<Real> _enrich_disp; 40 : 41 : /// gradient of enrichment displacement 42 : std::vector<RealVectorValue> _grad_enrich_disp; 43 : 44 : /// enrichment displacement variables 45 : std::vector<std::vector<MooseVariableFEBase *>> _enrich_variable; 46 : 47 : /// the current shape functions 48 : const VariablePhiValue & _phi; 49 : 50 : /// gradient of the shape function 51 : const VariablePhiGradient & _grad_phi; 52 : 53 : private: 54 : /// enrichment function value 55 : std::vector<Real> _B; 56 : /// derivatives of enrichment function respect to global cooridnate 57 : std::vector<RealVectorValue> _dBX; 58 : /// derivatives of enrichment function respect to crack front cooridnate 59 : std::vector<RealVectorValue> _dBx; 60 : /// enrichment function at node I 61 : std::vector<std::vector<Real>> _BI; 62 : /// shape function 63 : const std::vector<std::vector<Real>> * _fe_phi; 64 : /// gradient of shape function 65 : const std::vector<std::vector<RealGradient>> * _fe_dphi; 66 : NonlinearSystem * _nl; 67 : const NumericVector<Number> * _sln; 68 : };