https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PrimaryConvection.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"
14
20{
21public:
23
24 PrimaryConvection(const InputParameters & parameters);
25
26protected:
27 virtual Real computeQpResidual() override;
28 virtual Real computeQpJacobian() override;
29 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
30
33
35 const RealVectorValue _gravity;
36
39
42
44 const unsigned int _pvar;
45};
Define the Kernel for a PrimaryConvection operator that looks like: cond * grad_pressure * grad_u.
const unsigned int _pvar
Pressure variable number.
const VariableGradient & _grad_p
Pressure gradient.
virtual Real computeQpResidual() override
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _density
Fluid density.
const RealVectorValue _gravity
Gravity.
virtual Real computeQpJacobian() override
const MaterialProperty< Real > & _cond
Hydraulic conductivity.
VariableGradientTempl< false > VariableGradient