https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PorousFlowWaterVaporTest.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"
16
18{
19public:
21
22protected:
24 {
25 InputParameters pc_params = _factory.getValidParams("PorousFlowCapillaryPressureVG");
26 pc_params.set<Real>("m") = 0.5;
27 pc_params.set<Real>("alpha") = 1.0e-4;
28 pc_params.set<Real>("pc_max") = 1.0e5;
29 _fe_problem->addUserObject("PorousFlowCapillaryPressureVG", "pc", pc_params);
31
32 InputParameters water_params = _factory.getValidParams("Water97FluidProperties");
33 _fe_problem->addUserObject("Water97FluidProperties", "water_fp", water_params);
35
36 InputParameters uo_params = _factory.getValidParams("PorousFlowWaterVapor");
37 uo_params.set<UserObjectName>("water_fp") = "water_fp";
38 uo_params.set<UserObjectName>("capillary_pressure") = "pc";
39 _fe_problem->addUserObject("PorousFlowWaterVapor", "fp", uo_params);
41 }
42
46};
InputParameters getValidParams(const std::string &name) const
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
van Genuchten form of capillary pressure.
const Water97FluidProperties * _water_fp
const PorousFlowCapillaryPressureVG * _pc
const PorousFlowWaterVapor * _fp
Specialized class for water and vapor mixture using pressure and enthalpy.
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const
Water (H2O) fluid properties as a function of pressure (Pa) and temperature (K) from IAPWS-IF97: Revi...