LCOV - code coverage report
Current view: top level - src/materials - GBEvolution.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:38:39 Functions: 6 6 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             : #include "GBEvolution.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", GBEvolution);
      13             : registerMooseObject("PhaseFieldApp", ADGBEvolution);
      14             : 
      15             : template <bool is_ad>
      16             : InputParameters
      17        2515 : GBEvolutionTempl<is_ad>::validParams()
      18             : {
      19        2515 :   InputParameters params = GBEvolutionBaseTempl<is_ad>::validParams();
      20        5030 :   params.addRequiredParam<Real>("GBenergy", "Grain boundary energy in J/m^2");
      21        2515 :   return params;
      22           0 : }
      23             : 
      24             : template <bool is_ad>
      25        1956 : GBEvolutionTempl<is_ad>::GBEvolutionTempl(const InputParameters & parameters)
      26        3912 :   : GBEvolutionBaseTempl<is_ad>(parameters), _GBEnergy(this->template getParam<Real>("GBenergy"))
      27             : {
      28        1956 : }
      29             : 
      30             : template <bool is_ad>
      31             : void
      32   100691648 : GBEvolutionTempl<is_ad>::computeQpProperties()
      33             : {
      34             :   // eV/nm^2
      35   100691648 :   this->_sigma[this->_qp] = _GBEnergy * this->_JtoeV * (this->_length_scale * this->_length_scale);
      36             : 
      37   100691648 :   GBEvolutionBaseTempl<is_ad>::computeQpProperties();
      38   100691648 : }
      39             : 
      40             : template class GBEvolutionTempl<false>;
      41             : template class GBEvolutionTempl<true>;

Generated by: LCOV version 1.14