www.mooseframework.org
INSCompressibilityPenalty.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 INSCOMPRESSIBILITYPENALTY_H
9 #define INSCOMPRESSIBILITYPENALTY_H
10 
11 #include "Kernel.h"
12 
13 // Forward Declarations
15 
16 template <>
18 
22 class INSCompressibilityPenalty : public Kernel
23 {
24 public:
25  INSCompressibilityPenalty(const InputParameters & parameters);
26 
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned jvar);
33 
34  // penalty value.
35  // smaller leads to more accurate solution, but the resulting system is also more difficult to
36  // solve
37  Real _penalty;
38 };
39 
40 #endif /* INSMASSARTIFICIALCOMPRESSIBILITY_H */
virtual Real computeQpOffDiagJacobian(unsigned jvar)
The penalty term may be used when Dirichlet boundary condition is applied to the entire boundary...
INSCompressibilityPenalty(const InputParameters &parameters)
InputParameters validParams< INSCompressibilityPenalty >()