https://mooseframework.inl.gov
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 {
18 public:
20  : MooseObjectUnitTest("FluidPropertiesApp"), _T_triple(300.0), _L_fusion(0.5)
21  {
22  buildObjects();
23  }
24 
25 protected:
26  void buildObjects()
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);
32  _fp = &_fe_problem->getUserObject<StiffenedGasTwoPhaseFluidProperties>("fp");
35  }
36 
40 
41  const Real _T_triple;
42  const Real _L_fusion;
43 };
std::shared_ptr< FEProblem > _fe_problem
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.
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const StiffenedGasTwoPhaseFluidProperties * _fp
Two-phase stiffened gas fluid properties.
Stiffened gas fluid properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real