LCOV - code coverage report
Current view: top level - include/materials - ComputeCrackTipEnrichmentSmallStrain.h (source / functions) Hit Total Coverage
Test: idaholab/moose xfem: #31405 (292dce) with base fef103 Lines: 1 1 100.0 %
Date: 2025-09-04 07:58:55 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          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             : };

Generated by: LCOV version 1.14