[version 14][version 13][version 12][version 11][version 10][version 9][version 8][version 7][version 6]
6.2 Field sources
Field sources, specified by the optional sources entry in field files, relate to cases which include a mass or volume source that introduces fluid at some internal region of the domain. A good example to demonstrate field sources is damBreakInjection, which is an extension of the damBreakLaminar tutorial from section 2.2 . The case can be run by the following commands.
run
cp -r $FOAM_TUTORIALS/incompressibleVoF/damBreakInjection
cd damBreakInjection
./Allrun
injection
{
type volumeSource;
phase water;
cellZone
{
type containsPoints;
points ( (0.438 0.438 0.0073) );
}
volumetricFlowRate 0.0003;
}
within a defined cell
zone consisting of a single cell. When such a model is applied,
some field values for the injected fluid must be specified,
e.g. its velocity. The
sources entries enable this by
including them in the fields that require values. For the
damBreakInjection, the velocity
of the injected fluid is specified by a sources entry in the U file which is reproduced below.
sources
{
injection
{
type uniformFixedValue;
uniformValue (-1 0 0);
}
}
The water is injected in the upper right quadrant
of the image, in the cell which is red, corresponding to
alpha.water = 1. It initially
follows a path in the negative
direction, from right
to left, according to the direction specified in the sources entry. But soon afterwards, gravity
causes the injected water to move downward, i.e. from top to bottom in the image.


