LCOV - code coverage report
Current view: top level - include/auxkernels - KineticEnergyAux.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 4 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 "AuxKernel.h"
      13             : #include "RankTwoTensor.h"
      14             : 
      15             : // Forward declarations
      16             : template <bool is_ad>
      17             : class KineticEnergyAuxTempl : public AuxKernel
      18             : {
      19             : public:
      20             :   static InputParameters validParams();
      21             : 
      22             :   KineticEnergyAuxTempl(const InputParameters & parameters);
      23          12 :   virtual ~KineticEnergyAuxTempl() {}
      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 GenericMaterialProperty<Real, is_ad> & _density;
      33             : 
      34             :   const VariableValue & _vel_x;
      35             :   const VariableValue & _vel_y;
      36             :   const VariableValue & _vel_z;
      37             : };
      38             : 
      39             : typedef KineticEnergyAuxTempl<false> KineticEnergyAux;
      40             : typedef KineticEnergyAuxTempl<true> ADKineticEnergyAux;

Generated by: LCOV version 1.14