LCOV - code coverage report
Current view: top level - src/materials - IdealGasFreeEnergy.C (source / functions) Hit Total Coverage
Test: idaholab/moose phase_field: #31405 (292dce) with base fef103 Lines: 10 11 90.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 "IdealGasFreeEnergy.h"
      11             : 
      12             : registerMooseObject("PhaseFieldApp", IdealGasFreeEnergy);
      13             : 
      14             : InputParameters
      15          47 : IdealGasFreeEnergy::validParams()
      16             : {
      17          47 :   InputParameters params = GasFreeEnergyBase::validParams();
      18          47 :   params.addClassDescription("Free energy of an ideal gas.");
      19          47 :   return params;
      20           0 : }
      21             : 
      22          36 : IdealGasFreeEnergy::IdealGasFreeEnergy(const InputParameters & parameters)
      23          36 :   : GasFreeEnergyBase(parameters)
      24             : {
      25             :   // Definition of the free energy for the expression builder
      26          36 :   EBFunction free_energy;
      27          36 :   free_energy(_c, _T) = -_n * _kB * _T * (log(_nq / _n) + 1.0);
      28             : 
      29             :   // Parse function for automatic differentiation
      30          36 :   functionParse(free_energy);
      31          36 : }

Generated by: LCOV version 1.14