LCOV - code coverage report
Current view: top level - src/materials - ADCompute1DSmallStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 17 0.0 %
Date: 2025-07-25 05:00:39 Functions: 0 3 0.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             : #include "ADCompute1DSmallStrain.h"
      11             : 
      12             : #include "libmesh/quadrature.h"
      13             : 
      14             : InputParameters
      15           0 : ADCompute1DSmallStrain::validParams()
      16             : {
      17           0 :   InputParameters params = ADComputeSmallStrain::validParams();
      18           0 :   params.addClassDescription("Compute a small strain in 1D problem");
      19           0 :   return params;
      20           0 : }
      21             : 
      22           0 : ADCompute1DSmallStrain::ADCompute1DSmallStrain(const InputParameters & parameters)
      23           0 :   : ADComputeSmallStrain(parameters)
      24             : {
      25           0 : }
      26             : 
      27             : void
      28           0 : ADCompute1DSmallStrain::computeProperties()
      29             : {
      30           0 :   for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
      31             :   {
      32           0 :     _total_strain[_qp](0, 0) = (*_grad_disp[0])[_qp](0);
      33           0 :     _total_strain[_qp](1, 1) = computeStrainYY();
      34           0 :     _total_strain[_qp](2, 2) = computeStrainZZ();
      35             : 
      36           0 :     _mechanical_strain[_qp] = _total_strain[_qp];
      37             : 
      38             :     // Remove the eigenstrain
      39           0 :     for (const auto es : _eigenstrains)
      40           0 :       _mechanical_strain[_qp] -= (*es)[_qp];
      41             :   }
      42           0 : }

Generated by: LCOV version 1.14