Material to calculate the Darcy velocity for all phases. More...
#include <PorousFlowDarcyVelocityMaterial.h>
Public Member Functions | |
PorousFlowDarcyVelocityMaterial (const InputParameters ¶meters) | |
virtual void | initialSetup () override |
Protected Member Functions | |
virtual void | computeQpProperties () override |
virtual void | initStatefulProperties (unsigned int n_points) override |
Correctly sizes nodal materials, then initialises using Material::initStatefulProperties. More... | |
virtual void | computeProperties () override |
Correctly sizes nodal materials, then computes using Material::computeProperties. More... | |
void | sizeNodalProperties () |
Resizes properties to be equal to max(number of nodes, number of quadpoints) in the current element. More... | |
unsigned | nearestQP (unsigned nodenum) const |
Find the nearest quadpoint to the node labelled by nodenum in the current element. More... | |
Protected Attributes | |
const unsigned int | _num_phases |
Number of phases. More... | |
const unsigned int | _num_var |
Number of PorousFlow variables. More... | |
const MaterialProperty< RealTensorValue > & | _permeability |
Permeability of porous material. More... | |
const MaterialProperty< std::vector< RealTensorValue > > & | _dpermeability_dvar |
d(permeabiity)/d(PorousFlow variable) More... | |
const MaterialProperty< std::vector< std::vector< RealTensorValue > > > & | _dpermeability_dgradvar |
d(permeabiity)/d(grad(PorousFlow variable)) More... | |
const MaterialProperty< std::vector< Real > > & | _fluid_density |
Fluid density for each phase. More... | |
const MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_density_dvar |
Derivative of the fluid density for each phase wrt PorousFlow variables. More... | |
const MaterialProperty< std::vector< Real > > & | _fluid_viscosity |
Viscosity of each component in each phase. More... | |
const MaterialProperty< std::vector< std::vector< Real > > > & | _dfluid_viscosity_dvar |
Derivative of the fluid viscosity for each phase wrt PorousFlow variables. More... | |
const MaterialProperty< std::vector< Real > > & | _relative_permeability |
Relative permeability of each phase. More... | |
const MaterialProperty< std::vector< std::vector< Real > > > & | _drelative_permeability_dvar |
Derivative of relative permeability of each phase wrt PorousFlow variables. More... | |
const MaterialProperty< std::vector< RealGradient > > & | _grad_p |
Gradient of the pore pressure in each phase. More... | |
const MaterialProperty< std::vector< std::vector< Real > > > & | _dgrad_p_dgradvar |
Derivative of Grad porepressure in each phase wrt grad(PorousFlow variables) More... | |
const MaterialProperty< std::vector< std::vector< RealGradient > > > & | _dgrad_p_dvar |
Derivative of Grad porepressure in each phase wrt PorousFlow variables. More... | |
const RealVectorValue | _gravity |
Gravity. More... | |
MaterialProperty< std::vector< RealVectorValue > > & | _darcy_velocity |
Computed Darcy velocity of each phase. More... | |
MaterialProperty< std::vector< std::vector< RealVectorValue > > > & | _ddarcy_velocity_dvar |
_ddarcy_velocity_dvar[_qp][ph][v](i) = d(i_th component of velocity of phase ph at quadpoint _qp)/d(PorousFlow variable v) More... | |
MaterialProperty< std::vector< std::vector< std::vector< RealVectorValue > > > > & | _ddarcy_velocity_dgradvar |
_ddarcy_velocity_dgradvar[_qp][ph][j][v](i) = d(i_th component of Darcy velocity of phase ph at quadpoint _qp) / d(j_th component of grad(PorousFlow variable v)) In an advection Kernel, grad_test * _darcy_velocity[ph] * u, the contribution to the Jacobian is grad_test * (_ddarcy_velocity_dgradvar[_qp][ph][j][v] * _grad_phi[_j][_qp](j)) * u More... | |
const bool | _nodal_material |
Whether the derived class holds nodal values. More... | |
const PorousFlowDictator & | _dictator |
The variable names UserObject for the PorousFlow variables. More... | |
const VariableName | _pressure_variable_name |
Names of variables used to declare/get derivatives in the DerivativeMaterialInterface to ensure consistency. More... | |
const VariableName | _saturation_variable_name |
const VariableName | _temperature_variable_name |
const VariableName | _mass_fraction_variable_name |
Material to calculate the Darcy velocity for all phases.
Definition at line 22 of file PorousFlowDarcyVelocityMaterial.h.
PorousFlowDarcyVelocityMaterial::PorousFlowDarcyVelocityMaterial | ( | const InputParameters & | parameters | ) |
Definition at line 27 of file PorousFlowDarcyVelocityMaterial.C.
|
overrideprotectedvirtualinherited |
Correctly sizes nodal materials, then computes using Material::computeProperties.
Definition at line 63 of file PorousFlowMaterial.C.
|
overrideprotectedvirtual |
Definition at line 64 of file PorousFlowDarcyVelocityMaterial.C.
|
overridevirtualinherited |
Definition at line 41 of file PorousFlowMaterial.C.
|
overrideprotectedvirtualinherited |
Correctly sizes nodal materials, then initialises using Material::initStatefulProperties.
Definition at line 48 of file PorousFlowMaterial.C.
|
protectedinherited |
Find the nearest quadpoint to the node labelled by nodenum in the current element.
nodenum | the node number in the current element |
Definition at line 98 of file PorousFlowMaterial.C.
Referenced by PorousFlowNearestQp::computeQpProperties().
|
protectedinherited |
Resizes properties to be equal to max(number of nodes, number of quadpoints) in the current element.
Definition at line 79 of file PorousFlowMaterial.C.
Referenced by PorousFlowMaterial::computeProperties(), and PorousFlowMaterial::initStatefulProperties().
|
protected |
Computed Darcy velocity of each phase.
_darcy_velocity[_qp][ph](i) = i^th component of velocity of phase ph at quadpoint _qp
Definition at line 79 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
_ddarcy_velocity_dgradvar[_qp][ph][j][v](i) = d(i_th component of Darcy velocity of phase ph at quadpoint _qp) / d(j_th component of grad(PorousFlow variable v)) In an advection Kernel, grad_test * _darcy_velocity[ph] * u, the contribution to the Jacobian is grad_test * (_ddarcy_velocity_dgradvar[_qp][ph][j][v] * _grad_phi[_j][_qp](j)) * u
Definition at line 95 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
_ddarcy_velocity_dvar[_qp][ph][v](i) = d(i_th component of velocity of phase ph at quadpoint _qp)/d(PorousFlow variable v)
Definition at line 85 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Derivative of the fluid density for each phase wrt PorousFlow variables.
Definition at line 49 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Derivative of the fluid viscosity for each phase wrt PorousFlow variables.
Definition at line 55 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Derivative of Grad porepressure in each phase wrt grad(PorousFlow variables)
Definition at line 67 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Derivative of Grad porepressure in each phase wrt PorousFlow variables.
Definition at line 70 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protectedinherited |
The variable names UserObject for the PorousFlow variables.
Definition at line 71 of file PorousFlowMaterial.h.
|
protected |
d(permeabiity)/d(grad(PorousFlow variable))
Definition at line 43 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
d(permeabiity)/d(PorousFlow variable)
Definition at line 40 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Derivative of relative permeability of each phase wrt PorousFlow variables.
Definition at line 61 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Fluid density for each phase.
Definition at line 46 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Viscosity of each component in each phase.
Definition at line 52 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Gradient of the pore pressure in each phase.
Definition at line 64 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Definition at line 73 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protectedinherited |
Definition at line 78 of file PorousFlowMaterial.h.
|
protectedinherited |
Whether the derived class holds nodal values.
Definition at line 68 of file PorousFlowMaterial.h.
Referenced by PorousFlowMaterial::computeProperties(), PorousFlowMaterial::initialSetup(), PorousFlowMaterial::initStatefulProperties(), and PorousFlowDarcyVelocityMaterial().
|
protected |
Number of phases.
Definition at line 31 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Number of PorousFlow variables.
Definition at line 34 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protected |
Permeability of porous material.
Definition at line 37 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protectedinherited |
Names of variables used to declare/get derivatives in the DerivativeMaterialInterface to ensure consistency.
Definition at line 75 of file PorousFlowMaterial.h.
|
protected |
Relative permeability of each phase.
Definition at line 58 of file PorousFlowDarcyVelocityMaterial.h.
Referenced by computeQpProperties().
|
protectedinherited |
Definition at line 76 of file PorousFlowMaterial.h.
|
protectedinherited |
Definition at line 77 of file PorousFlowMaterial.h.