Skip to main content

gradientEnergy

Description

The gradientEnergy is a boundary condition that provides a gradient condition for internal energy.

The gradient is calculated using:

(ep)=Cp(p,T)+epecΔ \nabla(e_p) = \nabla_\perp C_p(p, T) + \frac{e_p - e_c}{\Delta}

where:

PropertyDescription
epe_pEnergy at patch faces [J]
ece_cEnergy at patch internal cells [J]
ppPressure [bar]
TTTemperature [K]
CpC_pSpecific heat [J/kg/K]
Δ\DeltaDistance between patch face and internal cell centres [m]

Usage

The condition requires entries in both the boundary and field files.

Boundary file

<patchName>
{
type patch;
...
}

Field file

<patchName>
{
// Mandatory entries
type gradientEnergy;

// Inherited entries
...
}

where:

PropertyDescriptionTypeRequiredDefault
typeType name: gradientEnergy `wordyes-

The inherited entries are elaborated in:

  • fixedGradientFvPatchField.H

Further information

Tutorial:

Source code:

API:

History: Introduced in version 2.1.1