Ugrid restrict
ugrid_restrict
ugrid_restrict is a function creates a grid object out of an input grid according to to an input restriction constraint. At this time the input grid is assumed to be an unstructured grid made up of counter-clockwise oriented triangles.
Input Arguments
Calls to the function take the form:ugrid_restrict(int dim,string constraint)
The first input must be an integer that denotes the dimension which will be restricted. For example setting dim to be 0 would indicate the restriction will occur on nodes.
The second input is a string which describes the constraint that should be enforced.
Some examples:
ugrid_restrict(0,"nodedata>0.0") this call is restricting the mesh to the nodes such that nodedata (some array bound to the nodes) is greater than 0.
You can also have much more complicated constraints: ugrid_restrict(0,"X>-68.0&X<0&Y>41.5&Y<42.78&nodedata>0.0&nodedata<500")