www.mooseframework.org
PrimaryConvection.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef PRIMARYCONVECTION_H
9 #define PRIMARYCONVECTION_H
10 
11 #include "Kernel.h"
12 #include "DerivativeMaterialInterface.h"
13 
14 class PrimaryConvection;
15 
16 template <>
17 InputParameters validParams<PrimaryConvection>();
18 
23 class PrimaryConvection : public DerivativeMaterialInterface<Kernel>
24 {
25 public:
26  PrimaryConvection(const InputParameters & parameters);
27 
28 protected:
29  virtual Real computeQpResidual() override;
30  virtual Real computeQpJacobian() override;
31  virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
32 
34  const MaterialProperty<Real> & _cond;
35 
37  const RealVectorValue _gravity;
38 
40  const MaterialProperty<Real> & _density;
41 
43  const VariableGradient & _grad_p;
44 
46  const unsigned int _pvar;
47 };
48 
49 #endif // PRIMARYCONVECTION_H
PrimaryConvection(const InputParameters &parameters)
virtual Real computeQpJacobian() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const VariableGradient & _grad_p
Pressure gradient.
const RealVectorValue _gravity
Gravity.
virtual Real computeQpResidual() override
const MaterialProperty< Real > & _cond
Hydraulic conductivity.
InputParameters validParams< PrimaryConvection >()
Define the Kernel for a PrimaryConvection operator that looks like: cond * grad_pressure * grad_u...
const unsigned int _pvar
Pressure variable number.
const MaterialProperty< Real > & _density
Fluid density.