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