www.mooseframework.org
NSPressureNeumannBC.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 NSPRESSURENEUMANNBC_H
9 #define NSPRESSURENEUMANNBC_H
10 
11 #include "NSIntegratedBC.h"
12 #include "NSPressureDerivs.h"
13 
14 // Forward Declarations
16 
17 template <>
18 InputParameters validParams<NSPressureNeumannBC>();
19 
32 {
33 public:
34  NSPressureNeumannBC(const InputParameters & parameters);
35 
36  virtual ~NSPressureNeumannBC() {}
37 
38 protected:
39  virtual Real computeQpResidual();
40  virtual Real computeQpJacobian();
41  virtual Real computeQpOffDiagJacobian(unsigned jvar);
42 
43  // Coupled vars
44  const VariableValue & _pressure;
45 
46  // Required parameters
47  unsigned _component;
48 
49  // An object for computing pressure derivatives.
50  // Constructed via a reference to ourself
52 
53  // Declare ourselves friend to the helper class.
54  template <class U>
55  friend class NSPressureDerivs;
56 
57 private:
58  // Computes the Jacobian value for this term for variable 'm'
59  // in the canonical ordering.
60  Real computeJacobianHelper(unsigned m);
61 };
62 
63 #endif // PRESSURENEUMANNBC_H
This class couples together all the variables for the compressible Navier-Stokes equations to allow t...
InputParameters validParams< NSPressureNeumannBC >()
virtual Real computeQpOffDiagJacobian(unsigned jvar)
This kernel is appropriate for use with a "zero normal flow" boundary condition in the context of the...
NSPressureNeumannBC(const InputParameters &parameters)
const VariableValue & _pressure
virtual Real computeQpResidual()
Real computeJacobianHelper(unsigned m)
NSPressureDerivs< NSPressureNeumannBC > _pressure_derivs
virtual Real computeQpJacobian()