https://mooseframework.inl.gov
GradDiv.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
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 "ADKernel.h"
13 
22 class GradDiv : public ADKernel
23 {
24 public:
26 
28 
29  virtual void computeResidual() override;
30 
31 protected:
32  virtual ADReal computeQpResidual() override;
33 
36  const unsigned short _comp;
37  const bool _matrix_only;
38  const Real _gamma;
39 };
static InputParameters validParams()
Definition: GradDiv.C:15
virtual void computeResidual() override
Definition: GradDiv.C:39
GradDiv(const InputParameters &parameters)
Definition: GradDiv.C:28
This class implements an augmented Lagrange term, whose weak form is given by: where is the stabili...
Definition: GradDiv.h:22
virtual ADReal computeQpResidual() override
Definition: GradDiv.C:46
const unsigned short _comp
Definition: GradDiv.h:36
DualNumber< Real, DNDerivativeType, true > ADReal
const ADVariableGradient & _grad_vel_x
Definition: GradDiv.h:34
const Real _gamma
Definition: GradDiv.h:38
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const InputParameters & parameters() const
const ADVariableGradient & _grad_vel_y
Definition: GradDiv.h:35
const bool _matrix_only
Definition: GradDiv.h:37