LCOV - code coverage report
Current view: top level - src/materials/lagrangian - ComputeLagrangianWPSStrain.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 12 13 92.3 %
Date: 2025-07-25 05:00:39 Functions: 3 3 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             : #include "ComputeLagrangianWPSStrain.h"
      11             : 
      12             : registerMooseObject("SolidMechanicsApp", ComputeLagrangianWPSStrain);
      13             : 
      14             : InputParameters
      15         120 : ComputeLagrangianWPSStrain::validParams()
      16             : {
      17         120 :   InputParameters params = ComputeLagrangianStrain::validParams();
      18         240 :   params.addRequiredCoupledVar("out_of_plane_strain", "The out-of-plane strain");
      19         120 :   return params;
      20           0 : }
      21             : 
      22          90 : ComputeLagrangianWPSStrain::ComputeLagrangianWPSStrain(const InputParameters & params)
      23          90 :   : ComputeLagrangianStrain(params), _out_of_plane_strain(coupledValue("out_of_plane_strain"))
      24             : {
      25          90 : }
      26             : 
      27             : void
      28       40440 : ComputeLagrangianWPSStrain::computeDeformationGradient()
      29             : {
      30       40440 :   ComputeLagrangianStrain::computeDeformationGradient();
      31             : 
      32      202200 :   for (_qp = 0; _qp < _qrule->n_points(); ++_qp)
      33      161760 :     _F[_qp](2, 2) += _out_of_plane_strain[_qp];
      34       40440 : }

Generated by: LCOV version 1.14