www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PFCElementEnergyIntegral Class Reference

Compute a volume integral of the specified variable. More...

#include <PFCElementEnergyIntegral.h>

Inheritance diagram for PFCElementEnergyIntegral:
[legend]

Public Member Functions

 PFCElementEnergyIntegral (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpIntegral ()
 

Protected Attributes

MooseVariable & _var
 
const VariableValue & _u
 Holds the solution at current quadrature points. More...
 
const VariableGradient & _grad_u
 Holds the solution gradient at the current quadrature points. More...
 
const VariableValue & _u_dot
 Holds the solution derivative at the current quadrature points. More...
 
const Real _temp
 Temperature. More...
 

Detailed Description

Compute a volume integral of the specified variable.

Note that specializations of this integral are possible by deriving from this class and overriding computeQpIntegral().

Definition at line 33 of file PFCElementEnergyIntegral.h.

Constructor & Destructor Documentation

PFCElementEnergyIntegral::PFCElementEnergyIntegral ( const InputParameters &  parameters)

Definition at line 24 of file PFCElementEnergyIntegral.C.

25  : ElementIntegralPostprocessor(parameters),
26  MooseVariableInterface(this, false),
27  _var(_subproblem.getVariable(_tid, parameters.get<VariableName>("variable"))),
28  _u(_var.sln()),
29  _grad_u(_var.gradSln()),
30  _u_dot(_var.uDot()),
31  _temp(getParam<Real>("temp")) // K
32 {
33  addMooseVariableDependency(mooseVariable());
34 }
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.

Member Function Documentation

Real PFCElementEnergyIntegral::computeQpIntegral ( )
protectedvirtual

Definition at line 37 of file PFCElementEnergyIntegral.C.

38 {
39  // const Real kb = 1.3806488e-23; // A^2 kg s^-2 K^-1
40  // const Real p0 = 0.0801; // A^-3
41 
42  return _u[_qp]; // * (kb * _temp);
43 }
const VariableValue & _u
Holds the solution at current quadrature points.

Member Data Documentation

const VariableGradient& PFCElementEnergyIntegral::_grad_u
protected

Holds the solution gradient at the current quadrature points.

Definition at line 47 of file PFCElementEnergyIntegral.h.

const Real PFCElementEnergyIntegral::_temp
protected

Temperature.

Definition at line 53 of file PFCElementEnergyIntegral.h.

const VariableValue& PFCElementEnergyIntegral::_u
protected

Holds the solution at current quadrature points.

Definition at line 44 of file PFCElementEnergyIntegral.h.

Referenced by computeQpIntegral().

const VariableValue& PFCElementEnergyIntegral::_u_dot
protected

Holds the solution derivative at the current quadrature points.

Definition at line 50 of file PFCElementEnergyIntegral.h.

MooseVariable& PFCElementEnergyIntegral::_var
protected

Definition at line 41 of file PFCElementEnergyIntegral.h.


The documentation for this class was generated from the following files: