LCOV - code coverage report
Current view: top level - src/solidproperties - ThermalSolidProperties.C (source / functions) Hit Total Coverage
Test: idaholab/moose solid_properties: #31405 (292dce) with base fef103 Lines: 14 15 93.3 %
Date: 2025-09-04 07:57:33 Functions: 4 4 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 "ThermalSolidProperties.h"
      11             : 
      12             : InputParameters
      13         408 : ThermalSolidProperties::validParams()
      14             : {
      15         408 :   InputParameters params = SolidProperties::validParams();
      16             : 
      17             :   // There does not seem to be a conventional reference temperature, so STP was chosen.
      18         816 :   params.addParam<Real>(
      19             :       "T_zero_e",
      20         816 :       273.15,
      21             :       "Temperature at which the specific internal energy is assumed to be zero [K].");
      22             : 
      23         408 :   return params;
      24           0 : }
      25             : 
      26         215 : ThermalSolidProperties::ThermalSolidProperties(const InputParameters & parameters)
      27         430 :   : SolidProperties(parameters), _T_zero_e(getParam<Real>("T_zero_e"))
      28             : {
      29         215 : }
      30             : 
      31             : Real
      32          78 : ThermalSolidProperties::e_from_T(const Real & T) const
      33             : {
      34          78 :   return cp_integral(T) - cp_integral(_T_zero_e);
      35             : }
      36             : 
      37             : void
      38          42 : ThermalSolidProperties::e_from_T(const Real & T, Real & e, Real & de_dT) const
      39             : {
      40          42 :   e = e_from_T(T);
      41          42 :   de_dT = cp_from_T(T);
      42          42 : }

Generated by: LCOV version 1.14