LCOV - code coverage report
Current view: top level - src/kernels - ADPhaseFieldAdvection.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31761 (b7bd6c) with base 2acb41 Lines: 10 11 90.9 %
Date: 2025-10-28 02:30:14 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 "ADPhaseFieldAdvection.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", ADPhaseFieldAdvection);
      13             : 
      14             : InputParameters
      15         253 : ADPhaseFieldAdvection::validParams()
      16             : {
      17         253 :   InputParameters params = ADKernelValue::validParams();
      18         253 :   params.addClassDescription("Implements the phasefield advection equation: $\\vec{v}\\cdot\\nabla "
      19             :                              "u = 0$, where the weak form is $(\\psi_i, \\vec{v}\\cdot\\nabla u) = "
      20             :                              "0$.");
      21         506 :   params.addRequiredCoupledVar("velocity", "Velocity vector variable.");
      22         253 :   return params;
      23           0 : }
      24             : 
      25         132 : ADPhaseFieldAdvection::ADPhaseFieldAdvection(const InputParameters & parameters)
      26         132 :   : ADKernelValue(parameters), _velocity(adCoupledVectorValue("velocity"))
      27             : {
      28         132 : }
      29             : 
      30             : ADReal
      31    12675392 : ADPhaseFieldAdvection::precomputeQpResidual()
      32             : {
      33    12675392 :   return _velocity[_qp] * _grad_u[_qp];
      34             : }

Generated by: LCOV version 1.14