www.mooseframework.org
Convection.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "Convection.h"
11 
12 registerMooseObject("MiscTestApp", Convection);
13 
16 {
18  params.addRequiredParam<RealVectorValue>("velocity", "Velocity Vector");
19  return params;
20 }
21 
23  : Kernel(parameters), _velocity(getParam<RealVectorValue>("velocity"))
24 {
25 }
26 
27 Real
29 {
30  return _test[_i][_qp] * (_velocity * _grad_u[_qp]);
31 }
32 
33 Real
35 {
36  return _test[_i][_qp] * (_velocity * _grad_phi[_j][_qp]);
37 }
RealVectorValue _velocity
Definition: Convection.h:25
Convection(const InputParameters &parameters)
Definition: Convection.C:22
const VariableGradient & _grad_u
static InputParameters validParams()
const VariablePhiGradient & _grad_phi
void addRequiredParam(const std::string &name, const std::string &doc_string)
virtual Real computeQpResidual()
Definition: Convection.C:28
const VariableTestValue & _test
unsigned int _i
registerMooseObject("MiscTestApp", Convection)
static InputParameters validParams()
Definition: Convection.C:15
unsigned int _j
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual Real computeQpJacobian()
Definition: Convection.C:34
unsigned int _qp