#include <TemperaturePressureFunctionFluidPropertiesTest.h>
◆ TemperaturePressureFunctionFluidPropertiesTest()
TemperaturePressureFunctionFluidPropertiesTest::TemperaturePressureFunctionFluidPropertiesTest |
( |
| ) |
|
|
inline |
Definition at line 19 of file TemperaturePressureFunctionFluidPropertiesTest.h.
22 params.
set<std::string>(
"_object_name") =
"k_function";
26 params.
set<std::string>(
"expression") =
"14 + 2e-2 * x + 3e-5 * y";
27 params.
set<std::string>(
"_type") =
"MooseParsedFunction";
28 _fe_problem->addFunction(
"ParsedFunction",
"k_function", params);
30 params.
set<std::string>(
"expression") =
"1400 + 2.5 * x + 32e-5 * y";
31 params.
set<std::string>(
"_object_name") =
"rho_function";
32 _fe_problem->addFunction(
"ParsedFunction",
"rho_function", params);
34 params.
set<std::string>(
"expression") =
"1e-3 + 1e-5 * x - 3e-9 * y";
35 params.
set<std::string>(
"_object_name") =
"mu_function";
36 _fe_problem->addFunction(
"ParsedFunction",
"mu_function", params);
38 params.
set<std::string>(
"expression") =
"3000. + 3*x + 5e-4*y";
39 params.
set<std::string>(
"_object_name") =
"cp_function";
40 _fe_problem->addFunction(
"ParsedFunction",
"cp_function", params);
42 _fe_problem->getFunction(
"k_function").initialSetup();
43 _fe_problem->getFunction(
"rho_function").initialSetup();
44 _fe_problem->getFunction(
"mu_function").initialSetup();
45 _fe_problem->getFunction(
"cp_function").initialSetup();
std::shared_ptr< FEProblem > _fe_problem
MooseObjectUnitTest(const std::string &app_name)
InputParameters getValidParams(const std::string &name) const
◆ buildObjects()
void TemperaturePressureFunctionFluidPropertiesTest::buildObjects |
( |
| ) |
|
|
inlineprotected |
Definition at line 51 of file TemperaturePressureFunctionFluidPropertiesTest.h.
Referenced by TemperaturePressureFunctionFluidPropertiesTest().
56 uo_params.
set<FunctionName>(
"k") =
"k_function";
57 uo_params.
set<FunctionName>(
"rho") =
"rho_function";
58 uo_params.
set<FunctionName>(
"mu") =
"mu_function";
59 uo_params.
set<
Real>(
"cv") = 4186;
61 _fe_problem->addUserObject(
"TemperaturePressureFunctionFluidProperties",
"fp", uo_params);
67 uo_params2.
set<FunctionName>(
"k") =
"k_function";
68 uo_params2.set<FunctionName>(
"rho") =
"rho_function";
69 uo_params2.set<FunctionName>(
"mu") =
"mu_function";
70 uo_params2.set<FunctionName>(
"cp") =
"cp_function";
71 uo_params2.set<
Real>(
"T_initial_guess") = 250;
72 uo_params2.set<
Real>(
"p_initial_guess") = 1e7;
73 uo_params2.set<
Real>(
"dT_integration_intervals") = 0.01;
75 _fe_problem->addUserObject(
"TemperaturePressureFunctionFluidProperties",
"fp_cp", uo_params2);
std::shared_ptr< FEProblem > _fe_problem
Fluid properties provided as multiple-variable functions of temperature and pressure.
InputParameters getValidParams(const std::string &name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
TemperaturePressureFunctionFluidProperties * _fp
TemperaturePressureFunctionFluidProperties * _fp_cp
◆ _fp
◆ _fp_cp
The documentation for this class was generated from the following file: