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