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 28 of file PFCElementEnergyIntegral.h.

Constructor & Destructor Documentation

◆ PFCElementEnergyIntegral()

PFCElementEnergyIntegral::PFCElementEnergyIntegral ( const InputParameters &  parameters)

Definition at line 28 of file PFCElementEnergyIntegral.C.

29  : ElementIntegralPostprocessor(parameters),
30  MooseVariableInterface<Real>(this,
31  false,
32  "variable",
33  Moose::VarKindType::VAR_ANY,
34  Moose::VarFieldType::VAR_FIELD_STANDARD),
35  _var(_subproblem.getStandardVariable(_tid, parameters.get<VariableName>("variable"))),
36  _u(_var.sln()),
37  _grad_u(_var.gradSln()),
38  _u_dot(_var.uDot()),
39  _temp(getParam<Real>("temp")) // K
40 {
41  addMooseVariableDependency(mooseVariable());
42 }
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

◆ computeQpIntegral()

Real PFCElementEnergyIntegral::computeQpIntegral ( )
protectedvirtual

Definition at line 45 of file PFCElementEnergyIntegral.C.

46 {
47  // const Real kb = 1.3806488e-23; // A^2 kg s^-2 K^-1
48  // const Real p0 = 0.0801; // A^-3
49 
50  return _u[_qp]; // * (kb * _temp);
51 }
const VariableValue & _u
Holds the solution at current quadrature points.

Member Data Documentation

◆ _grad_u

const VariableGradient& PFCElementEnergyIntegral::_grad_u
protected

Holds the solution gradient at the current quadrature points.

Definition at line 43 of file PFCElementEnergyIntegral.h.

◆ _temp

const Real PFCElementEnergyIntegral::_temp
protected

Temperature.

Definition at line 49 of file PFCElementEnergyIntegral.h.

◆ _u

const VariableValue& PFCElementEnergyIntegral::_u
protected

Holds the solution at current quadrature points.

Definition at line 40 of file PFCElementEnergyIntegral.h.

Referenced by computeQpIntegral().

◆ _u_dot

const VariableValue& PFCElementEnergyIntegral::_u_dot
protected

Holds the solution derivative at the current quadrature points.

Definition at line 46 of file PFCElementEnergyIntegral.h.

◆ _var

MooseVariable& PFCElementEnergyIntegral::_var
protected

Definition at line 37 of file PFCElementEnergyIntegral.h.


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