Description🔗
The gradientEnergy
is a boundary condition that provides
a gradient condition for internal energy.
The gradient is calculated using:
\[\nabla(e_p) = \nabla_\perp C_p(p, T) + \frac{e_p - e_c}{\Delta}\]where:
Property | Description |
---|---|
\(e_p\) | Energy at patch faces [J] |
\(e_c\) | Energy at patch internal cells [J] |
\(p\) | Pressure [bar] |
\(T\) | Temperature [K] |
\(C_p\) | Specific heat [J/kg/K] |
\(\Delta\) | Distance 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:
Property | Description | Type | Required | Default |
---|---|---|---|---|
type |
Type name: gradientEnergy ` |
word | yes | - |
The inherited entries are elaborated in:
- fixedGradientFvPatchField.H
Further information🔗
Tutorial:
Source code:
API:
History:
- Introduced in version 2.1.1