LCOV - code coverage report
Current view: top level - src/materials/lagrangian - ComputeLagrangianStressBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #32971 (54bef8) with base c6cf66 Lines: 18 19 94.7 %
Date: 2026-05-29 20:40:07 Functions: 4 4 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 "ComputeLagrangianStressBase.h"
      11             : 
      12             : InputParameters
      13        2920 : ComputeLagrangianStressBase::validParams()
      14             : {
      15        2920 :   InputParameters params = Material::validParams();
      16             : 
      17        5840 :   params.addParam<bool>("large_kinematics", false, "Use a large displacement stress update.");
      18             : 
      19        5840 :   params.addParam<std::string>("base_name", "Material property base name");
      20             : 
      21        2920 :   return params;
      22           0 : }
      23             : 
      24        2190 : ComputeLagrangianStressBase::ComputeLagrangianStressBase(const InputParameters & parameters)
      25             :   : Material(parameters),
      26        2190 :     _large_kinematics(getParam<bool>("large_kinematics")),
      27        4428 :     _base_name(isParamValid("base_name") ? getParam<std::string>("base_name") + "_" : ""),
      28        2190 :     _cauchy_stress(declareProperty<RankTwoTensor>(_base_name + "cauchy_stress")),
      29        2190 :     _cauchy_jacobian(declareProperty<RankFourTensor>(_base_name + "cauchy_jacobian")),
      30        2190 :     _pk1_stress(declareProperty<RankTwoTensor>(_base_name + "pk1_stress")),
      31        4380 :     _pk1_jacobian(declareProperty<RankFourTensor>(_base_name + "pk1_jacobian"))
      32             : {
      33        2190 : }
      34             : 
      35             : void
      36      524778 : ComputeLagrangianStressBase::initQpStatefulProperties()
      37             : {
      38             :   // Actually no need to zero out the stresses as they aren't stateful (yet)
      39      524778 : }
      40             : 
      41             : void
      42    33737740 : ComputeLagrangianStressBase::computeQpProperties()
      43             : {
      44    33737740 :   computeQpStressUpdate();
      45    33737740 : }

Generated by: LCOV version 1.14