2.4.3 Class Node

The Node class offers no specific services compared to the pyADF services. It contains a reference to a given node and allow the ADF-like functions calls. Here is an example of use.

dbtree= pyCGNS("SquaredNozzle-05.cgns")
mypath= Path("/Base",bdtree)
dbadf = mypath.getADF()

nodeid= mypath.extract()[0][1]
node  = Node(nodeid,dbadf.get_root_id(nodeid))

print node.id
print node.name
print node.label
print node.ndim
print node.vdim
print node.type
print node.children

del mypath
dbtree.close()
del dbtree

In that case, an output would be something like:

2.04345703128
Base
CGNSBase_t
1
(2,)
I4
('Zone-001', 'Zone-002', 'Zone-003', 'Zone-004', 
'Zone-005', 'Zone-006', 'Zone-007', 'Zone-008', 'Attributes')