gradientEnergy
Description
The gradientEnergy is a boundary condition that provides
a gradient condition for internal energy.
The gradient is calculated using:
where:
| Property | Description |
|---|---|
| Energy at patch faces [J] | |
| Energy at patch internal cells [J] | |
| Pressure [bar] | |
| Temperature [K] | |
| Specific heat [J/kg/K] | |
| 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