LCOV - code coverage report
Current view: top level - src/kernels - VectorSecondTimeDerivative.C (source / functions) Hit Total Coverage
Test: idaholab/moose electromagnetics: #31405 (292dce) with base fef103 Lines: 14 15 93.3 %
Date: 2025-09-04 07:52:56 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          82 : VectorSecondTimeDerivative::validParams()
      17             : {
      18          82 :   InputParameters params = VectorTimeKernel::validParams();
      19          82 :   params.addClassDescription("The second time derivative operator for vector variables.");
      20         164 :   params.addParam<FunctionName>("coefficient", 1.0, "Coefficient function.");
      21          82 :   return params;
      22           0 : }
      23             : 
      24          44 : VectorSecondTimeDerivative::VectorSecondTimeDerivative(const InputParameters & parameters)
      25             :   : VectorTimeKernel(parameters),
      26          88 :     _u_dot_dot(dotDot()),
      27          44 :     _du_dot_dot_du(dotDotDu()),
      28          88 :     _coeff(getFunction("coefficient"))
      29             : {
      30          44 : }
      31             : 
      32             : Real
      33     4171440 : VectorSecondTimeDerivative::computeQpResidual()
      34             : {
      35     4171440 :   return _test[_i][_qp] * _coeff.value(_t, _q_point[_qp]) * _u_dot_dot[_qp];
      36             : }
      37             : 
      38             : Real
      39     6257160 : VectorSecondTimeDerivative::computeQpJacobian()
      40             : {
      41     6257160 :   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