https://mooseframework.inl.gov
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 
12 registerMooseObject("FluidPropertiesApp", SodiumProperties);
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 }
static InputParameters validParams()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
SodiumProperties(const InputParameters &parameters)
registerMooseObject("FluidPropertiesApp", SodiumProperties)
Properties of liquid sodium from ANL/RE-95/2 report "Thermodynamic and Transport Properties of Sodium...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()