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 "SodiumProperties.h" 11 : 12 : registerMooseObject("FluidPropertiesApp", SodiumProperties); 13 : 14 : InputParameters 15 89 : SodiumProperties::validParams() 16 : { 17 89 : InputParameters params = FluidProperties::validParams(); 18 89 : params.addClassDescription("Fluid properties for sodium"); 19 89 : params.set<std::string>("fp_type") = "sodium-specific-fp"; 20 178 : params.addParam<Real>( 21 : "thermal_conductivity", 22 : "Optional value for thermal conductivity that overrides interal calculations"); 23 178 : params.addParam<Real>("specific_heat", 24 : "Optional value for specific heat that overrides interal calculations"); 25 89 : return params; 26 0 : } 27 : 28 48 : SodiumProperties::SodiumProperties(const InputParameters & parameters) 29 : : FluidProperties(parameters), 30 92 : _k(isParamValid("thermal_conductivity") ? getParam<Real>("thermal_conductivity") : 0.0), 31 188 : _cp(isParamValid("specific_heat") ? getParam<Real>("specific_heat") : 0.0) 32 : { 33 48 : }