https://mooseframework.inl.gov
GasLiquidMassTransferTest.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 "GasLiquidMassTransfer.h"
15 
17 {
18 public:
20 
21 protected:
22  void buildObjects()
23  {
24  {
25  InputParameters eos_pars = _factory.getValidParams("IdealGasFluidProperties");
26  eos_pars.set<Real>("molar_mass") = 30e-3;
27  eos_pars.set<Real>("mu") = 20e-6;
28  _fe_problem->addUserObject("IdealGasFluidProperties", "fp", eos_pars);
29  }
30 
31  // Set up object for Stokes-Einstein
32  {
33  InputParameters params = _factory.getValidParams("GasLiquidMassTransfer");
34  params.set<MooseEnum>("equation") = "StokesEinstein";
35  params.set<Real>("d") = 10e-3;
36  params.set<UserObjectName>("fp") = "fp";
37  params.set<Real>("radius") = 1e-3;
38  _fe_problem->addUserObject("GasLiquidMassTransfer", "mtc_stokes", params);
39  _mtc_stokes = &_fe_problem->getUserObject<GasLiquidMassTransfer>("mtc_stokes");
40  }
41 
42  // Set up object for Wilke-Chang
43  {
44  InputParameters params = _factory.getValidParams("GasLiquidMassTransfer");
45  params.set<MooseEnum>("equation") = "WilkeChang";
46  params.set<Real>("d") = 10e-3;
47  params.set<UserObjectName>("fp") = "fp";
48  params.set<Real>("molar_weight") = 30e-3;
49  _fe_problem->addUserObject("GasLiquidMassTransfer", "mtc_wilkes", params);
50  _mtc_wilkes = &_fe_problem->getUserObject<GasLiquidMassTransfer>("mtc_wilkes");
51  }
52  }
53 
56 };
std::shared_ptr< FEProblem > _fe_problem
const GasLiquidMassTransfer * _mtc_stokes
T & set(const std::string &name, bool quiet_mode=false)
Computes the mass transfer coefficient of a gas/liquid interface.
InputParameters getValidParams(const std::string &name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const GasLiquidMassTransfer * _mtc_wilkes