imat_fem/get_id_by_nid


Purpose

Return element or traceline IDs referenced by the supplied node IDs.

Syntax

nid=get_id_by_nid(fem)
nid=get_id_by_nid(fem,id)
nid=get_id_by_nid(fem,id,'elem')

Description

GET_NID_BY_ID returns a sorted list of node IDs that make up the connectivity of the IDs supplied. If ID is not supplied, or is empty, all of the entities will be used.

TYPE is an optional string specifying the entity from which to extract the associated IDs. Valid options are 'elem' (default) and 'tl'.