https://mooseframework.inl.gov
TestTwoPhaseFluidProperties.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 
12 
13 registerMooseObject("FluidPropertiesTestApp", TestTwoPhaseFluidProperties);
14 
17 {
19 
20  params.addClassDescription("Test 2-phase fluid properties");
21 
22  params.makeParamRequired<UserObjectName>("fp_liquid");
23  params.makeParamRequired<UserObjectName>("fp_vapor");
24 
25  return params;
26 }
27 
29  : TwoPhaseFluidProperties(parameters)
30 {
31  _fp_liquid = &getUserObject<SinglePhaseFluidProperties>("fp_liquid");
32  _fp_vapor = &getUserObject<SinglePhaseFluidProperties>("fp_vapor");
33 }
34 
35 Real
37 {
38  return 25;
39 }
40 
41 Real
43 {
44  return 2 * p;
45 }
46 
47 Real
49 {
50  return 3 * T;
51 }
52 
53 Real TestTwoPhaseFluidProperties::dT_sat_dp(Real /*p*/) const { return 2; }
54 
55 Real
57 {
58  return 5 * T;
59 }
60 
61 Real TestTwoPhaseFluidProperties::dsigma_dT_from_T(Real /*T*/) const { return 5; }
62 
63 bool
65 {
66  return true;
67 }
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
registerMooseObject("FluidPropertiesTestApp", TestTwoPhaseFluidProperties)
virtual Real p_critical() const override
Returns the critical pressure.
TestTwoPhaseFluidProperties(const InputParameters &parameters)
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.
Base class for fluid properties used with two-phase flow.
Test 2-phase fluid properties.
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
static InputParameters validParams()
virtual Real dsigma_dT_from_T(Real T) const override
Computes dsigma/dT along the saturation line.
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void makeParamRequired(const std::string &name)
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
void addClassDescription(const std::string &doc_string)
virtual bool supportsPhaseChange() const override
Returns true if phase change is supported, otherwise false.
virtual Real sigma_from_T(Real T) const override
Computes surface tension sigma of saturated liquid in contact with saturated vapor.