LCOV - code coverage report
Current view: top level - src/materials - LevelSetDeltaFunction.C (source / functions) Hit Total Coverage
Test: idaholab/malamute: 0e4c8a Lines: 13 14 92.9 %
Date: 2025-08-02 07:01:39 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************************/
       2             : /*                        DO NOT MODIFY THIS HEADER                         */
       3             : /*                                                                          */
       4             : /* MALAMUTE: MOOSE Application Library for Advanced Manufacturing UTilitiEs */
       5             : /*                                                                          */
       6             : /*           Copyright 2021 - 2024, Battelle Energy Alliance, LLC           */
       7             : /*                           ALL RIGHTS RESERVED                            */
       8             : /****************************************************************************/
       9             : 
      10             : #include "LevelSetDeltaFunction.h"
      11             : 
      12             : registerMooseObject("MalamuteApp", LevelSetDeltaFunction);
      13             : 
      14             : InputParameters
      15          28 : LevelSetDeltaFunction::validParams()
      16             : {
      17          28 :   InputParameters params = ADMaterial::validParams();
      18          28 :   params.addClassDescription("Computes delta function given by a level set.");
      19          56 :   params.addRequiredCoupledVar("level_set_gradient",
      20             :                                "Regularized gradient of the level set variable");
      21          28 :   return params;
      22           0 : }
      23             : 
      24          21 : LevelSetDeltaFunction::LevelSetDeltaFunction(const InputParameters & parameters)
      25             :   : ADMaterial(parameters),
      26          21 :     _grad_c(adCoupledVectorValue("level_set_gradient")),
      27          42 :     _delta_function(declareADProperty<Real>("delta_function"))
      28             : {
      29          21 : }
      30             : 
      31             : void
      32      727600 : LevelSetDeltaFunction::computeQpProperties()
      33             : {
      34      727600 :   _delta_function[_qp] =
      35      727600 :       (_grad_c[_qp] + RealVectorValue(libMesh::TOLERANCE * libMesh::TOLERANCE)).norm();
      36      727600 : }

Generated by: LCOV version 1.14