LCOV - code coverage report
Current view: top level - src/materials/lagrangian - ComputeLagrangianCauchyCustomStress.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 0 16 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 "ComputeLagrangianCauchyCustomStress.h"
      11             : 
      12             : registerMooseObject("SolidMechanicsApp", ComputeLagrangianCauchyCustomStress);
      13             : 
      14             : InputParameters
      15           0 : ComputeLagrangianCauchyCustomStress::validParams()
      16             : {
      17           0 :   InputParameters params = ComputeLagrangianStressCauchy::validParams();
      18             : 
      19           0 :   params.addClassDescription("Custom stress update providing the Cauchy stress");
      20             : 
      21           0 :   params.addRequiredParam<MaterialPropertyName>("custom_cauchy_stress",
      22             :                                                 "The name of the Cauchy stress.");
      23           0 :   params.addRequiredParam<MaterialPropertyName>("custom_cauchy_jacobian",
      24             :                                                 "The name of the Cauchy stress Jacobian.");
      25             : 
      26           0 :   return params;
      27           0 : }
      28             : 
      29           0 : ComputeLagrangianCauchyCustomStress::ComputeLagrangianCauchyCustomStress(
      30           0 :     const InputParameters & parameters)
      31             :   : ComputeLagrangianStressCauchy(parameters),
      32           0 :     _custom_stress(getMaterialProperty<RankTwoTensor>("custom_cauchy_stress")),
      33           0 :     _custom_jacobian(getMaterialProperty<RankFourTensor>("custom_cauchy_jacobian"))
      34             : {
      35           0 : }
      36             : 
      37             : void
      38           0 : ComputeLagrangianCauchyCustomStress::computeQpCauchyStress()
      39             : {
      40           0 :   _cauchy_stress[_qp] = _custom_stress[_qp];
      41           0 :   _cauchy_jacobian[_qp] = _custom_jacobian[_qp];
      42           0 : }

Generated by: LCOV version 1.14