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

#include <EnergyFreeBC.h>

Inheritance diagram for EnergyFreeBC:
[legend]

Public Member Functions

 EnergyFreeBC (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 

Protected Attributes

const VariableValue & _enthalpy
 
const VariableValue & _rho_u
 
const VariableValue & _rho_v
 
const VariableValue & _rho_w
 

Detailed Description

Definition at line 23 of file EnergyFreeBC.h.

Constructor & Destructor Documentation

◆ EnergyFreeBC()

EnergyFreeBC::EnergyFreeBC ( const InputParameters &  parameters)

Definition at line 27 of file EnergyFreeBC.C.

28  : IntegratedBC(parameters),
29  _enthalpy(coupledValue("enthalpy")),
30  _rho_u(coupledValue("rho_u")),
31  _rho_v(isCoupled("rho_v") ? coupledValue("rho_v") : _zero),
32  _rho_w(isCoupled("rho_w") ? coupledValue("rho_w") : _zero)
33 {
34 }
const VariableValue & _enthalpy
Definition: EnergyFreeBC.h:31
const VariableValue & _rho_v
Definition: EnergyFreeBC.h:33
const VariableValue & _rho_w
Definition: EnergyFreeBC.h:34
const VariableValue & _rho_u
Definition: EnergyFreeBC.h:32

Member Function Documentation

◆ computeQpResidual()

Real EnergyFreeBC::computeQpResidual ( )
protectedvirtual

Definition at line 37 of file EnergyFreeBC.C.

38 {
39  // (rho u) * H * n
40  RealVectorValue rho_u_vec(_rho_u[_qp], _rho_v[_qp], _rho_w[_qp]);
41  return rho_u_vec * _enthalpy[_qp] * _normals[_qp] * _test[_i][_qp];
42 }
const VariableValue & _enthalpy
Definition: EnergyFreeBC.h:31
const VariableValue & _rho_v
Definition: EnergyFreeBC.h:33
const VariableValue & _rho_w
Definition: EnergyFreeBC.h:34
const VariableValue & _rho_u
Definition: EnergyFreeBC.h:32

Member Data Documentation

◆ _enthalpy

const VariableValue& EnergyFreeBC::_enthalpy
protected

Definition at line 31 of file EnergyFreeBC.h.

Referenced by computeQpResidual().

◆ _rho_u

const VariableValue& EnergyFreeBC::_rho_u
protected

Definition at line 32 of file EnergyFreeBC.h.

Referenced by computeQpResidual().

◆ _rho_v

const VariableValue& EnergyFreeBC::_rho_v
protected

Definition at line 33 of file EnergyFreeBC.h.

Referenced by computeQpResidual().

◆ _rho_w

const VariableValue& EnergyFreeBC::_rho_w
protected

Definition at line 34 of file EnergyFreeBC.h.

Referenced by computeQpResidual().


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