https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
35Real
37{
38 return 25;
39}
40
41Real
43{
44 return 2 * p;
45}
46
47Real
49{
50 return 3 * T;
51}
52
53Real
55{
56 return 2;
57}
58
59Real
61{
62 return 5 * T;
63}
64
65Real
67{
68 return 5;
69}
70
71bool
const Real p
const double T
registerMooseObject("FluidPropertiesTestApp", TestTwoPhaseFluidProperties)
void addClassDescription(const std::string &doc_string)
void makeParamRequired(const std::string &name)
Test 2-phase fluid properties.
virtual Real p_critical() const override
Returns the critical pressure.
virtual Real dsigma_dT_from_T(Real T) const override
Computes dsigma/dT along the saturation line.
TestTwoPhaseFluidProperties(const InputParameters &parameters)
virtual bool supportsPhaseChange() const override
Returns true if phase change is supported, otherwise false.
virtual Real dT_sat_dp(Real p) const override
Computes dT/dp along the saturation line.
virtual Real sigma_from_T(Real T) const override
Computes surface tension sigma of saturated liquid in contact with saturated vapor.
virtual Real p_sat(Real T) const override
Computes the saturation pressure at a temperature.
virtual Real T_sat(Real p) const override
Computes the saturation temperature at a pressure.
Base class for fluid properties used with two-phase flow.
static InputParameters validParams()
const SinglePhaseFluidProperties * _fp_liquid
The user object that provides liquid phase fluid properties.
const SinglePhaseFluidProperties * _fp_vapor
The user object that provides vapor phase fluid properties.