handle out-of-range surface sampling
Issue raised on EP974. When sampling onto a meshed surface, we have the possibility of using cells
, insideCells
, boundaryFaces
. However, when using cells
(for example), it takes the closest cell. If sampling surface happens to be out of the domain, for example since it extends into various mesh regions, the value of the closest cell will be wildly incorrect and misleading.
The proposed solution is to add in support for specifying a max search radius and a default value. For example,
maxSearch 0.005;
defaultValues
{
"p.*" 0;
T 273.15;
U (-100 -100 -100);
...
}
Note that sampling onto a meshed surface is the only surface sampler that this affects.