www.mooseframework.org
INSMomentumNoBCBCLaplaceForm.C
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 
9 #include "MooseMesh.h"
10 
11 template <>
12 InputParameters
14 {
15  InputParameters params = validParams<INSMomentumNoBCBCBase>();
16 
17  params.addClassDescription("This class implements the 'No BC' boundary condition based on the "
18  "'Laplace' form of the viscous stress tensor.");
19  return params;
20 }
21 
23  : INSMomentumNoBCBCBase(parameters)
24 {
25 }
26 
27 Real
29 {
30  // -mu * (grad(u).n) * test
31  Real viscous_part = -_mu[_qp] * (_grad_u[_qp] * _normals[_qp]) * _test[_i][_qp];
32 
33  // pIn * test
34  Real pressure_part = 0.;
36  pressure_part = _p[_qp] * _normals[_qp](_component) * _test[_i][_qp];
37 
38  return viscous_part + pressure_part;
39 }
40 
41 Real
43 {
44  return -_mu[_qp] * (_grad_phi[_j][_qp] * _normals[_qp]) * _test[_i][_qp];
45 }
46 
47 Real
49 {
50  if (jvar == _p_var_number && _integrate_p_by_parts)
51  return _phi[_j][_qp] * _normals[_qp](_component) * _test[_i][_qp];
52 
53  else
54  return 0.;
55 }
INSMomentumNoBCBCLaplaceForm(const InputParameters &parameters)
const MaterialProperty< Real > & _mu
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const VariableValue & _p
InputParameters validParams< INSMomentumNoBCBCLaplaceForm >()
InputParameters validParams< INSMomentumNoBCBCBase >()
Base class for the "No BC" boundary condition.