www.mooseframework.org
PFCElementEnergyIntegral.h
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 
15 #ifndef PFCELEMENTENERGYINTEGRAL_H
16 #define PFCELEMENTENERGYINTEGRAL_H
17 
18 #include "ElementIntegralPostprocessor.h"
19 #include "MooseVariableInterface.h"
20 
21 // Forward Declarations
23 
24 template <>
26 
33 class PFCElementEnergyIntegral : public ElementIntegralPostprocessor, public MooseVariableInterface
34 {
35 public:
36  PFCElementEnergyIntegral(const InputParameters & parameters);
37 
38 protected:
39  virtual Real computeQpIntegral();
40 
41  MooseVariable & _var;
42 
44  const VariableValue & _u;
45 
47  const VariableGradient & _grad_u;
48 
50  const VariableValue & _u_dot;
51 
53  const Real _temp;
54 };
55 
56 #endif
InputParameters validParams< PFCElementEnergyIntegral >()
const VariableGradient & _grad_u
Holds the solution gradient at the current quadrature points.
const VariableValue & _u_dot
Holds the solution derivative at the current quadrature points.
const VariableValue & _u
Holds the solution at current quadrature points.
const Real _temp
Temperature.
PFCElementEnergyIntegral(const InputParameters &parameters)
Compute a volume integral of the specified variable.