LCOV - code coverage report
Current view: top level - src/kernels - ADPhaseFieldTimeDerivativeSUPG.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #32971 (54bef8) with base c6cf66 Lines: 12 13 92.3 %
Date: 2026-05-29 20:38:39 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //* This file is part of the MOOSE framework
       2             : //* https://www.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 "ADPhaseFieldTimeDerivativeSUPG.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADPhaseFieldTimeDerivativeSUPG);
      13             : 
      14             : InputParameters
      15         387 : ADPhaseFieldTimeDerivativeSUPG::validParams()
      16             : {
      17         387 :   InputParameters params = ADTimeKernelGrad::validParams();
      18         387 :   params.addClassDescription(
      19             :       "SUPG stablization terms for the time derivative of the level set equation.");
      20         774 :   params.addRequiredCoupledVar("velocity", "Velocity vector variable.");
      21         387 :   return params;
      22           0 : }
      23             : 
      24         208 : ADPhaseFieldTimeDerivativeSUPG::ADPhaseFieldTimeDerivativeSUPG(const InputParameters & parameters)
      25         208 :   : ADTimeKernelGrad(parameters), _velocity(adCoupledVectorValue("velocity"))
      26             : {
      27         208 : }
      28             : 
      29             : ADRealVectorValue
      30    23839526 : ADPhaseFieldTimeDerivativeSUPG::precomputeQpResidual()
      31             : {
      32             :   ADReal tau =
      33    47679052 :       _current_elem->hmin() /
      34    47679052 :       (2 * (_velocity[_qp] + RealVectorValue(libMesh::TOLERANCE * libMesh::TOLERANCE)).norm());
      35    47679052 :   return tau * _velocity[_qp] * _u_dot[_qp];
      36             : }

Generated by: LCOV version 1.14