www.mooseframework.org
INSChorinCorrector.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 INSCHORINCORRECTOR_H
8 #define INSCHORINCORRECTOR_H
9 
10 #include "Kernel.h"
11 
12 // Forward Declarations
13 class INSChorinCorrector;
14 
15 template <>
16 InputParameters validParams<INSChorinCorrector>();
17 
22 class INSChorinCorrector : public Kernel
23 {
24 public:
25  INSChorinCorrector(const InputParameters & parameters);
26 
27  virtual ~INSChorinCorrector() {}
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned jvar);
33 
34  // "Star" velocity components
35  const VariableValue & _u_vel_star;
36  const VariableValue & _v_vel_star;
37  const VariableValue & _w_vel_star;
38 
39  // Pressure gradients
40  const VariableGradient & _grad_p;
41 
42  // Variable numberings
46  unsigned _p_var_number;
47 
48  // Parameters
49  unsigned _component;
50 
51  // Material properties
52  const MaterialProperty<Real> & _rho;
53 };
54 
55 #endif // INSCHORINCORRECTOR_H
const VariableValue & _v_vel_star
const VariableGradient & _grad_p
virtual Real computeQpOffDiagJacobian(unsigned jvar)
INSChorinCorrector(const InputParameters &parameters)
This class computes the "Chorin" Corrector equation in fully-discrete (both time and space) form...
virtual Real computeQpJacobian()
InputParameters validParams< INSChorinCorrector >()
const VariableValue & _w_vel_star
virtual Real computeQpResidual()
const VariableValue & _u_vel_star
const MaterialProperty< Real > & _rho