https://mooseframework.inl.gov
DivField.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 "Kernel.h"
13 
17 class DivField : public Kernel
18 {
19 public:
21 
23 
24 protected:
25  virtual Real computeQpResidual() override;
26  virtual Real computeQpOffDiagJacobian(unsigned jvar) override;
27 
30  unsigned int _u_var_num;
31 
34 
37 
40 };
OutputTools< RealVectorValue >::VariableDivergence VectorVariableDivergence
Definition: MooseTypes.h:335
Class for stuff related to variables.
Definition: Adaptivity.h:31
const VectorMooseVariable & _u_var
coupled vector variable
Definition: DivField.h:29
static InputParameters validParams()
Definition: DivField.C:16
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const VectorVariablePhiDivergence & _div_phi
div of the shape function of the coupled vector variable
Definition: DivField.h:36
OutputTools< RealVectorValue >::VariablePhiDivergence VectorVariablePhiDivergence
Definition: MooseTypes.h:340
Weak form contribution corresponding to k*div(u)
Definition: DivField.h:17
const VectorVariableDivergence & _div_u
div of the coupled vector variable
Definition: DivField.h:33
unsigned int _u_var_num
Definition: DivField.h:30
Real _coeff
scalar coefficient
Definition: DivField.h:39
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
Definition: DivField.C:43
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Definition: Kernel.h:15
const InputParameters & parameters() const
Get the parameters of the object.
DivField(const InputParameters &parameters)
Definition: DivField.C:26
virtual Real computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: DivField.C:37