4.9 Mixed fixed value/gradient
Sec. 4.8
concluded with a table of
factors for the contributions to coefficients of and
for the fixed value
and fixed gradient boundary conditions.
It distinguishes between contributions for the discretisation of an advection term which requires values at faces, and the Laplacian term which requires the normal gradient.
A mixed
fixed value/gradient condition is defined by introducing a
value fraction for which
![]() |
(4.9) |


factor | mixed |
|
|
value internal | ![]() |
value boundary | ![]() |
gradient internal | ![]() |
gradient boundary | ![]() |
|
|
This mixed condition provides the framework for
a boundary condition that can switch between a fixed value
and fixed gradient
, by changing
. Switching is often
based on flow direction,
corresponding to inflow and
to outflow.
Some boundary conditions can operate in the range
of value fractions . The Robin condition, described next, can also
be expressed as a mixed condition with varying
.
Robin condition
The Robin condition5 combines the value and normal gradient at the boundary through an expression:
![]() |
(4.10) |



The Robin condition can be treated like the mixed
condition by relating to a reference fixed value
and gradient
at
a boundary, according to
.
Substituting for in Eq. (4.10) and making
the subject of the equation gives:
![]() |

In this form, and
relate to the
limits
and
, respectively. Values can be selected in these limits
to represent the physics of the condition.
In many cases the reference gradient is
such that
in Eq. (4.10
). For example a condition for
temperature
would tend to
as
and
as
.
The value fraction includes
, so the
condition operates “in the middle” between the fixed value and
gradient when
is the same order of magnitude as the boundary cell
height.