https://mooseframework.inl.gov
ThermalMonolithicSiCPropertiesTest.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  buildObjects();
21  }
22 
23 protected:
24  void buildObjects()
25  {
26  InputParameters uo_pars1 = _factory.getValidParams("ThermalMonolithicSiCProperties");
27  uo_pars1.set<MooseEnum>("thermal_conductivity_model") = "SNEAD";
28  _fe_problem->addUserObject("ThermalMonolithicSiCProperties", "sp1", uo_pars1);
29  _sp1 = &_fe_problem->getUserObject<ThermalMonolithicSiCProperties>("sp1");
30 
31  InputParameters uo_pars2 = _factory.getValidParams("ThermalMonolithicSiCProperties");
32  uo_pars2.set<MooseEnum>("thermal_conductivity_model") = "STONE";
33  uo_pars2.set<Real>("density") = 3000.0;
34  _fe_problem->addUserObject("ThermalMonolithicSiCProperties", "sp2", uo_pars2);
35  _sp2 = &_fe_problem->getUserObject<ThermalMonolithicSiCProperties>("sp2");
36  }
37 
38  // model using the Snead conductivity correlation
40 
41  // model using the Stone conductivity correlation and non-default density
43 };
std::shared_ptr< FEProblem > _fe_problem
Monolithic silicon carbide properties as a function of temperature.
const ThermalMonolithicSiCProperties * _sp2
const ThermalMonolithicSiCProperties * _sp1
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real