https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13
16{
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
41void
registerMooseObject("FluidPropertiesApp", SodiumPropertiesMaterial)
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
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)
unsigned int _qp
static InputParameters validParams()
MaterialProperty< Real > & _drho_dh
Derivative of density with respect to enthalpy.
const VariableValue & _temperature
Coupled temperature variable.
MaterialProperty< Real > & _drho_dT
Derivative of density with respect to temperature.
static InputParameters validParams()
SodiumPropertiesMaterial(const InputParameters &parameters)
const SodiumProperties & _sodium
virtual void computeQpProperties() override
MaterialProperty< Real > & _h
Enthalpy.
MaterialProperty< Real > & _T_from_h
Temperature from enthalpy.
MaterialProperty< Real > & _k
Thermal conductivity.
MaterialProperty< Real > & _cp
Heat capacity.
MaterialProperty< Real > & _rho
Density.
Properties of liquid sodium from ANL/RE-95/2 report "Thermodynamic and Transport Properties of Sodium...
T k(T temperature) const
Thermal conductivity as a function of temperature.
T heatCapacity(T temperature) const
Heat capacity of liquid Na in J/kg-K as a function of temperature.
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.
T temperature(T enthalpy) const
Inverse solve for temperature from enthalpy.
T rho(T temperature) const
Density as a function of temperature.
T drho_dh(T enthalpy) const
Derivative of density w.r.t enthalpy.
T drho_dT(T temperature) const
Derivative of density w.r.t temperature.