LCOV - code coverage report
Current view: top level - src/materials - PFMobility.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 0 19 0.0 %
Date: 2025-09-04 07:55:36 Functions: 0 3 0.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 "PFMobility.h"
      11             : 
      12             : #include "libmesh/quadrature.h"
      13             : 
      14             : InputParameters
      15           0 : PFMobility::validParams()
      16             : {
      17           0 :   InputParameters params = Material::validParams();
      18           0 :   params.addRequiredParam<Real>("mob", "The mobility value");
      19           0 :   params.addParam<Real>("kappa", 1.0, "The kappa parameter for the vacancy concentration");
      20           0 :   return params;
      21           0 : }
      22             : 
      23           0 : PFMobility::PFMobility(const InputParameters & parameters)
      24             :   : Material(parameters),
      25           0 :     _M(declareProperty<Real>("M")),
      26           0 :     _grad_M(declareProperty<RealGradient>("grad_M")),
      27           0 :     _kappa_c(declareProperty<Real>("kappa_c")),
      28           0 :     _mob(getParam<Real>("mob")),
      29           0 :     _kappa(getParam<Real>("kappa"))
      30             : {
      31           0 : }
      32             : 
      33             : void
      34           0 : PFMobility::computeProperties()
      35             : {
      36           0 :   for (unsigned int qp = 0; qp < _qrule->n_points(); ++qp)
      37             :   {
      38           0 :     _M[qp] = _mob;
      39           0 :     _grad_M[qp] = 0.0;
      40           0 :     _kappa_c[qp] = _kappa;
      41             :   }
      42           0 : }

Generated by: LCOV version 1.14