https://mooseframework.inl.gov
Loading...
Searching...
No Matches
GradField.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 "VectorKernel.h"
13
17class GradField : public VectorKernel
18{
19public:
21
23
24protected:
25 virtual Real computeQpResidual() override;
26 virtual Real computeQpOffDiagJacobian(unsigned jvar) override;
27
30 unsigned int _p_var_num;
31
34
37
40
42 Real _coeff;
43};
OutputTools< Real >::VariablePhiValue VariablePhiValue
Definition MooseTypes.h:353
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
OutputTools< RealVectorValue >::VariableTestDivergence VectorVariableTestDivergence
Definition MooseTypes.h:379
Weak form contribution corresponding to -k*grad(p)
Definition GradField.h:18
MooseVariable & _p_var
coupled scalar variable
Definition GradField.h:29
const VariablePhiValue & _p_phi
shape function of the coupled scalar variable
Definition GradField.h:36
const VariableValue & _p
value of the coupled scalar variable
Definition GradField.h:33
const VectorVariableTestDivergence & _div_test
div of the test function
Definition GradField.h:39
virtual Real computeQpOffDiagJacobian(unsigned jvar) override
Definition GradField.C:44
unsigned int _p_var_num
Definition GradField.h:30
static InputParameters validParams()
Definition GradField.C:16
virtual Real computeQpResidual() override
Compute this Kernel's contribution to the residual at the current quadrature point.
Definition GradField.C:38
Real _coeff
scalar coefficient
Definition GradField.h:42
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