LCOV - code coverage report
Current view: top level - src/materials - DarcyMaterial.C (source / functions) Hit Total Coverage
Test: idaholab/moose richards: #31405 (292dce) with base fef103 Lines: 12 13 92.3 %
Date: 2025-09-04 07:56:35 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 "DarcyMaterial.h"
      11             : 
      12             : registerMooseObject("RichardsApp", DarcyMaterial);
      13             : 
      14             : InputParameters
      15          20 : DarcyMaterial::validParams()
      16             : {
      17          20 :   InputParameters params = Material::validParams();
      18          40 :   params.addRequiredParam<RealTensorValue>("mat_permeability",
      19             :                                            "The permeability tensor (usually in m^2).");
      20          20 :   params.addClassDescription("Material that holds the permeability tensor used in Darcy flow");
      21          20 :   return params;
      22           0 : }
      23             : 
      24          15 : DarcyMaterial::DarcyMaterial(const InputParameters & parameters)
      25             :   : Material(parameters),
      26          15 :     _material_perm(getParam<RealTensorValue>("mat_permeability")),
      27          30 :     _permeability(declareProperty<RealTensorValue>("permeability"))
      28             : {
      29          15 : }
      30             : 
      31             : void
      32        3488 : DarcyMaterial::computeQpProperties()
      33             : {
      34        3488 :   _permeability[_qp] = _material_perm;
      35        3488 : }

Generated by: LCOV version 1.14