LCOV - code coverage report
Current view: top level - src/materials - ADWallFrictionFunctionMaterial.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #32971 (54bef8) with base c6cf66 Lines: 14 15 93.3 %
Date: 2026-05-29 20:41:18 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://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 "ADWallFrictionFunctionMaterial.h"
      11             : #include "Function.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", ADWallFrictionFunctionMaterial);
      14             : 
      15             : InputParameters
      16        8546 : ADWallFrictionFunctionMaterial::validParams()
      17             : {
      18        8546 :   InputParameters params = Material::validParams();
      19        8546 :   params.addClassDescription("Defines a Darcy friction factor equal to the value of the function "
      20             :                              "at the local coordinates and time");
      21             : 
      22       17092 :   params.addRequiredParam<MaterialPropertyName>("f_D", "Darcy friction factor material property");
      23             : 
      24       17092 :   params.addRequiredParam<FunctionName>("function", "Darcy friction factor function");
      25             : 
      26        8546 :   return params;
      27           0 : }
      28             : 
      29        6615 : ADWallFrictionFunctionMaterial::ADWallFrictionFunctionMaterial(const InputParameters & parameters)
      30             :   : Material(parameters),
      31             : 
      32        6615 :     _function(getFunction("function")),
      33             : 
      34        6615 :     _f_D_name(getParam<MaterialPropertyName>("f_D")),
      35       13230 :     _f_D(declareADProperty<Real>(_f_D_name))
      36             : {
      37        6615 : }
      38             : 
      39             : void
      40    14798010 : ADWallFrictionFunctionMaterial::computeQpProperties()
      41             : {
      42    14798010 :   _f_D[_qp] = _function.value(_t, _q_point[_qp]);
      43    14798010 : }

Generated by: LCOV version 1.14