www.mooseframework.org
NSSUPGMomentum.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 "NSSUPGBase.h"
13 
14 // Forward Declarations
15 
20 class NSSUPGMomentum : public NSSUPGBase
21 {
22 public:
24 
26 
27 protected:
28  virtual Real computeQpResidual();
29  virtual Real computeQpJacobian();
30  virtual Real computeQpOffDiagJacobian(unsigned int jvar);
31 
32  // This kernel is to be used for the x, y, and z momentum equations.
33  // The _component parameter tells you which equation you are currently
34  // solving.
35  unsigned int _component;
36 
37 private:
38  // Single function for computing on and off-diagonal Jacobian
39  // entries in a single function. The input index is in Moose
40  // variable numbering.
41  Real computeJacobianHelper(unsigned int var);
42 };
virtual Real computeQpOffDiagJacobian(unsigned int jvar)
virtual Real computeQpJacobian()
NSSUPGMomentum(const InputParameters &parameters)
Compute residual and Jacobian terms form the SUPG terms in the momentum equation. ...
Real computeJacobianHelper(unsigned int var)
virtual Real computeQpResidual()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
unsigned int _component
static InputParameters validParams()
const InputParameters & parameters() const
This class acts as a base class for stabilization kernels.
Definition: NSSUPGBase.h:21