https://mooseframework.inl.gov
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
GasLiquidMassTransferTest Class Reference

#include <GasLiquidMassTransferTest.h>

Inheritance diagram for GasLiquidMassTransferTest:
[legend]

Public Member Functions

 GasLiquidMassTransferTest ()
 

Protected Member Functions

void buildObjects ()
 
TaddObject (const std::string &type, const std::string &name, InputParameters &params)
 

Protected Attributes

const GasLiquidMassTransfer_mtc_stokes
 
const GasLiquidMassTransfer_mtc_wilkes
 
std::unique_ptr< MooseMesh_mesh
 
std::shared_ptr< MooseApp_app
 
Factory_factory
 
std::shared_ptr< FEProblem_fe_problem
 

Detailed Description

Definition at line 16 of file GasLiquidMassTransferTest.h.

Constructor & Destructor Documentation

◆ GasLiquidMassTransferTest()

GasLiquidMassTransferTest::GasLiquidMassTransferTest ( )
inline

Definition at line 19 of file GasLiquidMassTransferTest.h.

19 : MooseObjectUnitTest("ScalarTransportApp") { buildObjects(); }
MooseObjectUnitTest(const std::string &app_name)

Member Function Documentation

◆ buildObjects()

void GasLiquidMassTransferTest::buildObjects ( )
inlineprotected

Definition at line 22 of file GasLiquidMassTransferTest.h.

Referenced by GasLiquidMassTransferTest().

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  }
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

Member Data Documentation

◆ _mtc_stokes

const GasLiquidMassTransfer* GasLiquidMassTransferTest::_mtc_stokes
protected

Definition at line 54 of file GasLiquidMassTransferTest.h.

Referenced by buildObjects().

◆ _mtc_wilkes

const GasLiquidMassTransfer* GasLiquidMassTransferTest::_mtc_wilkes
protected

Definition at line 55 of file GasLiquidMassTransferTest.h.

Referenced by buildObjects().


The documentation for this class was generated from the following file: