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 "ThermalSS316Properties.h" 11 : #include "libmesh/utility.h" 12 : 13 : registerMooseObject("SolidPropertiesApp", ThermalSS316Properties); 14 : 15 : InputParameters 16 126 : ThermalSS316Properties::validParams() 17 : { 18 126 : InputParameters params = ThermalSolidProperties::validParams(); 19 126 : params.addClassDescription("Stainless steel 316 thermal properties."); 20 126 : return params; 21 0 : } 22 : 23 67 : ThermalSS316Properties::ThermalSS316Properties(const InputParameters & parameters) 24 67 : : ThermalSolidProperties(parameters), _c1(0.1816), _c2(428.46) 25 : { 26 67 : } 27 : 28 : Real 29 70574 : ThermalSS316Properties::cp_from_T(const Real & T) const 30 : { 31 70574 : return _c1 * T + _c2; 32 : } 33 : 34 : void 35 70032 : ThermalSS316Properties::cp_from_T(const Real & T, Real & cp, Real & dcp_dT) const 36 : { 37 70032 : cp = cp_from_T(T); 38 70032 : dcp_dT = _c1; 39 70032 : } 40 : 41 : Real 42 62 : ThermalSS316Properties::cp_integral(const Real & T) const 43 : { 44 62 : return 0.5 * _c1 * T * T + _c2 * T; 45 : } 46 : 47 : Real 48 70548 : ThermalSS316Properties::k_from_T(const Real & T) const 49 : { 50 70548 : return -7.301e-6 * Utility::pow<2>(T) + 0.02716 * T + 6.308; 51 : } 52 : 53 : void 54 70032 : ThermalSS316Properties::k_from_T(const Real & T, Real & k, Real & dk_dT) const 55 : { 56 70032 : k = k_from_T(T); 57 70032 : dk_dT = -1.4602e-5 * T + 0.02716; 58 70032 : } 59 : 60 : Real 61 70572 : ThermalSS316Properties::rho_from_T(const Real & T) const 62 : { 63 70572 : return -4.454e-5 * Utility::pow<2>(T) - 0.4297 * T + 8089.4; 64 : } 65 : 66 : void 67 70044 : ThermalSS316Properties::rho_from_T(const Real & T, Real & rho, Real & drho_dT) const 68 : { 69 70044 : rho = rho_from_T(T); 70 70044 : drho_dT = -8.908e-5 * T - 0.4297; 71 70044 : }