https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
17public:
19 : MooseObjectUnitTest("FluidPropertiesApp"), _molar_mass(0.028966206103678928)
20 {
22 }
23
24protected:
26 {
27 InputParameters uo_pars = _factory.getValidParams("IdealGasFluidProperties");
28 uo_pars.set<Real>("molar_mass") = _molar_mass;
29 uo_pars.set<Real>("gamma") = 1.41;
30 uo_pars.set<Real>("e_ref") = 1000.0;
31 _fe_problem->addUserObject("IdealGasFluidProperties", "fp", uo_pars);
33 }
34
36
37 const Real _molar_mass;
38};
InputParameters getValidParams(const std::string &name) const
const IdealGasFluidProperties * _fp
Ideal gas fluid properties Default parameters are for air at atmospheric pressure and temperature.
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const