https://mooseframework.inl.gov
SimpleFluidPropertiesTest.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"
13 #include "SimpleFluidProperties.h"
14 
16 {
17 public:
19 
20 protected:
21  void buildObjects()
22  {
23  InputParameters uo_params = _factory.getValidParams("SimpleFluidProperties");
24  _fe_problem->addUserObject("SimpleFluidProperties", "fp", uo_params);
25  _fp = &_fe_problem->getUserObject<SimpleFluidProperties>("fp");
26 
27  InputParameters uo2_params = _factory.getValidParams("SimpleFluidProperties");
28  uo2_params.set<Real>("porepressure_coefficient") = 0.0;
29  _fe_problem->addUserObject("SimpleFluidProperties", "fp2", uo2_params);
30  _fp2 = &_fe_problem->getUserObject<SimpleFluidProperties>("fp2");
31  }
32 
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 SimpleFluidProperties * _fp2
Fluid properties of a simple, idealised fluid density=density0 * exp(P / bulk_modulus - thermal_expan...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const SimpleFluidProperties * _fp