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

Material designed to provide the permeability tensor which is calculated from a tensor multiplied by a scalar: k = k_ijk * k0 where k_ijk is a tensor providing the anisotropy, and k0 is a scalar variable. More...

#include <PorousFlowPermeabilityTensorFromVar.h>

Inheritance diagram for PorousFlowPermeabilityTensorFromVar:
[legend]

Public Member Functions

 PorousFlowPermeabilityTensorFromVar (const InputParameters &parameters)
 

Protected Member Functions

void computeQpProperties () override
 

Protected Attributes

const VariableValue & _perm
 Permeability components. More...
 
const RealTensorValue _k_anisotropy
 Tensor multiplier k_ijk. More...
 
MaterialProperty< RealTensorValue > & _permeability_qp
 Quadpoint permeability. More...
 
MaterialProperty< std::vector< RealTensorValue > > & _dpermeability_qp_dvar
 d(quadpoint permeability)/d(PorousFlow variable) More...
 
MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _dpermeability_qp_dgradvar
 d(quadpoint permeability)/d(grad(PorousFlow variable)) 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 the permeability tensor which is calculated from a tensor multiplied by a scalar: k = k_ijk * k0 where k_ijk is a tensor providing the anisotropy, and k0 is a scalar variable.

Definition at line 27 of file PorousFlowPermeabilityTensorFromVar.h.

Constructor & Destructor Documentation

◆ PorousFlowPermeabilityTensorFromVar()

PorousFlowPermeabilityTensorFromVar::PorousFlowPermeabilityTensorFromVar ( const InputParameters &  parameters)

Definition at line 31 of file PorousFlowPermeabilityTensorFromVar.C.

33  : PorousFlowPermeabilityBase(parameters),
34  _perm(coupledValue("perm")),
35  _k_anisotropy(parameters.isParamValid("k_anisotropy")
36  ? getParam<RealTensorValue>("k_anisotropy")
37  : RealTensorValue(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0))
38 {
39 }
PorousFlowPermeabilityBase(const InputParameters &parameters)
const RealTensorValue _k_anisotropy
Tensor multiplier k_ijk.
const VariableValue & _perm
Permeability components.

Member Function Documentation

◆ computeQpProperties()

void PorousFlowPermeabilityTensorFromVar::computeQpProperties ( )
overrideprotected

Definition at line 42 of file PorousFlowPermeabilityTensorFromVar.C.

43 {
44  _permeability_qp[_qp] = _k_anisotropy * _perm[_qp];
45 
46  _dpermeability_qp_dvar[_qp].resize(_num_var, RealTensorValue());
47  _dpermeability_qp_dgradvar[_qp].resize(LIBMESH_DIM);
48 
49  for (unsigned int i = 0; i < LIBMESH_DIM; ++i)
50  _dpermeability_qp_dgradvar[_qp][i].resize(_num_var, RealTensorValue());
51 }
MaterialProperty< std::vector< std::vector< RealTensorValue > > > & _dpermeability_qp_dgradvar
d(quadpoint permeability)/d(grad(PorousFlow variable))
const unsigned int _num_var
Number of PorousFlow variables.
MaterialProperty< std::vector< RealTensorValue > > & _dpermeability_qp_dvar
d(quadpoint permeability)/d(PorousFlow variable)
MaterialProperty< RealTensorValue > & _permeability_qp
Quadpoint permeability.
const RealTensorValue _k_anisotropy
Tensor multiplier k_ijk.
const VariableValue & _perm
Permeability components.

Member Data Documentation

◆ _dpermeability_qp_dgradvar

MaterialProperty<std::vector<std::vector<RealTensorValue> > >& PorousFlowPermeabilityBase::_dpermeability_qp_dgradvar
protectedinherited

◆ _dpermeability_qp_dvar

MaterialProperty<std::vector<RealTensorValue> >& PorousFlowPermeabilityBase::_dpermeability_qp_dvar
protectedinherited

◆ _k_anisotropy

const RealTensorValue PorousFlowPermeabilityTensorFromVar::_k_anisotropy
protected

Tensor multiplier k_ijk.

Definition at line 39 of file PorousFlowPermeabilityTensorFromVar.h.

Referenced by computeQpProperties().

◆ _num_components

const unsigned int PorousFlowMaterialVectorBase::_num_components
protectedinherited

◆ _num_phases

const unsigned int PorousFlowMaterialVectorBase::_num_phases
protectedinherited

◆ _num_var

const unsigned int PorousFlowMaterialVectorBase::_num_var
protectedinherited

◆ _perm

const VariableValue& PorousFlowPermeabilityTensorFromVar::_perm
protected

Permeability components.

Definition at line 36 of file PorousFlowPermeabilityTensorFromVar.h.

Referenced by computeQpProperties().

◆ _permeability_qp

MaterialProperty<RealTensorValue>& PorousFlowPermeabilityBase::_permeability_qp
protectedinherited

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