zone.near.live

Syntax

z = zone.near.live(v,bmech,bfluid,btherm,s)

Get the zone with a centroid nearest point v. The four following arguments control which zones are to be considered. If bmech, bfluid, or btherm is true, then zones containing non-null constitutive models in those processes are considered. The third string argument s must be either and or or, indicating whether the indicated models are all required or if any one of them is sufficient.

Returns:

z - the pointer to the zone matching the criteria with a centroid nearest v

Arguments:

v - a point in space

bmech - indicates if mechanically non-null zones are to be considered

bfluid - indicates if fluid non-null zones are to be considered

btherm - indicates if thermal non-null zones are to be considered

s - must be either and or or; indicates whether one or all of the indicated non-null models must be present