https://mooseframework.inl.gov
StiffenedGasFluidPropertiesTest.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"
14 
16 {
17 public:
19 
20 protected:
21  void buildObjects()
22  {
23  InputParameters eos_pars = _factory.getValidParams("StiffenedGasFluidProperties");
24  eos_pars.set<Real>("gamma") = 2.35;
25  eos_pars.set<Real>("q") = -1167e3;
26  eos_pars.set<Real>("q_prime") = 0;
27  eos_pars.set<Real>("p_inf") = 1.e9;
28  eos_pars.set<Real>("cv") = 1816;
29  eos_pars.set<std::string>("_object_name") = "name3";
30  _fe_problem->addUserObject("StiffenedGasFluidProperties", "fp", eos_pars);
31  _fp = &_fe_problem->getUserObject<StiffenedGasFluidProperties>("fp");
32  }
33 
35 };
std::shared_ptr< FEProblem > _fe_problem
const StiffenedGasFluidProperties * _fp
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
Stiffened gas fluid properties.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real