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 21 of file PoroMechanicsCoupling.h.

Constructor & Destructor Documentation

PoroMechanicsCoupling::PoroMechanicsCoupling ( const InputParameters &  parameters)

Definition at line 29 of file PoroMechanicsCoupling.C.

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

Member Function Documentation

Real PoroMechanicsCoupling::computeQpJacobian ( )
protectedvirtual

Definition at line 47 of file PoroMechanicsCoupling.C.

48 {
49  if (_var.number() != _porepressure_var_num)
50  return 0.0;
51  return -_coefficient[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp](_component);
52 }
const MaterialProperty< Real > & _coefficient
Biot coefficient.
Real PoroMechanicsCoupling::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 55 of file PoroMechanicsCoupling.C.

56 {
57  if (jvar != _porepressure_var_num)
58  return 0.0;
59  return -_coefficient[_qp] * _phi[_j][_qp] * _grad_test[_i][_qp](_component);
60 }
const MaterialProperty< Real > & _coefficient
Biot coefficient.
Real PoroMechanicsCoupling::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file PoroMechanicsCoupling.C.

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

Member Data Documentation

const MaterialProperty<Real>& PoroMechanicsCoupling::_coefficient
private

Biot coefficient.

Definition at line 35 of file PoroMechanicsCoupling.h.

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

unsigned int PoroMechanicsCoupling::_component
private
const VariableValue& PoroMechanicsCoupling::_porepressure
private

Definition at line 37 of file PoroMechanicsCoupling.h.

Referenced by computeQpResidual().

unsigned int PoroMechanicsCoupling::_porepressure_var_num
private

Definition at line 39 of file PoroMechanicsCoupling.h.

Referenced by computeQpJacobian(), and computeQpOffDiagJacobian().


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