LCOV - code coverage report
Current view: top level - src/auxkernels - TotalFreeEnergyBase.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 13 14 92.9 %
Date: 2025-09-04 07:55:36 Functions: 2 2 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 "TotalFreeEnergyBase.h"
      11             : 
      12             : InputParameters
      13         618 : TotalFreeEnergyBase::validParams()
      14             : {
      15         618 :   InputParameters params = AuxKernel::validParams();
      16        1236 :   params.addCoupledVar("interfacial_vars", "Variable names that contribute to interfacial energy");
      17        1236 :   params.addCoupledVar(
      18             :       "additional_free_energy",
      19             :       0.0,
      20             :       "Coupled variable holding additional free energy contributions to be summed up");
      21         618 :   return params;
      22           0 : }
      23             : 
      24         324 : TotalFreeEnergyBase::TotalFreeEnergyBase(const InputParameters & parameters)
      25             :   : AuxKernel(parameters),
      26         324 :     _nvars(coupledComponents("interfacial_vars")),
      27         324 :     _vars(coupledValues("interfacial_vars")),
      28         324 :     _grad_vars(coupledGradients("interfacial_vars")),
      29         972 :     _kappa_names(getParam<std::vector<MaterialPropertyName>>("kappa_names")),
      30         324 :     _nkappas(_kappa_names.size()),
      31         648 :     _additional_free_energy(coupledValue("additional_free_energy"))
      32             : {
      33         324 : }

Generated by: LCOV version 1.14