LCOV - code coverage report
Current view: top level - include/kernels - PorousFlowAdvectiveFlux.h (source / functions) Hit Total Coverage
Test: porous_flow Test Coverage Lines: 1 1 100.0 %
Date: 2017-11-18 13:30:36 Functions: 1 2 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /****************************************************************/
       2             : /* MOOSE - Multiphysics Object Oriented Simulation Environment  */
       3             : /*                                                              */
       4             : /*          All contents are licensed under LGPL V2.1           */
       5             : /*             See LICENSE for full restrictions                */
       6             : /****************************************************************/
       7             : 
       8             : #ifndef POROUSFLOWADVECTIVEFLUX_H
       9             : #define POROUSFLOWADVECTIVEFLUX_H
      10             : 
      11             : #include "PorousFlowDarcyBase.h"
      12             : 
      13             : class PorousFlowAdvectiveFlux;
      14             : 
      15             : template <>
      16             : InputParameters validParams<PorousFlowAdvectiveFlux>();
      17             : 
      18             : /**
      19             :  * Convective flux of component k in fluid phase alpha.
      20             :  * A fully-updwinded version is implemented, where the mobility
      21             :  * of the upstream nodes is used.
      22             :  */
      23          80 : class PorousFlowAdvectiveFlux : public PorousFlowDarcyBase
      24             : {
      25             : public:
      26             :   PorousFlowAdvectiveFlux(const InputParameters & parameters);
      27             : 
      28             : protected:
      29             :   virtual Real mobility(unsigned nodenum, unsigned phase) const override;
      30             :   virtual Real dmobility(unsigned nodenum, unsigned phase, unsigned pvar) const override;
      31             : 
      32             :   /// Mass fraction of each component in each phase
      33             :   const MaterialProperty<std::vector<std::vector<Real>>> & _mass_fractions;
      34             : 
      35             :   /// Derivative of the mass fraction of each component in each phase wrt PorousFlow variables
      36             :   const MaterialProperty<std::vector<std::vector<std::vector<Real>>>> & _dmass_fractions_dvar;
      37             : 
      38             :   /// Relative permeability of each phase
      39             :   const MaterialProperty<std::vector<Real>> & _relative_permeability;
      40             : 
      41             :   /// Derivative of relative permeability of each phase wrt PorousFlow variables
      42             :   const MaterialProperty<std::vector<std::vector<Real>>> & _drelative_permeability_dvar;
      43             : 
      44             :   /// Index of the fluid component that this kernel acts on
      45             :   const unsigned int _fluid_component;
      46             : };
      47             : 
      48             : #endif // POROUSFLOWADVECTIVEFLUX_H

Generated by: LCOV version 1.11