https://mooseframework.inl.gov
IdealGasFluidPropertiesTest.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:
18  IdealGasFluidPropertiesTest() : MooseObjectUnitTest("FluidPropertiesApp"), _molar_mass(0.028966206103678928) { buildObjects(); }
19 
20 protected:
21  void buildObjects()
22  {
23  InputParameters uo_pars = _factory.getValidParams("IdealGasFluidProperties");
24  uo_pars.set<Real>("molar_mass") = _molar_mass;
25  uo_pars.set<Real>("gamma") = 1.41;
26  uo_pars.set<Real>("e_ref") = 1000.0;
27  _fe_problem->addUserObject("IdealGasFluidProperties", "fp", uo_pars);
28  _fp = &_fe_problem->getUserObject<IdealGasFluidProperties>("fp");
29  }
30 
32 
34 };
std::shared_ptr< FEProblem > _fe_problem
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const IdealGasFluidProperties * _fp
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature...