LCOV - code coverage report
Current view: top level - include/auxkernels - ElasticEnergyAux.h (source / functions) Hit Total Coverage
Test: idaholab/moose solid_mechanics: f45d79 Lines: 1 1 100.0 %
Date: 2025-07-25 05:00:39 Functions: 2 2 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             : #pragma once
      11             : 
      12             : #include "AuxKernel.h"
      13             : #include "RankTwoTensor.h"
      14             : 
      15             : // Forward declarations
      16             : 
      17             : class ElasticEnergyAux : public AuxKernel
      18             : {
      19             : public:
      20             :   static InputParameters validParams();
      21             : 
      22             :   ElasticEnergyAux(const InputParameters & parameters);
      23         128 :   virtual ~ElasticEnergyAux() {}
      24             : 
      25             : protected:
      26             :   virtual Real computeValue();
      27             : 
      28             :   /// Base name of the material system used to calculate the elastic energy
      29             :   const std::string _base_name;
      30             : 
      31             :   /// The stress tensor
      32             :   const MaterialProperty<RankTwoTensor> & _stress;
      33             :   const MaterialProperty<RankTwoTensor> & _elastic_strain;
      34             : };

Generated by: LCOV version 1.14