www.mooseframework.org
INSChorinPredictor.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Kernel.h"
13 
14 // Forward Declarations
15 
20 class INSChorinPredictor : public Kernel
21 {
22 public:
24 
26 
27  virtual ~INSChorinPredictor() {}
28 
29 protected:
30  virtual Real computeQpResidual();
31  virtual Real computeQpJacobian();
32  virtual Real computeQpOffDiagJacobian(unsigned jvar);
33 
34  // Velocity
38 
39  // Old Velocity
43 
44  // Star Velocity
48 
49  // Velocity Gradients
53 
54  // Old Velocity Gradients
58 
59  // Star Velocity Gradients
63 
64  // Variable numberings
68 
69  // Star velocity numbers
73 
74  // Parameters
75  unsigned _component;
76 
77  // An enumeration defining which velocity vector is used on the rhs
78  // of the Chorin predictor.
79  // OLD - Use velocity from the previous timestep, leads to explicit method
80  // NEW - Use velocity from current timestep, this may not be an actual method
81  // STAR - Use the "star" velocity. According to Donea's book, this is the
82  // right way to get an implicit method...
84 
85  // A C++ enumeration corresponding to the predictor enumeration.
87  {
88  OLD = 0,
89  NEW = 1,
90  STAR = 2
91  };
92 
93  // Material properties
96 };
const MaterialProperty< Real > & _rho
OutputTools< Real >::VariableGradient VariableGradient
const VariableValue & _w_vel
virtual Real computeQpJacobian()
const MaterialProperty< Real > & _mu
This class computes the "Chorin" Predictor equation in fully-discrete (both time and space) form...
const VariableValue & _u_vel
const VariableGradient & _grad_u_vel
virtual Real computeQpResidual()
const VariableGradient & _grad_v_vel_old
const VariableValue & _v_vel_old
const VariableValue & _w_vel_old
const VariableValue & _u_vel_old
const VariableValue & _v_vel
const VariableGradient & _grad_u_vel_old
const VariableGradient & _grad_w_vel
const VariableValue & _v_vel_star
const VariableGradient & _grad_v_vel_star
virtual Real computeQpOffDiagJacobian(unsigned jvar)
INSChorinPredictor(const InputParameters &parameters)
const VariableValue & _w_vel_star
OutputTools< Real >::VariableValue VariableValue
const VariableGradient & _grad_w_vel_old
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const InputParameters & parameters() const
const VariableGradient & _grad_w_vel_star
const VariableGradient & _grad_u_vel_star
const VariableGradient & _grad_v_vel
const VariableValue & _u_vel_star