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

PoroMechanicsCoupling computes -coefficient*porepressure*grad_test[component]. More...

#include <PoroMechanicsCoupling.h>

Inheritance diagram for PoroMechanicsCoupling:
[legend]

Public Member Functions

 PoroMechanicsCoupling (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 
virtual Real computeQpOffDiagJacobian (unsigned int jvar)
 

Private Attributes

const MaterialProperty< Real > & _coefficient
 Biot coefficient. More...
 
const VariableValue & _porepressure
 
unsigned int _porepressure_var_num
 
unsigned int _component
 

Detailed Description

PoroMechanicsCoupling computes -coefficient*porepressure*grad_test[component].

Definition at line 24 of file PoroMechanicsCoupling.h.

Constructor & Destructor Documentation

◆ PoroMechanicsCoupling()

PoroMechanicsCoupling::PoroMechanicsCoupling ( const InputParameters &  parameters)

Definition at line 32 of file PoroMechanicsCoupling.C.

33  : Kernel(parameters),
34  _coefficient(getMaterialProperty<Real>("biot_coefficient")),
35  _porepressure(coupledValue("porepressure")),
36  _porepressure_var_num(coupled("porepressure")),
37  _component(getParam<unsigned int>("component"))
38 {
39  if (_component >= _mesh.dimension())
40  mooseError("PoroMechanicsCoupling: component should not be greater than the mesh dimension\n");
41 }
const VariableValue & _porepressure
const MaterialProperty< Real > & _coefficient
Biot coefficient.

Member Function Documentation

◆ computeQpJacobian()

Real PoroMechanicsCoupling::computeQpJacobian ( )
protectedvirtual

Definition at line 50 of file PoroMechanicsCoupling.C.

51 {
52  if (_var.number() != _porepressure_var_num)
53  return 0.0;
54  return -_coefficient[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp](_component);
55 }
const MaterialProperty< Real > & _coefficient
Biot coefficient.

◆ computeQpOffDiagJacobian()

Real PoroMechanicsCoupling::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 58 of file PoroMechanicsCoupling.C.

59 {
60  if (jvar != _porepressure_var_num)
61  return 0.0;
62  return -_coefficient[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp](_component);
63 }
const MaterialProperty< Real > & _coefficient
Biot coefficient.

◆ computeQpResidual()

Real PoroMechanicsCoupling::computeQpResidual ( )
protectedvirtual

Definition at line 44 of file PoroMechanicsCoupling.C.

45 {
46  return -_coefficient[_qp] * _porepressure[_qp] * _grad_test[_i][_qp](_component);
47 }
const VariableValue & _porepressure
const MaterialProperty< Real > & _coefficient
Biot coefficient.

Member Data Documentation

◆ _coefficient

const MaterialProperty<Real>& PoroMechanicsCoupling::_coefficient
private

Biot coefficient.

Definition at line 38 of file PoroMechanicsCoupling.h.

Referenced by computeQpJacobian(), computeQpOffDiagJacobian(), and computeQpResidual().

◆ _component

unsigned int PoroMechanicsCoupling::_component
private

◆ _porepressure

const VariableValue& PoroMechanicsCoupling::_porepressure
private

Definition at line 40 of file PoroMechanicsCoupling.h.

Referenced by computeQpResidual().

◆ _porepressure_var_num

unsigned int PoroMechanicsCoupling::_porepressure_var_num
private

Definition at line 42 of file PoroMechanicsCoupling.h.

Referenced by computeQpJacobian(), and computeQpOffDiagJacobian().


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