www.mooseframework.org
DashpotBC.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "IntegratedBC.h"
13 
14 // Forward Declarations
15 class DashpotBC;
16 
17 template <>
18 InputParameters validParams<DashpotBC>();
19 
24 class DashpotBC : public IntegratedBC
25 {
26 public:
27  static InputParameters validParams();
28 
33  DashpotBC(const InputParameters & parameters);
34 
35 protected:
36  virtual Real computeQpResidual();
37  virtual Real computeQpJacobian();
38  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
39 
40 private:
41  unsigned int _component;
43 
44  unsigned int _disp_x_var;
45  unsigned int _disp_y_var;
46  unsigned int _disp_z_var;
47 
48  const VariableValue & _disp_x_dot;
49  const VariableValue & _disp_y_dot;
50  const VariableValue & _disp_z_dot;
51 };
DashpotBC::_component
unsigned int _component
Definition: DashpotBC.h:41
DashpotBC::_disp_x_var
unsigned int _disp_x_var
Definition: DashpotBC.h:44
DashpotBC::computeQpJacobian
virtual Real computeQpJacobian()
Definition: DashpotBC.C:54
DashpotBC::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
Definition: DashpotBC.C:63
DashpotBC::_disp_z_dot
const VariableValue & _disp_z_dot
Definition: DashpotBC.h:50
validParams< DashpotBC >
InputParameters validParams< DashpotBC >()
DashpotBC::validParams
static InputParameters validParams()
Definition: DashpotBC.C:17
DashpotBC::_disp_z_var
unsigned int _disp_z_var
Definition: DashpotBC.h:46
DashpotBC
Implements a simple constant Dashpot BC where grad(u)=value on the boundary.
Definition: DashpotBC.h:24
DashpotBC::_disp_x_dot
const VariableValue & _disp_x_dot
Definition: DashpotBC.h:48
DashpotBC::computeQpResidual
virtual Real computeQpResidual()
Definition: DashpotBC.C:46
DashpotBC::DashpotBC
DashpotBC(const InputParameters &parameters)
Factory constructor, takes parameters so that all derived classes can be built using the same constru...
Definition: DashpotBC.C:31
DashpotBC::_disp_y_dot
const VariableValue & _disp_y_dot
Definition: DashpotBC.h:49
DashpotBC::_disp_y_var
unsigned int _disp_y_var
Definition: DashpotBC.h:45
DashpotBC::_coefficient
Real _coefficient
Definition: DashpotBC.h:42