Initialises fields with default and zone values. More...
Go to the source code of this file.
Initialises fields with default and zone values.
Original source file setFields.C
The default and zone values are read from a dictionary which defaults to system/setFieldsDict, cellZones are used to specify the internal field values and faceZone patch field values.
defaultValues
{
U (0 0 0);
T 348.432;
p 100000;
}
zones
{
lowPressure
{
type box;
zoneType cell;
box (0 -1 -1) (5 1 1);
values
{
T 278.746;
p 10000;
}
}
}
and the water in the tank of the rotatingCube VoF case is initialised by defaultValues
{
alpha.water 0;
}
zones
{
cells
{
type box;
zoneType cell;
box (-1e300 -1e300 -1e300) (1e300 0 1e300);
values
{
alpha.water 1;
}
}
patchFaces
{
type box;
zoneType face;
box (-1e300 -1e300 -1e300) (1e300 0 1e300);
values
{
alpha.water 1;
}
}
}
which sets both the internal and inlet values of the patch phase-fraction field. Definition in file setFields.C.