LCOV - code coverage report
Current view: top level - src/materials - LevelSetHeavisideFunction.C (source / functions) Hit Total Coverage
Test: idaholab/malamute: 0e4c8a Lines: 12 13 92.3 %
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 "LevelSetHeavisideFunction.h"
      11             : 
      12             : registerMooseObject("MalamuteApp", LevelSetHeavisideFunction);
      13             : 
      14             : InputParameters
      15          20 : LevelSetHeavisideFunction::validParams()
      16             : {
      17          20 :   InputParameters params = ADMaterial::validParams();
      18          20 :   params.addClassDescription("Computes Heaviside function given by a level set.");
      19          40 :   params.addRequiredCoupledVar("level_set", "Level set variable");
      20          20 :   return params;
      21           0 : }
      22             : 
      23          15 : LevelSetHeavisideFunction::LevelSetHeavisideFunction(const InputParameters & parameters)
      24             :   : ADMaterial(parameters),
      25          15 :     _c(adCoupledValue("level_set")),
      26          30 :     _heaviside_function(declareADProperty<Real>("heaviside_function"))
      27             : {
      28          15 : }
      29             : 
      30             : void
      31      490800 : LevelSetHeavisideFunction::computeQpProperties()
      32             : {
      33      490800 :   _heaviside_function[_qp] = _c[_qp];
      34      490800 : }

Generated by: LCOV version 1.14