www.mooseframework.org
DashpotBC.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef DASHPOTBC_H
9 #define DASHPOTBC_H
10 
11 #include "IntegratedBC.h"
12 
13 // Forward Declarations
14 class DashpotBC;
15 
16 template <>
17 InputParameters validParams<DashpotBC>();
18 
23 class DashpotBC : public IntegratedBC
24 {
25 public:
30  DashpotBC(const InputParameters & parameters);
31 
32 protected:
33  virtual Real computeQpResidual();
34  virtual Real computeQpJacobian();
35  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
36 
37 private:
38  unsigned int _component;
40 
41  unsigned int _disp_x_var;
42  unsigned int _disp_y_var;
43  unsigned int _disp_z_var;
44 
45  const VariableValue & _disp_x_dot;
46  const VariableValue & _disp_y_dot;
47  const VariableValue & _disp_z_dot;
48 };
49 
50 #endif // DASHPOTBC_H
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
virtual Real computeQpJacobian()
Definition: DashpotBC.C:49
InputParameters validParams< DashpotBC >()
Definition: DashpotBC.C:12
Implements a simple constant Dashpot BC where grad(u)=value on the boundary.
Definition: DashpotBC.h:23
DashpotBC(const InputParameters &parameters)
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
Definition: DashpotBC.C:26
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: DashpotBC.C:58
const VariableValue & _disp_z_dot
Definition: DashpotBC.h:47
virtual Real computeQpResidual()
Definition: DashpotBC.C:41
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