www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PorousFlowDiffusivityConst Class Reference

Material designed to provide constant tortuosity and diffusion coefficents. More...

#include <PorousFlowDiffusivityConst.h>

Inheritance diagram for PorousFlowDiffusivityConst:
[legend]

Public Member Functions

 PorousFlowDiffusivityConst (const InputParameters &parameters)
 

Protected Member Functions

virtual void computeQpProperties () override
 

Protected Attributes

const std::vector< Real > _input_tortuosity
 Input tortuosity. More...
 
MaterialProperty< std::vector< Real > > & _tortuosity
 Tortuosity tau_0 * tau_{alpha} for fluid phase alpha. More...
 
MaterialProperty< std::vector< std::vector< Real > > > & _dtortuosity_dvar
 Derivative of tortuosity wrt PorousFlow variables. More...
 
MaterialProperty< std::vector< std::vector< Real > > > & _diffusion_coeff
 Diffusion coefficients of component k in fluid phase alpha. More...
 
MaterialProperty< std::vector< std::vector< std::vector< Real > > > > & _ddiffusion_coeff_dvar
 Derivative of the diffusion coefficients wrt PorousFlow variables. More...
 
const std::vector< Real > _input_diffusion_coeff
 Input diffusion coefficients. More...
 
const unsigned int _num_phases
 Number of phases. More...
 
const unsigned int _num_components
 Number of fluid components. More...
 
const unsigned int _num_var
 Number of PorousFlow variables. More...
 

Detailed Description

Material designed to provide constant tortuosity and diffusion coefficents.

Definition at line 19 of file PorousFlowDiffusivityConst.h.

Constructor & Destructor Documentation

PorousFlowDiffusivityConst::PorousFlowDiffusivityConst ( const InputParameters &  parameters)

Definition at line 22 of file PorousFlowDiffusivityConst.C.

23  : PorousFlowDiffusivityBase(parameters),
24  _input_tortuosity(getParam<std::vector<Real>>("tortuosity"))
25 {
26  // Check that the number of tortuosities entered is equal to the number of phases
27  if (_input_tortuosity.size() != _num_phases)
28  mooseError("The number of tortuosity values entered is not equal to the number of phases "
29  "specified in the Dictator");
30 
31  // Check that all tortuosities are (0, 1]
32  for (unsigned int i = 0; i < _num_phases; ++i)
33  if (_input_tortuosity[i] <= 0.0 || _input_tortuosity[i] > 1)
34  mooseError("All tortuosities must be greater than zero and less than (or equal to) one in ",
35  _name,
36  ".\nNote: the definition of tortuosity used is l/le, where l is the straight line "
37  "length and le is the effective flow length");
38 }
const unsigned int _num_phases
Number of phases.
const std::vector< Real > _input_tortuosity
Input tortuosity.
PorousFlowDiffusivityBase(const InputParameters &parameters)

Member Function Documentation

void PorousFlowDiffusivityConst::computeQpProperties ( )
overrideprotectedvirtual

Reimplemented from PorousFlowDiffusivityBase.

Definition at line 41 of file PorousFlowDiffusivityConst.C.

42 {
44 
46 }
virtual void computeQpProperties() override
const std::vector< Real > _input_tortuosity
Input tortuosity.
MaterialProperty< std::vector< Real > > & _tortuosity
Tortuosity tau_0 * tau_{alpha} for fluid phase alpha.

Member Data Documentation

MaterialProperty<std::vector<std::vector<std::vector<Real> > > >& PorousFlowDiffusivityBase::_ddiffusion_coeff_dvar
protectedinherited

Derivative of the diffusion coefficients wrt PorousFlow variables.

Definition at line 37 of file PorousFlowDiffusivityBase.h.

Referenced by PorousFlowDiffusivityBase::computeQpProperties().

MaterialProperty<std::vector<std::vector<Real> > >& PorousFlowDiffusivityBase::_diffusion_coeff
protectedinherited

Diffusion coefficients of component k in fluid phase alpha.

Definition at line 34 of file PorousFlowDiffusivityBase.h.

Referenced by PorousFlowDiffusivityBase::computeQpProperties().

MaterialProperty<std::vector<std::vector<Real> > >& PorousFlowDiffusivityBase::_dtortuosity_dvar
protectedinherited

Derivative of tortuosity wrt PorousFlow variables.

Definition at line 31 of file PorousFlowDiffusivityBase.h.

Referenced by PorousFlowDiffusivityBase::computeQpProperties(), and PorousFlowDiffusivityMillingtonQuirk::computeQpProperties().

const std::vector<Real> PorousFlowDiffusivityBase::_input_diffusion_coeff
protectedinherited
const std::vector<Real> PorousFlowDiffusivityConst::_input_tortuosity
protected

Input tortuosity.

Definition at line 28 of file PorousFlowDiffusivityConst.h.

Referenced by computeQpProperties(), and PorousFlowDiffusivityConst().

const unsigned int PorousFlowMaterialVectorBase::_num_components
protectedinherited
const unsigned int PorousFlowMaterialVectorBase::_num_phases
protectedinherited
const unsigned int PorousFlowMaterialVectorBase::_num_var
protectedinherited
MaterialProperty<std::vector<Real> >& PorousFlowDiffusivityBase::_tortuosity
protectedinherited

Tortuosity tau_0 * tau_{alpha} for fluid phase alpha.

Definition at line 28 of file PorousFlowDiffusivityBase.h.

Referenced by computeQpProperties(), and PorousFlowDiffusivityMillingtonQuirk::computeQpProperties().


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