www.mooseframework.org
INSSplitMomentum.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 INSSPLITMOMENTUM_H
8 #define INSSPLITMOMENTUM_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class INSSplitMomentum;
14 
15 template <>
16 InputParameters validParams<INSSplitMomentum>();
17 
28 class INSSplitMomentum : public Kernel
29 {
30 public:
31  INSSplitMomentum(const InputParameters & parameters);
32 
33  virtual ~INSSplitMomentum() {}
34 
35 protected:
36  virtual Real computeQpResidual();
37  virtual Real computeQpJacobian();
38  virtual Real computeQpOffDiagJacobian(unsigned jvar);
39 
40  // Coupled variables
41  const VariableValue & _u_vel;
42  const VariableValue & _v_vel;
43  const VariableValue & _w_vel;
44 
45  // Acceleration vector components
46  const VariableValue & _a1;
47  const VariableValue & _a2;
48  const VariableValue & _a3;
49 
50  // Gradients
51  const VariableGradient & _grad_u_vel;
52  const VariableGradient & _grad_v_vel;
53  const VariableGradient & _grad_w_vel;
54 
55  // Variable numberings
59 
60  unsigned _a1_var_number;
61  unsigned _a2_var_number;
62  unsigned _a3_var_number;
63 
64  // Parameters
65  RealVectorValue _gravity;
66  unsigned _component;
67 
68  // Material properties
69  const MaterialProperty<Real> & _mu;
70  const MaterialProperty<Real> & _rho;
71 };
72 
73 #endif // INSSPLITMOMENTUM_H
InputParameters validParams< INSSplitMomentum >()
const VariableValue & _a2
This class computes the "split" momentum equation residual.
unsigned _u_vel_var_number
virtual ~INSSplitMomentum()
const MaterialProperty< Real > & _mu
virtual Real computeQpResidual()
const VariableValue & _a1
RealVectorValue _gravity
const MaterialProperty< Real > & _rho
virtual Real computeQpOffDiagJacobian(unsigned jvar)
const VariableGradient & _grad_u_vel
virtual Real computeQpJacobian()
const VariableGradient & _grad_v_vel
const VariableValue & _u_vel
const VariableValue & _w_vel
const VariableGradient & _grad_w_vel
unsigned _v_vel_var_number
unsigned _w_vel_var_number
const VariableValue & _v_vel
const VariableValue & _a3
INSSplitMomentum(const InputParameters &parameters)