www.mooseframework.org
Convection.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 #include "Convection.h"
15 
16 template <>
17 InputParameters
19 {
20  InputParameters params = validParams<Kernel>();
21  params.addRequiredParam<RealVectorValue>("velocity", "Velocity Vector");
22  return params;
23 }
24 
25 Convection::Convection(const InputParameters & parameters)
26  : Kernel(parameters), _velocity(getParam<RealVectorValue>("velocity"))
27 {
28 }
29 
30 Real
32 {
33  return _test[_i][_qp] * (_velocity * _grad_u[_qp]);
34 }
35 
36 Real
38 {
39  return _test[_i][_qp] * (_velocity * _grad_phi[_j][_qp]);
40 }
RealVectorValue _velocity
Definition: Convection.h:34
Convection(const InputParameters &parameters)
Definition: Convection.C:25
virtual Real computeQpResidual()
Definition: Convection.C:31
InputParameters validParams< Convection >()
Definition: Convection.C:18
virtual Real computeQpJacobian()
Definition: Convection.C:37