LCOV - code coverage report
Current view: top level - src/kernels - VectorSecondTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose electromagnetics: #32971 (54bef8) with base c6cf66 Lines: 14 15 93.3 %
Date: 2026-05-29 20:36:10 Functions: 4 4 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 "VectorSecondTimeDerivative.h"
      11             : #include "Function.h"
      12             : 
      13             : registerMooseObject("ElectromagneticsApp", VectorSecondTimeDerivative);
      14             : 
      15             : InputParameters
      16          38 : VectorSecondTimeDerivative::validParams()
      17             : {
      18          38 :   InputParameters params = VectorTimeKernel::validParams();
      19          38 :   params.addClassDescription("The second time derivative operator for vector variables.");
      20          76 :   params.addParam<FunctionName>("coefficient", 1.0, "Coefficient function.");
      21          38 :   return params;
      22           0 : }
      23             : 
      24          20 : VectorSecondTimeDerivative::VectorSecondTimeDerivative(const InputParameters & parameters)
      25             :   : VectorTimeKernel(parameters),
      26          40 :     _u_dot_dot(dotDot()),
      27          20 :     _du_dot_dot_du(dotDotDu()),
      28          40 :     _coeff(getFunction("coefficient"))
      29             : {
      30          20 : }
      31             : 
      32             : Real
      33     2796240 : VectorSecondTimeDerivative::computeQpResidual()
      34             : {
      35     2796240 :   return _test[_i][_qp] * _coeff.value(_t, _q_point[_qp]) * _u_dot_dot[_qp];
      36             : }
      37             : 
      38             : Real
      39     4194360 : VectorSecondTimeDerivative::computeQpJacobian()
      40             : {
      41     4194360 :   return _test[_i][_qp] * _coeff.value(_t, _q_point[_qp]) * _phi[_j][_qp] * _du_dot_dot_du[_qp];
      42             : }

Generated by: LCOV version 1.14