https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TestTVFluidProperties.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
20
21// The coefficients are arbitrary; they only need to give dh/dv and dp/dv of comparable
22// magnitude to the temperature terms for v ~ 1 m^3/kg
24 : SinglePhaseFluidProperties(parameters), _a(400.0), _b(2.0e4), _c(1500.0), _d(3.0e5)
25{
26}
27
28Real
30{
31 return _a * T / v + _b / (v * v);
32}
33
34void
35TestTVFluidProperties::p_from_T_v(Real T, Real v, Real & p, Real & dp_dT, Real & dp_dv) const
36{
37 p = p_from_T_v(T, v);
38 dp_dT = _a / v;
39 dp_dv = -_a * T / (v * v) - 2.0 * _b / (v * v * v);
40}
41
42Real
44{
45 return _c * T + _d / v;
46}
47
48void
49TestTVFluidProperties::h_from_T_v(Real T, Real v, Real & h, Real & dh_dT, Real & dh_dv) const
50{
51 h = h_from_T_v(T, v);
52 dh_dT = _c;
53 dh_dv = -_d / (v * v);
54}
55
56Real
58{
59 return h_from_T_v(T, v) - p_from_T_v(T, v) * v;
60}
61
62Real
63TestTVFluidProperties::mu_from_v_e(Real /*v*/, Real e) const
64{
65 return 1e-5 + 1e-11 * e;
66}
67
68Real
69TestTVFluidProperties::k_from_v_e(Real /*v*/, Real e) const
70{
71 return 0.02 + 1e-8 * e;
72}
const Real p
const double T
const double v
registerMooseObject("FluidPropertiesApp", TestTVFluidProperties)
Common class for single phase fluid properties.
static InputParameters validParams()
e e e e s T T T T T rho v v T e h
Analytic fluid defined in terms of (T, v) whose enthalpy depends on the specific volume,...
static InputParameters validParams()
virtual Real mu_from_v_e(Real v, Real e) const override
TestTVFluidProperties(const InputParameters &parameters)
virtual Real h_from_T_v(Real T, Real v) const override
virtual Real p_from_T_v(Real T, Real v) const override
virtual Real e_from_T_v(Real T, Real v) const override
virtual Real k_from_v_e(Real v, Real e) const override