https://mooseframework.inl.gov
solid_properties
unit
include
ThermalUCPropertiesTest.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 "
ThermalUCProperties.h
"
14
15
class
ThermalUCPropertiesTest
:
public
MooseObjectUnitTest
16
{
17
public
:
18
ThermalUCPropertiesTest
() :
MooseObjectUnitTest
(
"SolidPropertiesApp"
) {
buildObjects
(); }
19
20
protected
:
21
void
buildObjects
()
22
{
23
InputParameters
uo_pars1 =
_factory
.
getValidParams
(
"ThermalUCProperties"
);
24
_fe_problem
->addUserObject(
"ThermalUCProperties"
,
"sp1"
, uo_pars1);
25
_sp1
= &
_fe_problem
->getUserObject<
ThermalUCProperties
>(
"sp1"
);
26
27
InputParameters
uo_pars2 =
_factory
.
getValidParams
(
"ThermalUCProperties"
);
28
uo_pars2.
set
<
Real
>(
"density"
) = 13000.0;
29
_fe_problem
->addUserObject(
"ThermalUCProperties"
,
"sp2"
, uo_pars2);
30
_sp2
= &
_fe_problem
->getUserObject<
ThermalUCProperties
>(
"sp2"
);
31
}
32
33
const
ThermalUCProperties
*
_sp1
;
34
35
// model using a non-default density
36
const
ThermalUCProperties
*
_sp2
;
37
};
ThermalUCProperties
Definition:
ThermalUCProperties.h:14
MooseObjectUnitTest::_fe_problem
std::shared_ptr< FEProblem > _fe_problem
MooseObjectUnitTest::_factory
Factory & _factory
ThermalUCPropertiesTest
Definition:
ThermalUCPropertiesTest.h:15
InputParameters::set
T & set(const std::string &name, bool quiet_mode=false)
Factory::getValidParams
InputParameters getValidParams(const std::string &name) const
ThermalUCPropertiesTest::_sp2
const ThermalUCProperties * _sp2
Definition:
ThermalUCPropertiesTest.h:36
InputParameters
ThermalUCPropertiesTest::ThermalUCPropertiesTest
ThermalUCPropertiesTest()
Definition:
ThermalUCPropertiesTest.h:18
MooseObjectUnitTest
ThermalUCProperties.h
Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ThermalUCPropertiesTest::buildObjects
void buildObjects()
Definition:
ThermalUCPropertiesTest.h:21
ThermalUCPropertiesTest::_sp1
const ThermalUCProperties * _sp1
Definition:
ThermalUCPropertiesTest.h:33
MooseObjectUnitTest.h
Generated on Fri Jul 18 2025 13:43:49 for https://mooseframework.inl.gov by
1.8.14