https://mooseframework.inl.gov
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HenryGasConstantTest Class Reference

#include <HenryGasConstantTest.h>

Inheritance diagram for HenryGasConstantTest:
[legend]

Public Member Functions

 HenryGasConstantTest ()
 

Protected Member Functions

void buildObjects ()
 
TaddObject (const std::string &type, const std::string &name, InputParameters &params)
 

Protected Attributes

const HenryGasConstant_henry_argon_flibe
 
const HenryGasConstant_henry_helium_flibe
 
const HenryGasConstant_henry_argon_flinak
 
const HenryGasConstant_henry_helium_flinak
 
const HenryGasConstant_henry_argon_custom
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 15 of file HenryGasConstantTest.h.

Constructor & Destructor Documentation

◆ HenryGasConstantTest()

HenryGasConstantTest::HenryGasConstantTest ( )
inline

Definition at line 18 of file HenryGasConstantTest.h.

18 : MooseObjectUnitTest("ChemicalReactionsApp") { buildObjects(); }
MooseObjectUnitTest(const std::string &app_name)

Member Function Documentation

◆ buildObjects()

void HenryGasConstantTest::buildObjects ( )
inlineprotected

Definition at line 21 of file HenryGasConstantTest.h.

Referenced by HenryGasConstantTest().

22  {
23  // Set up object for helium and FLiBe
24  {
25  InputParameters params = _factory.getValidParams("HenryGasConstant");
26  params.set<MooseEnum>("salt") = "FLIBE";
27  params.set<Real>("radius") = 1.4e-10;
28  _fe_problem->addUserObject("HenryGasConstant", "henry_helium_flibe", params);
29  _henry_helium_flibe = &_fe_problem->getUserObject<HenryGasConstant>("henry_helium_flibe");
30  }
31  // Set up object for argon and FLiBe
32  {
33  InputParameters params = _factory.getValidParams("HenryGasConstant");
34  params.set<MooseEnum>("salt") = "FLIBE";
35  params.set<Real>("radius") = 1.88e-10;
36  _fe_problem->addUserObject("HenryGasConstant", "henry_argon_flibe", params);
37  _henry_argon_flibe = &_fe_problem->getUserObject<HenryGasConstant>("henry_argon_flibe");
38  }
39  // Set up object for helium and FLiNaK
40  {
41  InputParameters params = _factory.getValidParams("HenryGasConstant");
42  params.set<MooseEnum>("salt") = "FLINAK";
43  params.set<Real>("radius") = 1.4e-10;
44  _fe_problem->addUserObject("HenryGasConstant", "henry_helium_flinak", params);
45  _henry_helium_flinak = &_fe_problem->getUserObject<HenryGasConstant>("henry_helium_flinak");
46  }
47  // Set up object for argon and FLiNaK
48  {
49  InputParameters params = _factory.getValidParams("HenryGasConstant");
50  params.set<MooseEnum>("salt") = "FLINAK";
51  params.set<Real>("radius") = 1.88e-10;
52  _fe_problem->addUserObject("HenryGasConstant", "henry_argon_flinak", params);
53  _henry_argon_flinak = &_fe_problem->getUserObject<HenryGasConstant>("henry_argon_flinak");
54  }
55  // Set up argon and custom, but make custom salt the same as FLiNaK and ensure results are the
56  // same
57  {
58  InputParameters params = _factory.getValidParams("HenryGasConstant");
59  params.set<MooseEnum>("salt") = "CUSTOM";
60  params.set<Real>("radius") = 1.88e-10;
61  params.set<Real>("alpha") = HenryGasConstant::_alpha_FLiNaK;
62  params.set<Real>("beta") = HenryGasConstant::_beta_FLiNaK;
63  params.set<Real>("KH0") = HenryGasConstant::_KH0_FLiNaK;
64  params.set<Real>("gamma_0") = HenryGasConstant::_gamma_0_FLiNaK;
65  params.set<Real>("dgamma_dT") = HenryGasConstant::_dgamma_dT_FLiNaK;
66 
67  _fe_problem->addUserObject("HenryGasConstant", "henry_argon_custom", params);
68  _henry_argon_custom = &_fe_problem->getUserObject<HenryGasConstant>("henry_argon_custom");
69  }
70  }
std::shared_ptr< FEProblem > _fe_problem
const HenryGasConstant * _henry_argon_flibe
static constexpr Real _dgamma_dT_FLiNaK
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const HenryGasConstant * _henry_helium_flibe
static constexpr Real _beta_FLiNaK
const HenryGasConstant * _henry_helium_flinak
const HenryGasConstant * _henry_argon_custom
static constexpr Real _gamma_0_FLiNaK
static constexpr Real _alpha_FLiNaK
Model constants for FLiNaK.
const HenryGasConstant * _henry_argon_flinak
static constexpr Real _KH0_FLiNaK
This UserObject performs a calculation of the Henry coefficient for noble gases using the model by K...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Member Data Documentation

◆ _henry_argon_custom

const HenryGasConstant* HenryGasConstantTest::_henry_argon_custom
protected

Definition at line 76 of file HenryGasConstantTest.h.

Referenced by buildObjects().

◆ _henry_argon_flibe

const HenryGasConstant* HenryGasConstantTest::_henry_argon_flibe
protected

Definition at line 72 of file HenryGasConstantTest.h.

Referenced by buildObjects().

◆ _henry_argon_flinak

const HenryGasConstant* HenryGasConstantTest::_henry_argon_flinak
protected

Definition at line 74 of file HenryGasConstantTest.h.

Referenced by buildObjects().

◆ _henry_helium_flibe

const HenryGasConstant* HenryGasConstantTest::_henry_helium_flibe
protected

Definition at line 73 of file HenryGasConstantTest.h.

Referenced by buildObjects().

◆ _henry_helium_flinak

const HenryGasConstant* HenryGasConstantTest::_henry_helium_flinak
protected

Definition at line 75 of file HenryGasConstantTest.h.

Referenced by buildObjects().


The documentation for this class was generated from the following file: