https://mooseframework.inl.gov
fluid_properties
unit
include
MethaneFluidPropertiesTest.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
"
13
#include "
MethaneFluidProperties.h
"
14
15
class
MethaneFluidPropertiesTest
:
public
MooseObjectUnitTest
16
{
17
public
:
18
MethaneFluidPropertiesTest
() :
MooseObjectUnitTest
(
"FluidPropertiesApp"
) {
buildObjects
(); }
19
20
protected
:
21
void
buildObjects
()
22
{
23
InputParameters
uo_pars =
_factory
.
getValidParams
(
"MethaneFluidProperties"
);
24
_fe_problem
->addUserObject(
"MethaneFluidProperties"
,
"fp"
, uo_pars);
25
_fp
= &
_fe_problem
->getUserObject<
MethaneFluidProperties
>(
"fp"
);
26
}
27
28
const
MethaneFluidProperties
*
_fp
;
29
};
MooseObjectUnitTest::_fe_problem
std::shared_ptr< FEProblem > _fe_problem
MethaneFluidPropertiesTest::buildObjects
void buildObjects()
Definition:
MethaneFluidPropertiesTest.h:21
MooseObjectUnitTest::_factory
Factory & _factory
MethaneFluidPropertiesTest::_fp
const MethaneFluidProperties * _fp
Definition:
MethaneFluidPropertiesTest.h:28
Factory::getValidParams
InputParameters getValidParams(const std::string &name) const
InputParameters
MooseObjectUnitTest
MethaneFluidProperties
Methane (CH4) fluid properties as a function of pressure (Pa) and temperature (K).
Definition:
MethaneFluidProperties.h:32
MethaneFluidPropertiesTest
Definition:
MethaneFluidPropertiesTest.h:15
MethaneFluidPropertiesTest::MethaneFluidPropertiesTest
MethaneFluidPropertiesTest()
Definition:
MethaneFluidPropertiesTest.h:18
MethaneFluidProperties.h
MooseObjectUnitTest.h
Generated on Fri Jul 18 2025 13:42:52 for https://mooseframework.inl.gov by
1.8.14