LCOV - code coverage report
Current view: top level - include/neml2/materials - CauchyStressFromNEML2Receiver.h (source / functions) Hit Total Coverage
Test: idaholab/moose tensor_mechanics: d6b47a Lines: 0 1 0.0 %
Date: 2024-02-27 11:53:14 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://www.mooseframework.org
       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 "CauchyStressFromNEML2UO.h"
      13             : #include "ComputeLagrangianObjectiveStress.h"
      14             : 
      15             : /**
      16             :  * This is a "glue" material that retrieves the batched output vector from a NEML2 material model
      17             :  * and uses the output variables to perform the objective stress integration.
      18             :  */
      19             : class CauchyStressFromNEML2Receiver : public ComputeLagrangianObjectiveStress
      20             : {
      21             : public:
      22             :   static InputParameters validParams();
      23             :   CauchyStressFromNEML2Receiver(const InputParameters & parameters);
      24             : 
      25             : #ifndef NEML2_ENABLED
      26             : 
      27             : protected:
      28           0 :   virtual void computeQpSmallStress() override {}
      29             : 
      30             : #else
      31             : 
      32             : protected:
      33             :   virtual void computeQpSmallStress() override;
      34             : 
      35             :   /// The NEML2 user object that actually performs the batched computation
      36             :   const CauchyStressFromNEML2UO & _neml2_uo;
      37             : 
      38             :   /// The output from the NEML2 user object
      39             :   const CauchyStressFromNEML2UO::OutputVector & _output;
      40             : 
      41             : #endif // NEML2_ENABLED
      42             : };

Generated by: LCOV version 1.14