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

A kernel for computing total energy convective flux. More...

#include <TotalEnergyConvectiveFlux.h>

Inheritance diagram for TotalEnergyConvectiveFlux:
[legend]

Public Member Functions

 TotalEnergyConvectiveFlux (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

const VariableValue & _rho
 Density. More...
 
const VariableValue & _rho_u
 Momentum. More...
 
const VariableValue & _rho_v
 
const VariableValue & _rho_w
 
const VariableValue & _enthalpy
 Enthalpy. More...
 

Detailed Description

A kernel for computing total energy convective flux.

( u H)

Definition at line 26 of file TotalEnergyConvectiveFlux.h.

Constructor & Destructor Documentation

◆ TotalEnergyConvectiveFlux()

TotalEnergyConvectiveFlux::TotalEnergyConvectiveFlux ( const InputParameters &  parameters)

Definition at line 29 of file TotalEnergyConvectiveFlux.C.

30  : Kernel(parameters),
31  _rho(coupledValue("rho")),
32  _rho_u(coupledValue("rho_u")),
33  _rho_v(isCoupled("rho_v") ? coupledValue("rho_v") : _zero),
34  _rho_w(isCoupled("rho_w") ? coupledValue("rho_w") : _zero),
35  _enthalpy(coupledValue("enthalpy"))
36 {
37 }
const VariableValue & _rho
Density.
const VariableValue & _rho_u
Momentum.
const VariableValue & _enthalpy
Enthalpy.

Member Function Documentation

◆ computeQpJacobian()

Real TotalEnergyConvectiveFlux::computeQpJacobian ( )
protectedvirtual

Definition at line 47 of file TotalEnergyConvectiveFlux.C.

48 {
49  return 0.;
50 }

◆ computeQpResidual()

Real TotalEnergyConvectiveFlux::computeQpResidual ( )
protectedvirtual

Definition at line 40 of file TotalEnergyConvectiveFlux.C.

41 {
42  RealVectorValue rho_u_vec(_rho_u[_qp], _rho_v[_qp], _rho_w[_qp]);
43  return -_enthalpy[_qp] * (rho_u_vec * _grad_test[_i][_qp]);
44 }
const VariableValue & _rho_u
Momentum.
const VariableValue & _enthalpy
Enthalpy.

Member Data Documentation

◆ _enthalpy

const VariableValue& TotalEnergyConvectiveFlux::_enthalpy
protected

Enthalpy.

Definition at line 42 of file TotalEnergyConvectiveFlux.h.

Referenced by computeQpResidual().

◆ _rho

const VariableValue& TotalEnergyConvectiveFlux::_rho
protected

Density.

Definition at line 36 of file TotalEnergyConvectiveFlux.h.

◆ _rho_u

const VariableValue& TotalEnergyConvectiveFlux::_rho_u
protected

Momentum.

Definition at line 38 of file TotalEnergyConvectiveFlux.h.

Referenced by computeQpResidual().

◆ _rho_v

const VariableValue& TotalEnergyConvectiveFlux::_rho_v
protected

Definition at line 39 of file TotalEnergyConvectiveFlux.h.

Referenced by computeQpResidual().

◆ _rho_w

const VariableValue& TotalEnergyConvectiveFlux::_rho_w
protected

Definition at line 40 of file TotalEnergyConvectiveFlux.h.

Referenced by computeQpResidual().


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