www.mooseframework.org
INSProjection.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 INSPROJECTION_H
8 #define INSPROJECTION_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class INSProjection;
14 
15 template <>
16 InputParameters validParams<INSProjection>();
17 
25 class INSProjection : public Kernel
26 {
27 public:
28  INSProjection(const InputParameters & parameters);
29 
30  virtual ~INSProjection() {}
31 
32 protected:
33  virtual Real computeQpResidual();
34  virtual Real computeQpJacobian();
35  virtual Real computeQpOffDiagJacobian(unsigned jvar);
36 
37  // Coupled variables
38  const VariableValue & _a1;
39  const VariableValue & _a2;
40  const VariableValue & _a3;
41 
42  // Gradients
43  const VariableGradient & _grad_p;
44 
45  // Variable numberings
46  unsigned _a1_var_number;
47  unsigned _a2_var_number;
48  unsigned _a3_var_number;
49  unsigned _p_var_number;
50 
51  // Parameters
52  unsigned _component;
53 
54  // Material properties
55  const MaterialProperty<Real> & _rho;
56 };
57 
58 #endif // INSPROJECTION_H
INSProjection(const InputParameters &parameters)
Definition: INSProjection.C:36
const VariableValue & _a3
Definition: INSProjection.h:40
unsigned _p_var_number
Definition: INSProjection.h:49
const MaterialProperty< Real > & _rho
Definition: INSProjection.h:55
unsigned _a1_var_number
Definition: INSProjection.h:46
unsigned _a3_var_number
Definition: INSProjection.h:48
virtual Real computeQpOffDiagJacobian(unsigned jvar)
Definition: INSProjection.C:89
unsigned _component
Definition: INSProjection.h:52
const VariableGradient & _grad_p
Definition: INSProjection.h:43
const VariableValue & _a1
Definition: INSProjection.h:38
InputParameters validParams< INSProjection >()
Definition: INSProjection.C:13
virtual Real computeQpJacobian()
Definition: INSProjection.C:82
This class computes the "projection" part of the "split" method for solving incompressible Navier-Sto...
Definition: INSProjection.h:25
virtual Real computeQpResidual()
Definition: INSProjection.C:62
unsigned _a2_var_number
Definition: INSProjection.h:47
virtual ~INSProjection()
Definition: INSProjection.h:30
const VariableValue & _a2
Definition: INSProjection.h:39