www.mooseframework.org
NSMomentumViscousBC.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 #ifndef NSMOMENTUMVISCOUSBC_H
8 #define NSMOMENTUMVISCOUSBC_H
9 
10 #include "NSIntegratedBC.h"
12 
13 // Forward Declarations
15 
16 template <>
17 InputParameters validParams<NSMomentumViscousBC>();
18 
31 {
32 public:
33  NSMomentumViscousBC(const InputParameters & parameters);
34 
35 protected:
39  virtual Real computeQpResidual();
40  virtual Real computeQpJacobian();
41  virtual Real computeQpOffDiagJacobian(unsigned jvar);
42 
43  // Which spatial component of the momentum equations (0,1, or 2) is this
44  // kernel applied in?
45  const unsigned _component;
46 
47  // An object for computing viscous stress tensor derivatives.
48  // Constructed via a reference to ourself so we can access all of our data.
50 
51  // Declare ourselves friend to the helper class.
52  template <class U>
54 };
55 
56 #endif // NSMOMENTUMVISCOUSBC_H
virtual Real computeQpJacobian()
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const unsigned _component
InputParameters validParams< NSMomentumViscousBC >()
NSViscStressTensorDerivs< NSMomentumViscousBC > _vst_derivs
This class corresponds to the viscous part of the "natural" boundary condition for the momentum equat...
NSMomentumViscousBC(const InputParameters &parameters)
virtual Real computeQpResidual()
Just like other kernels, we must overload the Residual and Jacobian contributions...