LCOV - code coverage report
Current view: top level - include/materials/lagrangian - ComputeLagrangianStressPK1.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: #33390 (250e9c) with base 846a5c Lines: 1 1 100.0 %
Date: 2026-07-31 18:20:40 Functions: 1 2 50.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 "ComputeLagrangianStressBase.h"
      13             : 
      14             : /// Native interface for providing the 1st Piola Kirchhoff stress
      15             : ///
      16             : /// This class *implements* the 1st PK stress update, providing:
      17             : ///   1) The 1st PK stress
      18             : ///   2) The derivative of the 1st PK stress wrt the deformation gradient
      19             : ///
      20             : /// and wraps these to provide:
      21             : ///   1) The Cauchy stress
      22             : ///   2) The derivative of the increment in the Cauchy stress wrt the
      23             : ///      increment in the spatial velocity gradient
      24             : ///
      25             : class ComputeLagrangianStressPK1 : public ComputeLagrangianStressBase
      26             : {
      27             : public:
      28             :   static InputParameters validParams();
      29             :   ComputeLagrangianStressPK1(const InputParameters & parameters);
      30         234 :   virtual ~ComputeLagrangianStressPK1(){};
      31             : 
      32             : protected:
      33             :   /// Calculate the stress update to provide both measures (cauchy and pk1)
      34             :   virtual void computeQpStressUpdate() override;
      35             :   /// Provide for the actual PK stress update (just PK1)
      36             :   virtual void computeQpPK1Stress() = 0;
      37             : 
      38             : protected:
      39             :   /// Wrap the PK stress to get the Cauchy stress. Protected so PK2 (which has its own
      40             :   /// wrap structure PK1 = F_ust * S with direct F_ust dependence) can override it.
      41             :   virtual void computeQpCauchyStress();
      42             : 
      43             :   /// Inverse incremental deformation gradient
      44             :   const MaterialProperty<RankTwoTensor> & _inv_df;
      45             :   /// Inverse F-bar-stabilized deformation gradient (= _F^{-1}). Kept for any internal
      46             :   /// consumer that still needs it; the kinematic stress-measure wrap uses _F_ust below.
      47             :   const MaterialProperty<RankTwoTensor> & _inv_def_grad;
      48             :   /// F-bar-stabilized deformation gradient (= the strain calc's published `_F`). Drives
      49             :   /// the constitutive update via the strain calc's F-bar'd `_f_inv`; NOT used for the
      50             :   /// kinematic PK1 -> sigma wrap (that's `_F_ust`, declared on the base).
      51             :   const MaterialProperty<RankTwoTensor> & _F;
      52             : };

Generated by: LCOV version 1.14