https://mooseframework.inl.gov
SodiumPropertiesMaterial.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 
12 registerMooseObject("FluidPropertiesApp", SodiumPropertiesMaterial);
13 
16 {
18  params.addClassDescription(
19  "Material properties for liquid sodium sampled from SodiumProperties.");
20  params.addRequiredCoupledVar("temperature", "temperature (K)");
21  params.addParam<UserObjectName>(
22  "fp", "sodium", "The name of the user object with fluid properties");
23  return params;
24 }
25 
27  : Material(parameters),
28  _temperature(coupledValue("temperature")),
29  _k(declareProperty<Real>("k")),
30  _h(declareProperty<Real>("h")),
31  _cp(declareProperty<Real>("cp")),
32  _T_from_h(declareProperty<Real>("T_from_h")),
33  _rho(declareProperty<Real>("rho")),
34  _drho_dT(declareProperty<Real>("drho_dT")),
35  _drho_dh(declareProperty<Real>("drho_dh")),
36 
37  _sodium(getUserObject<SodiumProperties>("fp"))
38 {
39 }
40 
41 void
43 {
51 }
T h(T temperature) const
Enthalpy of liquid Na (relative to solid Na at STP) in J/kg as a function of temperature From page 4...
const SodiumProperties & _sodium
MaterialProperty< Real > & _T_from_h
Temperature from enthalpy.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
SodiumPropertiesMaterial(const InputParameters &parameters)
T heatCapacity(T temperature) const
Heat capacity of liquid Na in J/kg-K as a function of temperature.
MaterialProperty< Real > & _cp
Heat capacity.
static InputParameters validParams()
MaterialProperty< Real > & _h
Enthalpy.
unsigned int _qp
MaterialProperty< Real > & _drho_dh
Derivative of density with respect to enthalpy.
static InputParameters validParams()
T temperature(T enthalpy) const
Inverse solve for temperature from enthalpy.
MaterialProperty< Real > & _k
Thermal conductivity.
T k(T temperature) const
Thermal conductivity as a function of temperature.
const VariableValue & _temperature
Coupled temperature variable.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
virtual void computeQpProperties() override
Properties of liquid sodium from ANL/RE-95/2 report "Thermodynamic and Transport Properties of Sodium...
T drho_dh(T enthalpy) const
Derivative of density w.r.t enthalpy.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _rho
Density.
void addClassDescription(const std::string &doc_string)
MaterialProperty< Real > & _drho_dT
Derivative of density with respect to temperature.
T drho_dT(T temperature) const
Derivative of density w.r.t temperature.
registerMooseObject("FluidPropertiesApp", SodiumPropertiesMaterial)
T rho(T temperature) const
Density as a function of temperature.