https://mooseframework.inl.gov
SalineMoltenSaltFluidPropertiesTest.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_pars = _factory.getValidParams("SalineMoltenSaltFluidProperties");
27  uo_pars.set<std::vector<std::string>>("comp_name") = {"LiF", "NaF", "KF"};
28  uo_pars.set<std::vector<Real>>("comp_val") = {0.465, 0.115, 0.42};
29  uo_pars.set<std::string>("prop_def_file") = "../test/tests/saline/saline_custom.prp";
30  _fe_problem->addUserObject("SalineMoltenSaltFluidProperties", "fp", uo_pars);
31  _fp = &_fe_problem->getUserObject<SalineMoltenSaltFluidProperties>("fp");
32  }
33 
35 };
std::shared_ptr< FEProblem > _fe_problem
T & set(const std::string &name, bool quiet_mode=false)
InputParameters getValidParams(const std::string &name) const
const SalineMoltenSaltFluidProperties * _fp