https://mooseframework.inl.gov
Loading...
Searching...
No Matches
SodiumProperties.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
10#include "SodiumProperties.h"
11
13
16{
18 params.addClassDescription("Fluid properties for sodium");
19 params.set<std::string>("fp_type") = "sodium-specific-fp";
20 params.addParam<Real>(
21 "thermal_conductivity",
22 "Optional value for thermal conductivity that overrides interal calculations");
23 params.addParam<Real>("specific_heat",
24 "Optional value for specific heat that overrides interal calculations");
25 return params;
26}
27
29 : FluidProperties(parameters),
30 _k(isParamValid("thermal_conductivity") ? getParam<Real>("thermal_conductivity") : 0.0),
31 _cp(isParamValid("specific_heat") ? getParam<Real>("specific_heat") : 0.0)
32{
33}
registerMooseObject("FluidPropertiesApp", SodiumProperties)
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
Properties of liquid sodium from ANL/RE-95/2 report "Thermodynamic and Transport Properties of Sodium...
SodiumProperties(const InputParameters &parameters)
static InputParameters validParams()