LCOV - code coverage report
Current view: top level - include/userobjects - GasLiquidMassTransfer.h (source / functions) Hit Total Coverage
Test: idaholab/moose scalar_transport: #32971 (54bef8) with base c6cf66 Lines: 1 5 20.0 %
Date: 2026-05-29 20:39:31 Functions: 1 6 16.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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 "GeneralUserObject.h"
      13             : #include "Function.h"
      14             : 
      15             : // Forward Declarations
      16             : class SinglePhaseFluidProperties;
      17             : 
      18             : /**
      19             :  * Computes the mass transfer coefficient of a gas/liquid interface
      20             :  */
      21             : class GasLiquidMassTransfer : public GeneralUserObject
      22             : {
      23             : public:
      24             :   static InputParameters validParams();
      25             :   GasLiquidMassTransfer(const InputParameters & parameters);
      26           2 :   virtual ~GasLiquidMassTransfer() {}
      27             : 
      28           0 :   virtual void initialSetup() {};
      29           0 :   virtual void initialize() {};
      30           0 :   virtual void finalize() {};
      31           0 :   virtual void execute() {};
      32             :   virtual Real mtc(Real pressure, Real temperature, Real fluid_velocity) const;
      33             : 
      34             :   /// Boltzman constant [J/K]
      35             :   static constexpr Real _kB = 1.38064852e-23;
      36             : 
      37             : protected:
      38             :   /// Diameter of the flow channel [m]
      39             :   const Real _diameter;
      40             : 
      41             :   /// fluid properties user object
      42             :   const SinglePhaseFluidProperties & _fp;
      43             : 
      44             :   /// Enum used to select the type
      45             :   const enum class Equationlist { STOKESEINSTEIN, WILKECHANG } _equation_list;
      46             : 
      47             :   /// Particle radius [m]
      48             :   const Real _radius;
      49             : 
      50             :   /// Molecular weight of fluid [kg/mol]
      51             :   const Real _mw;
      52             : 
      53             :   /// Association parameter for Wilke-Chang model
      54             :   const Real _phi;
      55             : 
      56             :   /// Constant in the Wilke-Chang model
      57             :   const Real _wc;
      58             : 
      59             :   /// Dittus-Boelter leading coefficient
      60             :   const Real _db;
      61             : };

Generated by: LCOV version 1.14