https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearFluidPropertiesTest.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{
17public:
19
20protected:
22 {
23 InputParameters eos_pars = _factory.getValidParams("LinearFluidProperties");
24 eos_pars.set<Real>("p_0") = 1e5;
25 eos_pars.set<Real>("rho_0") = 1000;
26 eos_pars.set<Real>("a2") = 10;
27 eos_pars.set<Real>("beta") = 123;
28 eos_pars.set<Real>("cv") = 1000;
29 eos_pars.set<Real>("e_0") = 1e6;
30 eos_pars.set<Real>("T_0") = 300;
31 eos_pars.set<Real>("mu") = 0.3;
32 eos_pars.set<Real>("k") = 0.89;
33 _fe_problem->addUserObject("LinearFluidProperties", "fp", eos_pars);
35 }
36
38};
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
const LinearFluidProperties * _fp
Linear fluid properties.
std::shared_ptr< FEProblem > _fe_problem
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const