https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ThermalSolidProperties.C
Go to the documentation of this file.
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
11
14{
16
17 // There does not seem to be a conventional reference temperature, so STP was chosen.
18 params.addParam<Real>(
19 "T_zero_e",
20 273.15,
21 "Temperature at which the specific internal energy is assumed to be zero [K].");
22
23 return params;
24}
25
27 : SolidProperties(parameters), _T_zero_e(getParam<Real>("T_zero_e"))
28{
29}
30
31Real
33{
34 return cp_integral(T) - cp_integral(_T_zero_e);
35}
36
37void
38ThermalSolidProperties::e_from_T(const Real & T, Real & e, Real & de_dT) const
39{
40 e = e_from_T(T);
41 de_dT = cp_from_T(T);
42}
const double T
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
static InputParameters validParams()
Real e_from_T(const Real &T) const
ThermalSolidProperties(const InputParameters &parameters)