https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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"
15
17{
18public:
20
21protected:
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);
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);
51 }
52 }
53
56};
InputParameters getValidParams(const std::string &name) const
const GasLiquidMassTransfer * _mtc_stokes
const GasLiquidMassTransfer * _mtc_wilkes
Computes the mass transfer coefficient of a gas/liquid interface.
T & set(const std::string &name, bool quiet_mode=false)
std::shared_ptr< FEProblem > _fe_problem
const T & getUserObject(const std::string &param_name, bool is_dependency=true) const