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

Implements a simple constant Dashpot BC where grad(u)=value on the boundary. More...

#include <DashpotBC.h>

Inheritance diagram for DashpotBC:
[legend]

Public Member Functions

 DashpotBC (const InputParameters &parameters)
 Factory constructor, takes parameters so that all derived classes can be built using the same constructor. More...
 

Protected Member Functions

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

Private Attributes

unsigned int _component
 
Real _coefficient
 
unsigned int _disp_x_var
 
unsigned int _disp_y_var
 
unsigned int _disp_z_var
 
const VariableValue & _disp_x_dot
 
const VariableValue & _disp_y_dot
 
const VariableValue & _disp_z_dot
 

Detailed Description

Implements a simple constant Dashpot BC where grad(u)=value on the boundary.

Uses the term produced from integrating the diffusion operator by parts.

Definition at line 23 of file DashpotBC.h.

Constructor & Destructor Documentation

DashpotBC::DashpotBC ( const InputParameters &  parameters)

Factory constructor, takes parameters so that all derived classes can be built using the same constructor.

Definition at line 26 of file DashpotBC.C.

27  : IntegratedBC(parameters),
28  _component(getParam<unsigned int>("component")),
29  _coefficient(getParam<Real>("coefficient")),
30  _disp_x_var(coupled("disp_x")),
31  _disp_y_var(isCoupled("disp_y") ? coupled("disp_y") : 0),
32  _disp_z_var(isCoupled("disp_z") ? coupled("disp_z") : 0),
33 
34  _disp_x_dot(coupledDot("disp_x")),
35  _disp_y_dot(isCoupled("disp_y") ? coupledDot("disp_y") : _zero),
36  _disp_z_dot(isCoupled("disp_z") ? coupledDot("disp_z") : _zero)
37 {
38 }
unsigned int _disp_z_var
Definition: DashpotBC.h:43
unsigned int _component
Definition: DashpotBC.h:38
Real _coefficient
Definition: DashpotBC.h:39
const VariableValue & _disp_y_dot
Definition: DashpotBC.h:46
const VariableValue & _disp_z_dot
Definition: DashpotBC.h:47
unsigned int _disp_x_var
Definition: DashpotBC.h:41
const VariableValue & _disp_x_dot
Definition: DashpotBC.h:45
unsigned int _disp_y_var
Definition: DashpotBC.h:42

Member Function Documentation

Real DashpotBC::computeQpJacobian ( )
protectedvirtual

Definition at line 49 of file DashpotBC.C.

50 {
51  RealVectorValue velocity;
52  velocity(_component) = _phi[_j][_qp] / _dt;
53 
54  return _test[_i][_qp] * _coefficient * _normals[_qp] * velocity;
55 }
unsigned int _component
Definition: DashpotBC.h:38
Real _coefficient
Definition: DashpotBC.h:39
Real DashpotBC::computeQpOffDiagJacobian ( unsigned int  jvar)
protectedvirtual

Definition at line 58 of file DashpotBC.C.

59 {
60  RealVectorValue velocity;
61  unsigned int component = 0;
62 
63  if (jvar == _disp_x_var)
64  component = 0;
65  else if (jvar == _disp_y_var)
66  component = 1;
67  else if (jvar == _disp_z_var)
68  component = 2;
69 
70  velocity(component) = _phi[_j][_qp] / _dt;
71 
72  return -_test[_i][_qp] * _normals[_qp] * velocity;
73 }
unsigned int _disp_z_var
Definition: DashpotBC.h:43
Real component(const SymmTensor &symm_tensor, unsigned int index)
unsigned int _disp_x_var
Definition: DashpotBC.h:41
unsigned int _disp_y_var
Definition: DashpotBC.h:42
Real DashpotBC::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file DashpotBC.C.

42 {
43  RealVectorValue velocity(_disp_x_dot[_qp], _disp_y_dot[_qp], _disp_z_dot[_qp]);
44 
45  return _test[_i][_qp] * _coefficient * _normals[_qp] * velocity;
46 }
Real _coefficient
Definition: DashpotBC.h:39
const VariableValue & _disp_y_dot
Definition: DashpotBC.h:46
const VariableValue & _disp_z_dot
Definition: DashpotBC.h:47
const VariableValue & _disp_x_dot
Definition: DashpotBC.h:45

Member Data Documentation

Real DashpotBC::_coefficient
private

Definition at line 39 of file DashpotBC.h.

Referenced by computeQpJacobian(), and computeQpResidual().

unsigned int DashpotBC::_component
private

Definition at line 38 of file DashpotBC.h.

Referenced by computeQpJacobian().

const VariableValue& DashpotBC::_disp_x_dot
private

Definition at line 45 of file DashpotBC.h.

Referenced by computeQpResidual().

unsigned int DashpotBC::_disp_x_var
private

Definition at line 41 of file DashpotBC.h.

Referenced by computeQpOffDiagJacobian().

const VariableValue& DashpotBC::_disp_y_dot
private

Definition at line 46 of file DashpotBC.h.

Referenced by computeQpResidual().

unsigned int DashpotBC::_disp_y_var
private

Definition at line 42 of file DashpotBC.h.

Referenced by computeQpOffDiagJacobian().

const VariableValue& DashpotBC::_disp_z_dot
private

Definition at line 47 of file DashpotBC.h.

Referenced by computeQpResidual().

unsigned int DashpotBC::_disp_z_var
private

Definition at line 43 of file DashpotBC.h.

Referenced by computeQpOffDiagJacobian().


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