https://mooseframework.inl.gov
Loading...
Searching...
No Matches
StiffenedGasTwoPhaseFluidPropertiesTest.h
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
10#pragma once
11
12#include "MooseObjectUnitTest.h"
15
17{
18public:
20 : MooseObjectUnitTest("FluidPropertiesApp"), _T_triple(300.0), _L_fusion(0.5)
21 {
23 }
24
25protected:
27 {
28 InputParameters uo_pars = _factory.getValidParams("StiffenedGasTwoPhaseFluidProperties");
29 uo_pars.set<Real>("T_triple") = _T_triple;
30 uo_pars.set<Real>("L_fusion") = _L_fusion;
31 _fe_problem->addUserObject("StiffenedGasTwoPhaseFluidProperties", "fp", uo_pars);
35 }
36
40
41 const Real _T_triple;
42 const Real _L_fusion;
43};
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
Stiffened gas fluid properties.
Two-phase stiffened gas fluid properties.
virtual const UserObjectName & getLiquidName() const
Returns the name of the liquid single-phase fluid properties object.
virtual const UserObjectName & getVaporName() const
Returns the name of the vapor single-phase fluid properties object.
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const