https://mooseframework.inl.gov
ThermalGraphitePropertiesTest.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 {
17 public:
19 
20 protected:
21  void buildObjects()
22  {
23  InputParameters uo_pars1 = _factory.getValidParams("ThermalGraphiteProperties");
24  uo_pars1.set<MooseEnum>("grade") = "H_451";
25  _fe_problem->addUserObject("ThermalGraphiteProperties", "sp1", uo_pars1);
26  _sp1 = &_fe_problem->getUserObject<ThermalGraphiteProperties>("sp1");
27 
28  InputParameters uo_pars2 = _factory.getValidParams("ThermalGraphiteProperties");
29  uo_pars2.set<MooseEnum>("grade") = "H_451";
30  uo_pars2.set<Real>("density") = 2000.0;
31  _fe_problem->addUserObject("ThermalGraphiteProperties", "sp2", uo_pars2);
32  _sp2 = &_fe_problem->getUserObject<ThermalGraphiteProperties>("sp2");
33  }
34 
35  // model using the H-451 grade
37 
38  // model using the H-451 grade and non-default density
40 };
std::shared_ptr< FEProblem > _fe_problem
T & set(const std::string &name, bool quiet_mode=false)
const ThermalGraphiteProperties * _sp1
InputParameters getValidParams(const std::string &name) const
Graphite thermal properties as a function of temperature.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ThermalGraphiteProperties * _sp2