https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NASA7IdealGasFluidPropertiesTest.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
20protected:
22 const NASA7IdealGasFluidProperties & buildFluidProperties(const std::string & species,
23 const std::string & name);
24
27};
28
30 : MooseObjectUnitTest("FluidPropertiesApp"),
31 _fp_h2o(&buildFluidProperties("H2O", "h2o")),
32 _fp_n2(&buildFluidProperties("N2", "n2"))
33{
34}
35
38 const std::string & name)
39{
40 InputParameters params = _factory.getValidParams("NASA7IdealGasFluidProperties");
41 params.set<MooseEnum>("species") = species;
42 _fe_problem->addUserObject("NASA7IdealGasFluidProperties", name, params);
43 return _fe_problem->getUserObject<NASA7IdealGasFluidProperties>(name);
44}
const std::string name
Definition Setup.h:21
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
const NASA7IdealGasFluidProperties * _fp_h2o
const NASA7IdealGasFluidProperties & buildFluidProperties(const std::string &species, const std::string &name)
Builds a fluid properties object for a species.
const NASA7IdealGasFluidProperties * _fp_n2
Ideal gas whose heat capacity, enthalpy, and entropy depend on temperature through NASA 7-coefficient...